{"type":"doc","content":[{"type":"heading","attrs":{"level":1,"textAlign":"left"},"content":[{"text":"API Documentation","type":"text"}]},{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"Use this document to provide comprehensive information about your API endpoints, including details about each endpoint, parameters, authentication, error codes, and versioning.","type":"text"}]},{"type":"heading","attrs":{"level":2,"textAlign":"left"},"content":[{"text":"1. Endpoint Overview","type":"text"}]},{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"Provide a brief description of the API endpoint here.","type":"text"}]},{"type":"heading","attrs":{"level":3,"textAlign":"left"},"content":[{"text":"Endpoint Name","type":"text"}]},{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"Enter the name of the endpoint (e.g., Get User Details).","type":"text"}]},{"type":"heading","attrs":{"level":3,"textAlign":"left"},"content":[{"text":"URL","type":"text"}]},{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"Specify the full URL path for the endpoint (e.g., /api/v1/users/{id}).","type":"text"}]},{"type":"heading","attrs":{"level":3,"textAlign":"left"},"content":[{"text":"HTTP Method","type":"text"}]},{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"Indicate the HTTP method used (GET, POST, PUT, DELETE, etc.).","type":"text"}]},{"type":"heading","attrs":{"level":3,"textAlign":"left"},"content":[{"text":"Parameters","type":"text"}]},{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"List all parameters accepted by this endpoint with their details:","type":"text"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"Name: Parameter name","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"Type: Data type (string, integer, boolean, etc.)","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"Required: Yes/No","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"Description: Explanation of the parameter","type":"text"}]}]}]},{"type":"heading","attrs":{"level":3,"textAlign":"left"},"content":[{"text":"Example Request","type":"text"}]},{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"Provide a sample request payload or URL.","type":"text"}]},{"type":"heading","attrs":{"level":3,"textAlign":"left"},"content":[{"text":"Example Response","type":"text"}]},{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"Provide a sample response with status code and body.","type":"text"}]},{"type":"heading","attrs":{"level":2,"textAlign":"left"},"content":[{"text":"2. Authentication","type":"text"}]},{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"Describe authentication methods required to access this endpoint (e.g., API keys, OAuth tokens).","type":"text"}]},{"type":"heading","attrs":{"level":2,"textAlign":"left"},"content":[{"text":"3. Error Codes","type":"text"}]},{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"List possible error codes and their meanings:","type":"text"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"400 Bad Request: The request was invalid or cannot be served.","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"401 Unauthorized: Authentication failed or user does not have permissions.","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"404 Not Found: The requested resource could not be found.","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"500 Internal Server Error: An unexpected error occurred on the server.","type":"text"}]}]}]},{"type":"heading","attrs":{"level":2,"textAlign":"left"},"content":[{"text":"4. Versioning and Changelog","type":"text"}]},{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"Track API versions and notable changes below.","type":"text"}]},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"Version: Specify the API version number.","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"Date: Release date of the version.","type":"text"}]}]},{"type":"listItem","content":[{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"Changes: Summary of updates or fixes.","type":"text"}]}]}]},{"type":"paragraph","attrs":{"textAlign":"left"},"content":[{"text":"| Version | Release Date | Changes |","type":"text"},{"type":"hardBreak"},{"text":"|---------|--------------|---------|","type":"text"},{"type":"hardBreak"},{"text":"| 1.0.0 | YYYY-MM-DD | Initial release |","type":"text"},{"type":"hardBreak"},{"text":"| | | |","type":"text"}]}]}