OpenAPI Reference¶
The complete OpenAPI specification for the Genji Shimada API.
Generated Specification
This page contains the authoritative OpenAPI spec, generated directly from the Litestar application.
Interactive Documentation¶
For a more interactive experience with request/response testing, visit:
- Production: https://api.genji.pk/docs
- Development: https://dev-api.genji.pk/docs
Download Spec
You can download the raw OpenAPI spec in JSON format: openapi.json
Generating the Spec Locally¶
To regenerate the OpenAPI spec from the Litestar app:
To build the documentation site afterward:
Using the Spec¶
Import into Postman¶
- Download openapi.json
- Open Postman
- Click Import → Upload Files
- Select the downloaded
openapi.json
Generate Client SDKs¶
Use tools like openapi-generator to generate client libraries:
Validate Requests¶
Use the spec to validate API requests in your tests or CI/CD pipeline.
Specification Details¶
The OpenAPI spec includes:
- All endpoints with request/response schemas
- Authentication requirements (API key and scopes)
- Error responses with status codes and messages
- Data models for all request and response bodies
Schema Highlights¶
Authentication¶
The spec documents API key authentication via the X-API-KEY header.
Endpoints¶
Major endpoint groups:
/maps- Map CRUD and search/completions- Completion submissions and tracking/users- User profiles and settings/auth- Email-based authentication endpoints/notifications- Notification delivery/lootbox- Lootbox system
Models¶
All request/response bodies use msgspec Struct definitions from libs/sdk.
Next Steps¶
- Authentication Guide - Learn how to authenticate API requests
- External API Docs - Try the API interactively