891 B
891 B
Elmeg API Documentation
The Elmeg API is built with FastAPI, which automatically generates interactive documentation.
Accessing the Docs
When the backend server is running locally:
- Swagger UI: http://localhost:8000/docs - Test endpoints directly in the browser.
- ReDoc: http://localhost:8000/redoc - Alternative documentation view.
Authentication
Most write operations (POST, PUT, DELETE) require a Bearer Token.
- Use the
/auth/tokenendpoint (or login via Frontend) to get a token. - In Swagger UI, click the Authorize button and enter the token.
Key Endpoints
/shows: CRUD for Shows./songs: CRUD for Songs and Stats./attendance: Manage user attendance./social: Comments and Ratings./moderation: Moderator tools./preferences: User preferences (Wiki Mode).