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

3468 swagger clean up follow up #1387

Closed
wants to merge 2 commits into from
Closed

Conversation

defong
Copy link
Contributor

@defong defong commented May 29, 2020

Context

Changes proposed in this pull request

Guidance to review

Checklist

  • Make sure all information from the Trello card is in here
  • Attach to Trello card
  • Rebased master
  • Cleaned commit history
  • Tested by running locally

Copy link
Contributor Author

@defong defong left a comment

Choose a reason for hiding this comment

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

pretty sure can delete api_spec

@@ -5,7 +5,14 @@
get :sha, controller: :heartbeat
get :reporting, controller: :reporting

# NOTE: this has questionable existance.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

do we actually need this?

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is needed any more. originally we had an open api spec but no way of presenting it, this was then added to fit that space. However it needed to be gov branded so was not fit for purpose. This is now presented thru the tech docs gem

# NOTE: this has questionable existance.
# Why do we need api?
# When it seems to be a static file server...
# That only works after `bundle exec rake rswag:specs:swaggerize`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

if we dont actual use the ui is there away to

bundle exec rake rswag:specs:swaggerize
which uses really just generates swagger/public_v1/api_spec.json
and then server is via /api-docs/public_v1/api_spec.json

Copy link
Contributor

Choose a reason for hiding this comment

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

the command needs to be fired at some point to generate the new open api spec if there have been any changes. this could be made as part of the build process

@asmega
Copy link
Contributor

asmega commented May 29, 2020

the placeholder code is needed as i believe some tests depend on it. you can try deleting and see if the tests still pass

@defong
Copy link
Contributor Author

defong commented Jun 1, 2020

Swagger clean up

@defong defong closed this Jun 4, 2020
@defong defong deleted the 3468-swagger-clean-up-follow-up branch June 4, 2020 07:58
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

2 participants