When documenting REST API endpoints, follow this structure:
- •Start with the HTTP method and endpoint path
- •Add a brief description of the endpoint's purpose
- •List all request parameters with types and whether required/optional
- •Show an example request with sample data
- •Document the response structure with status codes
- •Include common error responses
Use clear, concise language and follow OpenAPI 3.0 conventions.