java - Passing list of boxed primitives to Google Cloud Endpoint -


i struggling lists method parameters @ google cloud endpoints.

the documentations says

the supported parameter types following:

  • java.util.collection of parameter type

i tried way, not work. basic endpoint method:

@apimethod(name = "testmethod", httpmethod = httpmethod.post) public void testmethod(@named("longlist") list<long> longlist) {     (long along : longlist) {         if (along < 5) {             throw new illegalargumentexception("you can't it");         }     } } 

when execute method using api exploler generated url is:

post http://localhost:8080/_ah/api/billendpoint/v1/testmethod?longlist=5&longlist=6 

and method executed correctly.

but when android library used url changed to:

http://app_engine_backend:8080/_ah/api/billendpoint/v1/testmethod/5,6 

and endpoint return 404 code.

it possible have list method parameter , if doing wrong?

please add @nullable annotation method, turn collection-type parameter path query parameter.

https://developers.google.com/appengine/docs/java/endpoints/annotations#nullable


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -