Skip to content

[bookie-http-server] Fix: broken vertx rest endpoints#1953

Merged
sijie merged 1 commit intoapache:masterfrom
rdhabalia:http_ep
Feb 25, 2019
Merged

[bookie-http-server] Fix: broken vertx rest endpoints#1953
sijie merged 1 commit intoapache:masterfrom
rdhabalia:http_ep

Conversation

@rdhabalia
Copy link
Contributor

Motivation

Right now, vertx-http-server is not serving any rest endpoint except get because vertx server doesn't add put/post/delete http-methods into routing rules.

Modification

Add put/post/delete http-methods into routing rules.

@Override
public void bindHandler(String endpoint, VertxAbstractHandler handler) {
router.get(endpoint).handler(handler);
router.put(endpoint).handler(handler);
Copy link
Member

Choose a reason for hiding this comment

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

interesting... I am wondering why it was not captured by our tests. /cc @jiazhai can you check do we have test coverage of gc endpoint?

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 think test only covers get and not the put. I will add test for triggering gc.

@sijie sijie requested a review from jiazhai February 20, 2019 00:58
@sijie sijie assigned sijie and rdhabalia and unassigned sijie Feb 20, 2019
@sijie
Copy link
Member

sijie commented Feb 20, 2019

run integration tests

@sijie sijie added this to the 4.10.0 milestone Feb 25, 2019
@sijie sijie merged commit 9c14476 into apache:master Feb 25, 2019
sijie pushed a commit that referenced this pull request Feb 27, 2019
### Motivation

As discussed at #1953, adding test to verify all http-method works for vertx-http-server.



Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Sijie Guo <sijie@apache.org>

This closes #1963 from rdhabalia/gc_test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants