Its ok to use query parameters as long as they are part of the identity 
of the resource.  IMO, don't use them to modify a resource.  Instead 
pass a representation with your POST.

On 2/1/2013 3:34 AM, Denica Gencheva wrote:
> On 01/02/2013, Nuwan Bandara <mail.nu...@gmail.com> wrote:
>> Hi,
>>
>> I have a RESTeasy web service. It accept POST requests. As an example
>> client will call the web service like this
>>
>> http://localhost:8080/n-tweb-comm-war/ws/updateResultIndicator;accessionNumber=1;analyteCode=2;workstation=3;siteCode=4;testIndicator=5;testStatus=66
>>
>> My question;
>>
>>     1. is this a proper way to call POST web service?
>>     2. if not how should I design the URL for a POST request?
>>
>> Thanks,
>> Nuwan
>>
>
> Hi,
> 1. If you mark the web service as @POST and the parametes as
> @FormParam (as it should be in a POST service) - no, this is not
> correct.
> 2. The proper way is to put the parameters in the body. To do that you
> can use for example curl (http://curl.haxx.se/) : curl
> "http://localhost:8080/n-tweb-comm-war/ws/updateResultIndicator"; -d
> "accessionNumber=1&analyteCode=2&workstation=3&siteCode=4&testIndicator=5&testStatus=66"
> or some browser add like
> "https://addons.mozilla.org/en-US/firefox/addon/poster/";.
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_jan
> _______________________________________________
> Resteasy-users mailing list
> Resteasy-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/resteasy-users
>

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Resteasy-users mailing list
Resteasy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/resteasy-users

Reply via email to