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

API Docs improvements #734

Merged
merged 9 commits into from
Aug 7, 2020
Merged

API Docs improvements #734

merged 9 commits into from
Aug 7, 2020

Conversation

raymondjacobson
Copy link
Member

@raymondjacobson raymondjacobson commented Aug 6, 2020

Trello Card Link

https://trello.com/c/fZlU0a1J/1443-api-docs-formatting-polishing-w-forrest

Description

Adds doc string comments w/ rest+ & cleans up API responses a bit

Services

  • Discovery Provider
  • Creator Node
  • Identity Service
  • Libs
  • Contracts

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide repro instructions & any configuration.
Include log analysis if applicable.

Manually tested each endpoint and viewed swagger documentation. Generated API docs from the changes here.

  • duration field
    Ran a local discovery service, uploaded a track and verified the duration field was present and had the correct value

  • https/http
    Pushed up a custom tag to staging and made sure swagger docs did load

  • No tracks for non-creator users
    Created a user locally and verified http://localhost:5000/v1/users/7eP5n/tracks returns

{
data: [ ]
}

Copy link
Contributor

@piazzatron piazzatron 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 👍

discovery-provider/src/api/v1/models/common.py Outdated Show resolved Hide resolved
discovery-provider/src/api/v1/tracks.py Outdated Show resolved Hide resolved
discovery-provider/src/api/v1/tracks.py Show resolved Hide resolved
Copy link
Contributor

@dmanjunath dmanjunath left a comment

Choose a reason for hiding this comment

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

Changes look good!

@raymondjacobson raymondjacobson merged commit 2f0b941 into master Aug 7, 2020
@raymondjacobson raymondjacobson deleted the piazz-docs branch August 7, 2020 20:49
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.

None yet

3 participants