rusackas opened a new pull request, #37943: URL: https://github.com/apache/superset/pull/37943
## Summary The Theme API was added in #34182 but the OpenAPI spec used for the [API documentation](https://superset.apache.org/docs/api) hadn't been regenerated to include these endpoints. This PR: - Regenerates `docs/static/resources/openapi.json` from a running Superset instance - Adds all Theme API endpoints that were missing from the docs - Adds a "Themes" tag description to `fix-openapi-spec.py` ### Theme API endpoints now documented: | Endpoint | Description | |----------|-------------| | `GET /api/v1/theme/` | List all themes | | `POST /api/v1/theme/` | Create a new theme | | `GET /api/v1/theme/{pk}` | Get a theme by ID | | `PUT /api/v1/theme/{pk}` | Update a theme | | `DELETE /api/v1/theme/{pk}` | Delete a theme | | `PUT /api/v1/theme/{pk}/set_system_default` | Set as system default theme | | `PUT /api/v1/theme/{pk}/set_system_dark` | Set as system dark theme | | `DELETE /api/v1/theme/unset_system_default` | Remove system default designation | | `DELETE /api/v1/theme/unset_system_dark` | Remove system dark designation | | `GET /api/v1/theme/export/` | Export themes as YAML | | `POST /api/v1/theme/import/` | Import themes from YAML | ## Testing Instructions 1. Build the docs site locally: `cd docs && yarn build` 2. Serve and navigate to API reference 3. Verify "Themes" section appears with all endpoints ## Additional Information This aligns the auto-generated API docs at https://superset.apache.org/docs/api with the manually documented API endpoints at https://superset.apache.org/docs/configuration/theming/#api-access 🤖 Generated with [Claude Code](https://claude.ai/code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
