-
Notifications
You must be signed in to change notification settings - Fork 3
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
docs: add swagger spec #6
base: next
Are you sure you want to change the base?
Conversation
Signed-off-by: Nam Hoang <[email protected]>
Coverage report
Test suite run success37 tests passing in 9 suites. Report generated by π§ͺjest coverage report action from 217cf34 |
Signed-off-by: Nam Hoang <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @namhoang1604, if I change the accepted payloads in the request/response of the API, how is this change reflected in the API spec generated? Are we relying on the contributor to know to change the version of the API spec?
"uri": { | ||
"type": "string", | ||
"example": "http://localhost:3333/v1/verifiable-credentials/123e4567-e89b-12d3-a456-426614174000.json" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that the API_VERSION
in the config is hardcoded as 'v1.0.0'. I think the uri example here should be updated to reflect this accordingly.
"uri": { | ||
"type": "string", | ||
"example": "http://localhost:3333/v1/verifiable-credentials/123e4567-e89b-12d3-a456-426614174000.json" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that the API_VERSION
in the config is hardcoded as 'v1.0.0'. I think the uri example here should be updated to reflect this accordingly.
@@ -104,6 +106,8 @@ yarn build | |||
yarn start | |||
``` | |||
|
|||
The Swagger UI is available at `http://localhost:3333/api-docs`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that this line is duplicated in the README.md
. Could you consolidate it into a single, common sentence for the Swagger UI endpoint instead of duplicating it?
Description
This PR adds Swagger API spec
What type of PR is this? (check all applicable)
Related Tickets & Documents
https://github.com/gs-gs/fa-ag-trace/issues/681
Mobile & Desktop Screenshots/Recordings
Added tests?
Added to documentation?
[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?