Code
API Documentation
Generate clear documentation for an API endpoint.
Write API documentation for the following endpoint. Include: endpoint URL, HTTP method, request headers, request body (with example JSON), response body (with example JSON for success and error cases), status codes, and a curl example. Format in Markdown. Make it clear enough that a developer can integrate it without asking questions.
```
[PASTE ENDPOINT CODE OR DESCRIBE IT]
```
documentationAPIdocs
Want to use this with one click inside ChatGPT?
Get TresPrompt →