All Projects → PhillippOhlandt → Pmtoapib

PhillippOhlandt / Pmtoapib

Tool to convert Postman collection exports to Api Blueprint documentation

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Pmtoapib

Apiary2postman
Tool for generating a Postman collection from Blueprint API markup or the Apiary API
Stars: ✭ 194 (+470.59%)
Mutual labels:  api-blueprint, postman, postman-collection
Azuredevops Postman Collections
The collections allow you to test common Azure DevOps Rest APIs from within Postman.
Stars: ✭ 182 (+435.29%)
Mutual labels:  postman, postman-collection
Gin Boilerplate
The fastest way to deploy a restful api's with Gin Framework with a structured project that defaults to PostgreSQL database and JWT authentication middleware stored in Redis
Stars: ✭ 559 (+1544.12%)
Mutual labels:  postman, postman-collection
openman
Postman to OpenAPI Spec converter with mocking and documentation
Stars: ✭ 17 (-50%)
Mutual labels:  postman, postman-collection
Newman
Newman is a command-line collection runner for Postman
Stars: ✭ 5,607 (+16391.18%)
Mutual labels:  postman, postman-collection
Messenger Platform Postman Collection
A delicious Postman collection for all your Messenger Platform needs.
Stars: ✭ 150 (+341.18%)
Mutual labels:  postman, postman-collection
Blueman
Convert a generated API Blueprint JSON file into a Postman collection
Stars: ✭ 145 (+326.47%)
Mutual labels:  api-blueprint, postman
postman-to-k6
Converts Postman collections to k6 script code
Stars: ✭ 269 (+691.18%)
Mutual labels:  postman, postman-collection
trello-postman-collection
A Postman collection for Trello REST API
Stars: ✭ 20 (-41.18%)
Mutual labels:  postman, postman-collection
pmpact
A command line tool to convert Pact files to Postman collections.
Stars: ✭ 15 (-55.88%)
Mutual labels:  postman, postman-collection
Covid 19 Apis
Postman COVID-19 API Resource Center—API collections to help in the COVID-19 fight.
Stars: ✭ 111 (+226.47%)
Mutual labels:  postman, postman-collection
axon
Autogenerate Integration Tests
Stars: ✭ 49 (+44.12%)
Mutual labels:  postman, postman-collection
Swaggman
OpenAPI Spec SDK and Converter for OpenAPI 3.0 and 2.0 Specs to Postman 2.0 Collections. Example RingCentral spec included.
Stars: ✭ 94 (+176.47%)
Mutual labels:  postman, postman-collection
Postman To K6
Converts Postman collections to k6 script code
Stars: ✭ 180 (+429.41%)
Mutual labels:  postman, postman-collection
Restdocs To Postman
Converts Spring REST Docs cURL snippets to Postman and Insomnia collections
Stars: ✭ 39 (+14.71%)
Mutual labels:  postman, postman-collection
graphql-to-postman
Plugin for converting GraphQL to the Postman Collection (v2) format
Stars: ✭ 27 (-20.59%)
Mutual labels:  postman, postman-collection
postman-webex
Postman collections for Webex REST APIs
Stars: ✭ 97 (+185.29%)
Mutual labels:  postman, postman-collection
Postman Code Generators
Common repository for all code generators shipped with Postman
Stars: ✭ 526 (+1447.06%)
Mutual labels:  postman, postman-collection
Openapi To Postman
Plugin for converting OpenAPI 3.0 specs to the Postman Collection (v2) format
Stars: ✭ 365 (+973.53%)
Mutual labels:  postman-collection
Protagonist
Protagonist is Node.js wrapper for the API Blueprint parser
Stars: ✭ 343 (+908.82%)
Mutual labels:  api-blueprint

Postman to Api Blueprint Converter

A simple tool to convert Postman collection exports (v2) to Api Blueprint documentation.

Notice: It uses the Aglio include syntax!

Usage

Assuming that collection.json is your Postman collection export.

pmtoapib -collection collection.json -destination docs

The docs folder will be created with the following content

├── collection-name.apib
└── responses
    ├── get-200-me.json
    ├── get-200-users.json
    ├── post-200-me.json
    └── users
        ├── get-200_userID_2-2.json
        └── get-404_userID_1-2.json

The responses folder contains JSON files with the (pretty printed) response bodies. If a request has no exported responses (e.g. you didn't save any in Postman), the response file will contain an empty JSON object.

The folders inside the responses folder line up with the request paths and the files are named with the following pattern: {method}-{response name}-{last element in url}.json.

By default, the collection name will be used as the .apib filename. It can be overridden with the -apibname parameter.

pmtoapib -collection collection.json -destination docs -apibname users

This will generate a users.apib file.

Usage with Docker

You can also use the Docker image if you don't use Mac OS and don't want to compile it on your own.

docker run --rm -it -v "$PWD:/opt" phillippohlandt/pmtoapib -collection collection.json -destination docs

Command Line Flags

Command Short Version Type Default Value Description
-collection -c string Path to the Postman collection export
-destination -d string ./ Destination folder path for the generated files
-apibname string Set a custom name for the generated .apib file
-force-apib boolean false Override existing .apib files
-force-responses boolean false Override existing response files
-dump-request string Output the markup for a single request (Takes a request name)

Options

Exclude Requests

To exclude a whole request from the generated .apib file, simply put the string pmtoapib_exclude in the request description. It will also prevent the generation of the response files for that request.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].