OpenAPI Specification
Interactive API documentation powered by Swagger UI.
Authentication Required
Most endpoints require authentication. You'll need to authenticate first via the /api/auth/login endpoint before testing other endpoints.
Interactive API Explorer
Download Specification
Download the OpenAPI specification file:
- swagger.json - OpenAPI 3.0 JSON format
Using the Specification
You can use this specification with various tools:
Import into Postman
- Open Postman
- Click Import
- Select Link tab
- Paste:
https://djryanj.github.io/media-viewer/swagger.json
Generate Client SDKs
Use OpenAPI Generator to generate client libraries:
# JavaScript/TypeScript
openapi-generator-cli generate -i swagger.json -g typescript-axios -o ./client
# Python
openapi-generator-cli generate -i swagger.json -g python -o ./client
# Go
openapi-generator-cli generate -i swagger.json -g go -o ./client
Test with cURL
Each endpoint in the Swagger UI can be tested directly, or you can copy the cURL commands.
Example login request: