Created
August 30, 2013 10:31
-
-
Save kroepke/6388514 to your computer and use it in GitHub Desktop.
graylog2 api class interface proposal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GetMessageResponse r0 = Api.get("/messages/" + index + "/" + id, GetMessageResponse.class); | |
GetMessageResponse r1 = Api.get("/messages/{0}/{1}", GetMessageResponse.class, index, id); | |
GetMessageResponse r2 = Api.get(GetMessageResponse.class) | |
.path("/messages/{0}/{1}") | |
.pathParams(index, id) | |
.execute(); |
Has this been pushed to master yet? Couldn't find anything and used the deprecated urlEncode
for now. :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's pretty nice stuff! :)