Our API portal uses examples from the API description file to create Curl commands which are then shown in the endpoint documentation.
Curl example for sending an API call via Telstra’s API
Check out how the Curl command contains all the right headers; it even caters to API authentication and the body format of the request.
In fact, the Curl examples fully integrate with the API Console letting the user change the endpoint parameters while those changes are reflected in the example live.
The user can just copy and paste the Curl command in their favorite terminal to run it.
Improved Authentication docs
Our Authentication section now shows detailed docs for common authentication types such as HTTP basic, OAuth 2, and custom API keys.
These docs include Curl examples so that the users can try them out in the terminal. Check out this example for an API that uses OAuth 2 Client Credentials grant:
Example of auto-generated Auth docs
All of this is auto-generated from the API definition file!