Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add swagger support and improve REST API documentation #59

Merged
merged 1 commit into from
Feb 10, 2021

Conversation

MoisesGSalas
Copy link
Member

Similarly to eox-core, this PR aims to provide documentation that's more easily accessible.
Changes include:

  • A new endpoint /eox-tagging/api-docs/ that will serve the live documentation
  • A backport of this fix
  • Added descriptions for parameters and methods used by the API

@mariajgrimaldi
Copy link
Contributor

can we test this in stage?

"""
Fetch details for a single tag by key
""",
responses={404: "Not found"},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you use the status from drf ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

security_definitions = {
"OAuth2": {
"flow": "application",
"tokenUrl": "{}/oauth2/access_token/".format(settings.LMS_ROOT_URL),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can get this url by using reverse()

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

    * A new view under `/eox-tagging/api-docs` can be used to interact
      with the REST API
    * Added descriptions of all the parameters and methods used by the
      API
    * Included a backport fix for carltongibson/django-filter#1323
@MoisesGSalas MoisesGSalas merged commit 09fbafb into master Feb 10, 2021
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.

3 participants