I would like to design a rest API with delete method which contains optional parameters.I think it is not a recommended way to have body for delete method.Either i need to pass the parameters as a path param/query param.Can i have optional fields in path param/query param?
My resource is as below
DELETE policy/{policy-number}/{entity-type}/endorse-number
Entity type is optional.
Any help appraciated.