Logo

dev-resources.site

for different kinds of informations.

How to view API request examples in a ReadMe documentation.

Published at
12/30/2024
Categories
api
documentation
Author
emiloju
Categories
2 categories in total
api
open
documentation
open
Author
7 person written this
emiloju
open
How to view API request examples in a ReadMe documentation.

Request examples are more than a mere addition to API documentation. They are necessary to easily onboard developers and increase API adoption. They cut development time by helping developers discover how to make a successful request to your API endpoints.

Imagine a Fintech API like Plaid without request examples in the API documentation. Their customer service will have to deal with complaints from frustrated developers each day. Eventually, developers will abandon their service for a better alternative.

PLAID API REQUEST EXAMPLE

My recent experience with The Movie Database (TMDB) API documentation underscores the importance of request examples in API documentation. It took me a couple of hours to figure out how to make a successful request to an endpoint because I couldn't access a request sample. However, I eventually found it in an unexpected place. ReadMe on the other hand didn't make it easy.

The Problem

Certain endpoints in the TMDB API require a RAW_BODY body parameter as seen in the image below:

Raw body JSON parameter in the TMDB API

Without a request sample, it is difficult to come up with the correct json data. Although, you may end up with a solution after a few google search, which is not a good user experience.

The solution

A glance at an endpoint page on ReadMe, there is no sight of a request sample. Despite being a very important part of API documentation, ReadMe didn't do a good job to make it easily accessible.

You can view a request sample for an endpoint on ReadMe through the steps below:

A. Click on the EXAMPLES field on the right and select the Request Example option.

Image description
B. The request sample will be displayed as seen in the image below:

Image description

That's all it takes to view a sample request in a ReadMe documentation.

NOTE: A request sample will be available provided that the API documentation writer(s) add it to the documentation.

Conclusion

This short article is useful for developers who may have to use an API with its documentation on ReadMe. If you also plan to use the TMDB API, this article will help you view sample request for each endpoint.

documentation Article's
30 articles in total
Favicon
LaTeX for Beginners in 6 Minutes
Favicon
Using Direct Line botframework in a React Native Application to connect to Copilot Studio Agent
Favicon
The Importance of Writing Meaningful Code and Documentation
Favicon
Versioning in Go Huma
Favicon
Documentation Release Notes - December 2024
Favicon
What Content to Create and How to Publish It, Part 1
Favicon
Simplify Your Billing Process with an Invoice Template Google Docs
Favicon
Mastering Developer Documentation: A Journey Beyond the Basics
Favicon
Maintainability Is All You Need
Favicon
API Documentation: How to Write It, Template and Examples
Favicon
How to Write a Troubleshooting Guide That Actually Helps Users
Favicon
The Importance of Reading Documentation: A Lesson from Nvidia Drivers
Favicon
Unpacking Technical Debt: The Types Every Dev Should Know
Favicon
Reasons Why Developers Hate Your Docs
Favicon
Data Analytics Skills for Technical Writers
Favicon
How We Do Documentation Engineering
Favicon
[Boost]
Favicon
Things are moving fast! Check out Reldens new docs here: https://lnkd.in/dFjgAfge. It’s really worth it!
Favicon
JSDoc: La Guía Definitiva para Documentar tu Código JavaScript
Favicon
Dominando el Testing y la Documentación en React: Una Guía Completa
Favicon
AI in Healthcare Documentation: The Future of Medical Records
Favicon
Understanding User Needs in Technical Writing: How Frameworks Like Diátaxis Help
Favicon
Documentation Release Notes - November 2024
Favicon
How to view API request examples in a ReadMe documentation.
Favicon
Supercharge Your Project Documentation: Introducing project-readme-gen – An AI-Powered README Generator
Favicon
Invoice & Reimbursement Document Processing
Favicon
Understand cURL more in Just 10 Minutes!🔥🔥
Favicon
Moderniser son Dossier d'Architecture Technique : Guide pratique pour 2024
Favicon
The True Value of Your Product Lies in Its Documentation
Favicon
Integrating OpenAPI Documentation and Swagger UI in Spring Boot

Featured ones: