Revamped HTTP docs on API Portal πŸ†•πŸŽ‰

Mehdi Raza
APIMATIC
Published in
2 min readMar 22, 2018

The fight for improving the Developer Experience in API portals is not over yet!

In fact, we have just released a major revamp of HTTP documentation to all our customers. πŸŽ‰

Let’s see the new features in details.

πŸ‘¨β€πŸ’» New Curl Examples

Our HTTP docs now show API console with Curl commands for each endpoint.

What is Curl, you say?

It is a nifty tool for making HTTP calls from the terminal, popular with developers. Curl can be installed on Linux, MacOS and Windows.

Here’s what a simple Curl command looks like:

Sends a GET request along with an Accept header

What’s in our Curl Examples?

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

Checkout how the Curl command contains all the right headers; it even caters for 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 description file!

⭐️ Can your Portal do this?

Our API portals have:

Give our portal generator a try!

--

--