postman-app-support icon indicating copy to clipboard operation
postman-app-support copied to clipboard

Document generated code snippet missing Authorization header

Open wessRay opened this issue 3 years ago • 7 comments

Is there an existing issue for this?

  • [X] I have searched the tracker for existing similar issues

Describe the Issue

Generating code snippet of the request in POSTMAN APP is as expected, the header "Authorization" is generated correctly.

But if the API is published as documentation, it is not showing the header when generate the curl command. You may refer to the following screenshot, this is the documentation that I published from my API collection image

Steps To Reproduce

  1. Create an API request in your API collection, by ticking "Inherit auth from parent"
  2. Right click the API collection > View documentation
  3. Publish the documentation.
  4. Check the link, and you will see the curl is not generating Authorization header.

Screenshots or Videos

No response

Environment Information

- Operating System: macOS Monterey
- Platform Type: Native App / Postman Documenter
- Postman Version: 9.15.4

Additional Context?

No response

wessRay avatar Mar 25 '22 05:03 wessRay