Re: [Resteasy-users] @GET and @POST for one method

2012-01-03 Thread Bill Burke
IIRC, this isn't allowed by the spec. We used to support it. On 12/29/11 8:51 AM, David Fehr wrote: > Hi all, > > maybe this question is stupid, but maybe there is an elegant way: > > Is it possible to annotate one method with @GET and @POST, while > processing the parameters as previous with @Fo

Re: [Resteasy-users] @GET and @POST for one method

2011-12-29 Thread Gregor Rosenauer
I had a similar case (the unusual overlap was dictated by the client interface), but there's nothing wrong with writing 2 separate methods (or a delegate if you really want to do the same, which I don't think) and annotating one with @GET, the other with @POST, both with the same path, like: > @PO