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

Document the API #426

Merged
merged 8 commits into from
Aug 12, 2024
Merged

Document the API #426

merged 8 commits into from
Aug 12, 2024

Conversation

mfcrocker
Copy link
Contributor

What and why?

The Party API is poorly documented and we need to do work on it. This creates an OpenAPI document as well as an (extensive) list of known issues with the API

How to test?

Copy/paste the API document into https://editor.swagger.io/

Known issue

The editor will complain about there being a requestBody on GET /respondents/email. It's right to complain, but that is how the API is written and I've gone for accuracy rather than correctness. This is noted in the attached known-api-issues.md

Jira

RAS-1182

known-api-issues.md Outdated Show resolved Hide resolved
Copy link
Contributor

@LJBabbage LJBabbage left a comment

Choose a reason for hiding this comment

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

I think you might have missed /respondents/<respondent_id>/password-verification-token/ DELETE

First pass, but the openapi looks good, just some minor adjustments. Lots of potential 500 and key errors in there, which I haven't highlighted all and don't think we need to capture. The countless 404 checks for the same things (or lack of in some instance) in multiple different places is a pain, but again not for this card to sort

known-api-issues.md Outdated Show resolved Hide resolved
openapi.yaml Show resolved Hide resolved
openapi.yaml Show resolved Hide resolved
openapi.yaml Outdated Show resolved Hide resolved
openapi.yaml Outdated Show resolved Hide resolved
openapi.yaml Show resolved Hide resolved
openapi.yaml Show resolved Hide resolved
openapi.yaml Show resolved Hide resolved
openapi.yaml Show resolved Hide resolved
openapi.yaml Show resolved Hide resolved
Copy link
Contributor

@pricem14pc pricem14pc left a comment

Choose a reason for hiding this comment

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

Eyeball review of the new OpenAPI yaml spec and looks much better than what we had originally. Do we still think there's value in keeping the API.md file?

@mfcrocker mfcrocker merged commit 3bbc7e9 into main Aug 12, 2024
1 check passed
@mfcrocker mfcrocker deleted the document-api branch August 12, 2024 09:18
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