According to the 'API Parameter and Return Types
<https://cloud.google.com/appengine/docs/java/endpoints/paramreturn_types>'
article, the following types may be used as parameters:
- java.lang.String
- java.lang.Boolean and boolean
- java.lang.Integer and int
- java.lang.Long and long
- java.lang.Float and float
- java.lang.Double and double
- java.util.Date
- com.google.api.server.spi.types.DateAndTime
- com.google.api.server.spi.types.SimpleDate
- Any enum
- Any array or java.util.Collection of a parameter type
The article also contains very useful information about return types and
request bodies.
On Monday, January 25, 2016 at 5:23:26 AM UTC-5, Renato Forti wrote:
>
> Hi All,
>
> I have this method in my endpoint class:
>
> @ApiMethod(name = "channel.create", httpMethod = HttpMethod.POST)
> public Channel create(User user, App app, Channel channel,
> @Named("appId") Long appId)
>
> The first param id for authentication, the second and third are Entity.
>
> When I generate client lib I get this error:
>
> Error: Method com.rave79.endpoint.ChannelEndpoint.create cannot have
> multiple resource parameters
>
> Any Idea?
>
> Thanks
>
>
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/52464680-1392-4419-aabe-4a487f2c48c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.