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

REST API docs via OpenAPI #316

Merged
merged 9 commits into from
Jan 24, 2024

Conversation

bourque
Copy link
Collaborator

@bourque bourque commented Jan 19, 2024

Change Summary

Overview

This PR adds a new documentation page that describes our REST API. It is mostly auto-generated using OpenAPI, though I added some customized examples.

New Dependencies

  • sphinxcontrib-openapi -- sphinx extension to support auto-generated OpenAPI docs

New Files

  • docs/source/rest-api/index.rst
    • Index page for the REST API docs
  • docs/source/rest-api/openapi.yml
    • OpenAPI configuration for our SDC REST API

Updated Files

  • docs/source/conf.py
    • Added the sphinxcontrib-openapi extension
  • docs/source/index.rst
    • Added link to the REST API docs
  • pyproject.toml and poetry.lock
    • Added sphinxcontrib-openapi dependency

@bourque bourque added the Repo: Documentation Improvements or additions to documentation label Jan 19, 2024
@bourque bourque self-assigned this Jan 19, 2024
Copy link
Contributor

@maxinelasp maxinelasp left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for adding this!

docs/source/index.rst Outdated Show resolved Hide resolved
docs/source/rest-api/index.rst Outdated Show resolved Hide resolved
docs/source/rest-api/index.rst Outdated Show resolved Hide resolved
Copy link
Collaborator

@greglucas greglucas left a comment

Choose a reason for hiding this comment

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

This looks great!!

I think all of our API is going through query parameters right now. Do we want to change any of those to path parameters on the backend?

I added quite a few comments on the content of the API/server that are unrelated to this PR, so feel free to ignore them and just consider them left there for us to think about updating on the backend.

docs/source/index.rst Outdated Show resolved Hide resolved
docs/source/rest-api/index.rst Outdated Show resolved Hide resolved
docs/source/rest-api/index.rst Outdated Show resolved Hide resolved
docs/source/rest-api/index.rst Outdated Show resolved Hide resolved
docs/source/rest-api/index.rst Outdated Show resolved Hide resolved
docs/source/rest-api/openapi.yml Outdated Show resolved Hide resolved
docs/source/rest-api/openapi.yml Outdated Show resolved Hide resolved
docs/source/rest-api/index.rst Outdated Show resolved Hide resolved
Copy link
Contributor

@tech3371 tech3371 left a comment

Choose a reason for hiding this comment

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

It looks great! Thank you! I had few minor corrections.

docs/source/rest-api/index.rst Outdated Show resolved Hide resolved
docs/source/rest-api/index.rst Outdated Show resolved Hide resolved
docs/source/rest-api/index.rst Outdated Show resolved Hide resolved
docs/source/rest-api/openapi.yml Outdated Show resolved Hide resolved
docs/source/rest-api/openapi.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@sdhoyt sdhoyt left a comment

Choose a reason for hiding this comment

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

This looks great!

@bourque bourque requested review from tech3371 and greglucas January 23, 2024 22:06
@bourque
Copy link
Collaborator Author

bourque commented Jan 23, 2024

@greglucas @sdhoyt I pushed some changes that hopefully reflect what we are likely to merge in with #317 and IMAP-Science-Operations-Center/sds-data-manager#228. There will still likely be some tweaks we will want to make, but I think this is a good starting point. We should discuss this at our next meeting.

Copy link
Collaborator

@greglucas greglucas left a comment

Choose a reason for hiding this comment

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

Looks good to me.

docs/source/data-access-api/openapi.yml Outdated Show resolved Hide resolved
docs/source/data-access-api/openapi.yml Outdated Show resolved Hide resolved
@bourque bourque merged commit e4e17a9 into IMAP-Science-Operations-Center:dev Jan 24, 2024
17 checks passed
@bourque bourque deleted the openapi branch January 24, 2024 16:31
laspsandoval pushed a commit to laspsandoval/imap_processing that referenced this pull request Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Repo: Documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants