I have a restful webservice for which iam writing a new method call. The purpose of the new method call is to revoke the status of a person to "NO".
All that I have to send in the request is a Person_Id for which the status needs to be changed to "NO".
Should I be using PUT or POST to do this?
If I use put, can I just send the person_id as a path parameter and not use any xml at all.
(like : http://serverName/PersonServices/Person/123456) and in the service layer, i have my code like this.
    @PUT
    @Path("/Person/{person_Id}")
    @Consumes("application/xml")
    @Produces("application/xml")
    public JAXBElement<GetUsageTokenType> updateLicenseStatus(
            @PathParam("person_Id") final Long personId) {
            //code to change the status
     }
Or should I be using POST to do this... Am I right in saying that if I use POST, I need to send xml format?
 
     
     
     
    