-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Describe the Weblate REST API with OpenAPI #12584
Copy link
Copy link
Open
Labels
Waiting for: DemandLow priority for development. Pull requests welcome. Can be prioritized by sponsorship.Low priority for development. Pull requests welcome. Can be prioritized by sponsorship.documentationImprovements or additions to the documentation.Improvements or additions to the documentation.enhancementAdding or requesting a new feature.Adding or requesting a new feature.
Description
Metadata
Metadata
Assignees
Labels
Waiting for: DemandLow priority for development. Pull requests welcome. Can be prioritized by sponsorship.Low priority for development. Pull requests welcome. Can be prioritized by sponsorship.documentationImprovements or additions to the documentation.Improvements or additions to the documentation.enhancementAdding or requesting a new feature.Adding or requesting a new feature.
Type
Fields
Give feedbackPriority
None yet
Describe the problem
There is not a problem to solve per se. The current API documentation is good. In my opinion, the proposed OpenAPI standard might be an improvement upon such documentation.
Describe the solution you would like
OpenAPI (formerly known as Swagger) is one of the most popular specifications to describe REST APIs formally. It allows developers to define the entire Weblate REST API with a root OpenAPI document.
Some advantages this standard might offer over the current API documentation are:
.rstfiles).Describe alternatives you have considered
No response
Screenshots
This is how the Weblate REST API looks in Swagger UI:
Click to show image
In Sphinx with
sphinxcontrib-openapi:Click to show image
In Sphinx with
sphinxcontrib-redoc:Click to show image
Additional context
Compared to Swagger UI, the Sphinx plugins are missing information and seem to work worse. If we can get
drf_spectacularto work with Weblate, it should be possible to offer the OpenAPI document programmatically and letting people use it as they please.