I would do something like

http://localhost/<your-context>/results/

Post your data as URL form encoded data. Any client should do this for you
with a setParameter("accessionNumber", 1) style call. Your resources should
take those params as @FormParam("accessionNumber") Long accessionNumber

If the call is meant to update values instead generating a new record then
change @POST to @PUT

Sent from my iPhone

On Jan 31, 2013, at 3:09 PM, 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

------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
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