Skip to content

Conversation

mre
Copy link
Member

@mre mre commented Oct 1, 2025

  • Install swagger-jsdoc and swagger-ui-express
  • Create comprehensive OpenAPI configuration with API overview
  • Document analytics endpoint with detailed JSDoc annotations
  • Add schema definitions for all response types (Spotify, Apple, Hoster, etc.)
  • Expose Swagger UI at /api-docs and OpenAPI spec at /api-docs.json
  • Make documentation publicly accessible (no auth required)

Fixes: #216

mre added 5 commits October 1, 2025 15:22
- Install swagger-jsdoc and swagger-ui-express
- Create comprehensive OpenAPI configuration with API overview
- Document analytics endpoint with detailed JSDoc annotations
- Add schema definitions for all response types (Spotify, Apple, Hoster, etc.)
- Create AVAILABLE_QUERIES.md listing all 50+ query endpoints
- Expose Swagger UI at /api-docs and OpenAPI spec at /api-docs.json
- Make documentation publicly accessible (no auth required)

The documentation includes:
- All available data sources (Spotify, Apple Podcasts, generic hosters)
- Complete parameter definitions with examples
- Response schemas with property descriptions
- Authentication requirements
- CSV export format support
- Example usage for common scenarios
Prevents 'Duplicate column name' error when running migrations on a fresh
database that already has the column in schema.sql
@mre mre requested a review from woolfg October 7, 2025 11:14
@woolfg woolfg merged commit cad694e into main Oct 13, 2025
2 checks passed
@woolfg woolfg deleted the api-docs branch October 13, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API Docs

2 participants