This package allows you to generate a JSON from a cloudformation function definition. This JSON can be imported into postman as a collection.
clf-lambda-definition-2-postman-collection can be installed using NPM or directly from the git repository within your NodeJS projects. If installing from NPM, the following command installs the cli tool and saves in your package.json
> npm install clf-lambda-definition-2-postman-collection
To use the package you can run the following command.
npx clf-lambda-definition-2-postman-collection functions.yml https://httpbin.org/api test-api headers.json
The endpoint that you want to test using. Note that you can specify a variable using double curly braces. For example.
[
{
"key": "Authorization",
"value": "Bearer {{TOKEN}}",
"type": "text"
},
{
"key": "type",
"value": "{{TYPE}}",
"type": "text"
}
]