If you are hosting an API at https://www.example.com/ there is a way to utilize Swagger to give you a breakdown of all of the endpoints at https://www.example.com/swagger/ which are all testable right there at the long list of an HTML page that gets served via form controls. At my work, most of our endpoints will require a bearer token for permissions-sake. We have a setup in Postman to accommodate this. We past “bearer foo” to hand the bearer token into the Swagger interface with foo swapped out with something bigger.
No comments:
Post a Comment