API Documentation
Create clear API documentation with this Markdown template. Define endpoints, parameters, authentication methods, and response examples for developers.
# API Documentation: User Service
## ๐ Authentication
Include the `Authorization: Bearer <token>` header in all requests.
## ๐ค Get User Profile
`GET /api/v1/users/:id`
### Parameters
| Name | Type | Description |
| :--- | :--- | :--- |
| id | string | The unique user ID |
### Response
```json
{
"status": "success",
"data": {
"username": "johndoe",
"email": "john@example.com"
}
}
```
API Documentation: User Service
๐ Authentication
Include the Authorization: Bearer <token> header in all requests.
๐ค Get User Profile
GET /api/v1/users/:id
Parameters
| Name | Type | Description |
|---|---|---|
| id | string | The unique user ID |
Response
{
"status": "success",
"data": {
"username": "johndoe",
"email": "john@example.com"
}
}
How to use this template
- 1
Copy the Markdown
Click the Copy button above to put the full template on your clipboard.
- 2
Paste into your editor
Paste into VS Code, Obsidian, the mdkit editor, or any Markdown editor. The template renders cleanly in any GFM-compatible viewer.
- 3
Fill in your content
Replace the placeholder text with your own. Delete sections you don't need โ the template is a starting point, not a contract.
- 4
What it solves
API documentation bridges the gap between backend logic and frontend (or third-party) consumption. It solves the frustration of 'guessing' how an API works by providing a clear contract of endpoints, parameters, and expected responses.
Key features
- Authentication methods (e.g., Bearer Token)
- Detailed endpoint definitions (GET, POST, etc.)
- Parameter tables with types and descriptions
- JSON response examples for success and error states
Pro tips
- โบKeep your examples copy-paste friendly.
- โบDocument common error codes (400, 401, 404, 500) and their meanings.
- โบUse tools like Swagger or Postman, but keep a Markdown version for quick reference in the repo.
Related templates
Project README
Use this standard Project README template to document your software. Includes sections for installation, features, tech stack, and usage instructions.
Changelog
Keep your users informed with this Changelog template. Document project updates, bug fixes, and new features in a clear, chronological format.
Project Post-Mortem
Conduct effective project reviews with this Post-Mortem template. Analyze successes, failures, and key lessons learned to improve future projects.