rest - http DELETE with parameters using Jersey -


i have code contains several different delete methods, 1 of takes parameter, or @ least ideally take parameter. when make request, either through curl or through web client, doesn't work. other delete requests function fine , i've hard-coded in parameter want pass see if call works , does. i've tried both pathparam , queryparam , neither works. here's how i'm using pathparams, i'm pretty sure correct, queryparams looks similar don't want post too.

@delete @path("/byid/{id}") public void deletebyid(@pathparam("id") string id) 

and same thing quereyparams path different

from understand lot of restful apis ignore kind of request body delete request, or treat put or post. there way around this? have database contains several objects , need delete 1 based on unique identifier, passed in client. if there no way around there other way it?

its possible im missing obvious here i've been using jersey few weeks , point had never heard of concept of restful services.

you can send information restful service either headers, path param, query param or message body.

if values go through expected there no problem jax-rs/jersey. need debug code , fix implementation. jax-rs match delete call delete http method have implemented.

it responsibility perform delete operation of resource within method. jax-rs or jersey not going complain if not delete or if other action within method.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -