qgis / QGIS-Django

Django project for QGIS related activities such as plugin repository
http://qgis.org
GNU General Public License v2.0
91 stars 61 forks source link

[Feature request]: Add OpenAPI/Swagger Documentation for the REST API #473

Open Guts opened 1 month ago

Guts commented 1 month ago

Description

I would like to request the addition of OpenAPI (Swagger) documentation for the REST API of the QGIS web application. This would greatly enhance the usability of the API by providing clear and interactive documentation for developers who are integrating or consuming the API.

Why is this needed?

Proposed Solution

  1. Generate OpenAPI Specification: Use tools like Django REST framework's built-in support for generating OpenAPI specs.
  2. Swagger UI Integration: Host the Swagger UI within the project or as part of the API endpoint, allowing developers to visualize and interact with the API.
  3. Automation: Ensure that the OpenAPI schema is updated automatically with any changes to the API endpoints, possibly via CI/CD pipelines.

Additional Context


Additional Information

Any relevant links or references can be included here, such as: