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

Use the router prefix for apb tool endpoints #616

Merged
merged 1 commit into from
Jan 8, 2018

Conversation

rthallisey
Copy link
Contributor

Describe what this PR does and why we need it:
Switch to using the same routing prefix for the apb tool endpoints. The apb tool has all the information needed to use these endpoints.

Which issue this PR fixes (This will close that issue when PR gets merged)
partially: ansibleplaybookbundle/ansible-playbook-bundle#180

Switch to using the same routing prefix for the apb tool endpoints
@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 5, 2018
h.router.HandleFunc("/apb/spec", createVarHandler(h.apbRemoveSpecs)).Methods("DELETE")
s.HandleFunc("/v2/apb", createVarHandler(h.apbAddSpec)).Methods("POST")
s.HandleFunc("/v2/apb/{spec_id}", createVarHandler(h.apbRemoveSpec)).Methods("DELETE")
s.HandleFunc("/v2/apb", createVarHandler(h.apbRemoveSpecs)).Methods("DELETE")
Copy link
Contributor

Choose a reason for hiding this comment

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

are we intentionally droping the /spec and including this in .../v2/... now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking we could do that going forward. Do you think we should keep it as is?

Copy link
Contributor

Choose a reason for hiding this comment

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

no real opinion either way. This will need follow up PRs for the APB tool I think if we do make the change. Other than that it LGTM

@coveralls
Copy link

coveralls commented Jan 5, 2018

Coverage Status

Changes Unknown when pulling ef6d90d on rthallisey:apb-tool-endpoints into ** on openshift:master**.

Copy link
Member

@djzager djzager left a comment

Choose a reason for hiding this comment

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

ACK

@rthallisey
Copy link
Contributor Author

@dymurray dymurray merged commit 3641733 into openshift:master Jan 8, 2018
@rthallisey rthallisey deleted the apb-tool-endpoints branch January 8, 2018 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants