Instructions:
- First, describe what your API does and its main purpose.
- Explain the basic principles and concepts behind your machine API.
- Add a glossary table of terms to help users understand key concepts.
- You can use HTTP code snippets like in the examples below to properly show endpoints. Users will be able to test them in the documentation by clicking the "Send request" button (if supported).
- You can also use code snippets (TypeScript, Python, etc.) to show how to interact with the machine programmatically.
Writing good documentation for machine endpoints helps users understand, test, and integrate with your API. Follow these guidelines to make your documentation clear and useful:
${baseUrl}
for variable parts of URLs.You can use HTTP code snippets (see examples below) to show how to call your endpoints. These snippets allow users to test the endpoint directly from the documentation, for example by clicking a "Send request" button in interactive docs.
GET ${baseUrl}/download-image
GET ${baseUrl}/download-image test-header: "ABCD" { "property": true }
POST ${baseUrl}/externalCallback x-token: token1234 Content-Type: application/x-www-form-urlencoded field1=value1&field2=value2
POST ${baseUrl}/externalCallback x-token: token1234 Content-Type: multipart/form-data; boundary=boundary --boundary Content-Disposition: form-data; name="file"; filename="test.txt" Content-Type: text/plain This is a test file. --boundary Content-Disposition: form-data; name="field1" value1 --boundary Content-Disposition: form-data; name="field2" value2 --boundary--
You can also use code snippets (e.g., TypeScript, Python) to show how to interact with the machine programmatically:
console.log('Hello world')
By following these guidelines and using HTTP/code snippets, your documentation will be easy to read, test, and maintain. Interactive HTTP examples make it simple for users to try endpoints directly from the docs.
© 2025 Routzie Routzie.com