Where to find it
Open the Documentation view for your endpoint. Under the Swagger Preview, the Dev Integration section presents language tabs with ready-to-copy examples. Use the Copy button to paste into your project.
Languages available
- cURL: quick CLI tests.
- JavaScript (fetch): for web apps and Node.js.
- Python (requests): common for scripts and tests.
- Java (HttpClient): modern JDK client.
- C# (HttpClient): .NET integration.
- Apex: Salesforce integrations.
curl -X POST "https://mockhub.ovh/your/endpoint" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_TOKEN>" \
--data '{"hello":"world"}'
The examples adapt to your method and default body. If the endpoint requires auth, the Authorization: Bearer <token> header is included.
Tips for production
- Prefer environment variables or secrets managers for tokens.
- Validate response shapes and handle non-200 codes.
- Use small payloads and realistic sample values.