Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 936 Bytes

GenerateCode.md

File metadata and controls

25 lines (15 loc) · 936 Bytes

Code Generation with Postman

Postman lets you generate code in up to 15 languages.

Simply select a REST request in your collection, and click on the Code link, right under the Save button.

click on code link

As the code generation popup opens, pick your favorite language from the combo.

pick a language

Check the code generated by postman.

As an example:

  • import the xapi-integrator collection,
  • expand the calls folder,
  • select the Command Call (SIP) request,
  • click the Code link as illustrated above.

Here is the code you'll get if you ask postman to generate a nodejs/request code snippet:

nodejs snippet example

Note that if you get any extra "postman-token" or "cache" header, simply remove these manually when you'll paste the code into your app.