Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * An endpoint class we are exposing
- */
- @Api(
- name = "myApi",
- version = "v2",
- namespace = @ApiNamespace(
- ownerDomain = "awesome.me.com",
- ownerName = "awesome.me.com",
- packagePath = "api/v2"
- )
- )
- public class MyEndpointV2 extends MyEndpoint{
- @ApiMethod(name = "getContact")
- public Charges getContact(ContactRequest request){
- return ContactHandler.getContact(request);
- }
- }
- myapi.getContact()
- @Api(
- name = "myApi",
- version = "v1",
- namespace = @ApiNamespace(
- ownerDomain = "awesome.me.com",
- ownerName = "awesome.me.com",
- packagePath = ""
- )
- )
- public class MyEndpoint{
- @ApiMethod(name = "getPeriod")
- public Period getPeriod(@Named("days")long days) {
- return Handler.getPeriod(days);
- }
- //other api methods
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement