Skip to content

API Improvements #32609

@feanil

Description

@feanil

Context

The edx-platform repo already generates API documentation via make api-docs. This will generate new API docs at
docs/api/_build/html/index.html

  • These docs aren't published anywhere.
  • APIs that impact just the calling user and APIs for manipulating the system are intermingled.
  • To generate the API docs, the following tools are used:

Open API and drf-yasg

  • drf-yasg only supports Open API 2.0 and has no plans for supporting Open API 3.0
  • Some teams are already using drf-spectactular to replace drf-yasg.
  • drf-spectactular supports Open API 3.0

Tasks

- [ ] https://github.com/openedx/edx-platform/issues/32610
- [ ] https://github.com/openedx/edx-platform/issues/35057
- [ ] Add drf-spectacular to edx-platform
- [x] Update `sw2sphinxopenapi.py` to be able to publish openapi 3.0 schema to sphinx.  - No longer needed because we use a 3rd party plugin to sphinx that does this.
- [ ] DEPR Discovery - Should we get rid of api-doc-tools
- [ ] https://github.com/openedx/edx-platform/issues/36157

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions