-
Notifications
You must be signed in to change notification settings - Fork 62
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 Documentation for PdfGenerator2122Controller #18395
base: master
Are you sure you want to change the base?
Conversation
Generated by 🚫 Danger |
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.
Looks good! Just a couple of minor comments.
title: 'va.gov Representation Management API', | ||
version: '0.1.0', | ||
termsOfService: 'https://developer.va.gov/terms-of-service', | ||
description: 'The API for managing representation for VA Forms 21-22 and 21-22a' |
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 think the description should reflect the broader range of functionalities provided by these APIs. Something like, 'A set of APIs powering the POA Widget, Find a Representative, and Appoint a Representative.' @jvcAdHoc What do you think?
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.
Sounds good to me!
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.
rakelib/rswag.rake
Outdated
@@ -63,6 +63,16 @@ namespace :rswag do | |||
run_tasks_in_parallel(%w[rswag:appeals_api:prod rswag:appeals_api:dev]) | |||
end | |||
end | |||
|
|||
namespace :representation_management do | |||
desc 'Generate rswag docs for the representation_management' |
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.
Perhaps change this to 'Generate rswag docs for representation_management'
(i.e. remove the word 'the').
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.
Good catch!
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.
LGTM!
Summary
RepresentationManagement::V0::PdfGenerator2122Controller
has been added in therswag
format and the existing documentation for theRepresentationManagement::V0::PowerOfAttorneyController
has been converted to that same format.Related issue(s)
Testing done
http://localhost:3000/representation_management/v0/apidocs
in a web browser and see the docs in JSON format. You can also follow the instructions here to load the swagger viewer then point it at that same url to get a more interactive view.Screenshots
Tall screenshot of entire `RepresentationManagement `apidocs page
What areas of the site does it impact?
(Describe what parts of the site are impacted andifcode touched other areas): It only touches the
RepresentationManagement
apidocs page.Acceptance criteria