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
Post a Comment