users@jersey.java.net

[Jersey] Re: GET and POST on same URL

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Sat, 10 Mar 2012 10:30:32 +0100

Hello,

yes, you can.

POST is not combination of GET and PUT, it is just another HTTP method
(which indeed can be semantically explained by GET and PUT, but nothing
else). Meaning when you POST something, @POST annotated method will be
invoked, there is no reason why @GET and @PUT should be involved in any way.

Pavel

On 3/10/12 4:30 AM, Josh Smith wrote:
> Can you put a GET and a POST based method on the same URL using Jersey?
>
> I see examples of using GET, PUT, and DELETE on the same method, but
> does the fact that POST is really combination of GET and PUT create a
> problem?
>
>