Unlink device and geofence

Agile Hobo6 years ago

I'm working on a .NET Core client that uses HttpClient to unlink device and geofence. But HttpClient doesn't allow to send data in body with DELETE method.

Does Traccar support X-HTTP-Method-Override? For more information about X-HTTP-Method-Override, you can find here https://www.hanselman.com/blog/HTTPPUTOrDELETENotAllowedUseXHTTPMethodOverrideForYourRESTServiceWithASPNETWebAPI.aspx

Thank you

Anton Tananaev6 years ago

Why would you need to send body with delete?

Agile Hobo6 years ago

The API reference mentions it https://www.traccar.org/api-reference/#operation--permissions-delete. Do I miss anything?

Anton Tananaev6 years ago

You are right. Unlinking does require object. I don't think there's any way around it.

Agile Hobo6 years ago

I'm not sure why you don't support to send the parameters as query strings, at least for DELETE method.