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

Allow to register APISurface endpoints and handlers on an external HTTP server #33

Merged
merged 1 commit into from
Mar 27, 2018

Conversation

clamoriniere1A
Copy link
Contributor

This PR is implementing the proposal done in the issue: #32

@n3wscott
Copy link
Contributor

LGTM

Copy link
Contributor

@shawn-hurley shawn-hurley left a comment

Choose a reason for hiding this comment

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

Should there be test cases to make sure that the correct handlers are set for the NewHTTPHandler?

@clamoriniere1A
Copy link
Contributor Author

@shawn-hurley right, I will add an unit-test.

@clamoriniere1A clamoriniere1A force-pushed the feature/externallHTTPServer branch from d45c56d to 291ba7e Compare March 23, 2018 19:46
Currently, it wasn't possible to register the Broker APISurface
handler on an external HTTP server, since the registration was
included in the server.New() method that instantiates also the
server.Server.

This commit is splitting the current server.New(...) method in two
in order to have a specific method for APISurface handler
registration: server.registerHTTPHandler(...).

An additional Public method NewHTTPHandler(...) is added in order
to allow a user to register on an external HTTP server the Broker
API endpoints.
@clamoriniere1A
Copy link
Contributor Author

@shawn-hurley unit-test added

Copy link
Contributor

@shawn-hurley shawn-hurley left a comment

Choose a reason for hiding this comment

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

👍

we should note that we may want to add test cases for other status codes with already created field here but I like these tests thanks!

@pmorie
Copy link
Owner

pmorie commented Mar 27, 2018

Thanks for the patch @clamoriniere1A

@pmorie pmorie merged commit 51a5587 into pmorie:master Mar 27, 2018
jboyd01 pushed a commit to jboyd01/osb-broker-lib that referenced this pull request Apr 17, 2018
Add ability to update the service instance
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.

4 participants