Passing list of boxed primitives to Google Cloud Endpoint
I am struggling with Lists as method parameters at Google Cloud Endpoints. The documentations says that The supported parameter types are the following: java.util.Collection of a parameter type I tried to do it this way, but it just do not work. Basic endpoint method: @ApiMethod(name = "testMethod", httpMethod = HttpMethod.POST) public void testMethod(@Named("longList") List<Long> longList) { for (Long aLong : longList) { if (aLong < 5) { throw new IllegalArgumentException("You can't do it"); } } } When I execute this method using API Exploler the generated URL is: POST http://localhost:8080/