-
Notifications
You must be signed in to change notification settings - Fork 78
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
feat: Commit boost API - Generate Proxy Key #1043
Conversation
-- Added routes and handler -- Added acceptance test
private static final int NOT_FOUND = 404; | ||
private static final int BAD_REQUEST = 400; | ||
private static final int INTERNAL_ERROR = 500; |
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.
These should be defined somewhere common, so they don't need to be redefined again
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.
We might be able to reuse Vertx constants.
.end( | ||
new JsonObject() | ||
.put("code", statusCode) | ||
.put("message", "Identifier not found.") |
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.
Not sure how strict commit boost is on the error message, but the API specifies the message of "Unknown pubkey" for a 404 on this page https://commit-boost.github.io/commit-boost-client/api/
.end( | ||
new JsonObject() | ||
.put("code", statusCode) | ||
.put("message", "Internal Server Error") |
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.
Not sure how strict commit boost is on the error message, but the API specifies the message of "Internal error" for a 500 on this page https://commit-boost.github.io/commit-boost-client/api/
PR Description
Commit boost API - Generate Proxy Key Implementation of https://commit-boost.github.io/commit-boost-client/api
Fixed Issue(s)
See #1017
Documentation
doc-change-required
label to this PR if updates are required.Changelog
Testing