microsoft / typed-rest-client

Node Rest and Http Clients with typings for use with TypeScript
Other
675 stars 118 forks source link

Sending body with delete request #281

Closed avinashs15 closed 3 years ago

avinashs15 commented 3 years ago

Hi,

I was wondering if there is a way to send body with RestClient Delete request.

As of now there's no option to send body with RestClient.del(resource: string, options?: IRequestOptions | undefined):

kuleshovilya commented 3 years ago

Hello @avinashs15 Could you please describe context in which that would be needed?

avinashs15 commented 3 years ago

Hello,

My development team has designed the API which takes an array of ID's as body for delete request.

Is this something that the team is considering?

kuleshovilya commented 3 years ago

We looked into the issue, and currently, we don't consider implementing that, as this is not relevant for most users. We'll keep this request in the backlog, and if we'll see an increase in demand for it, will implement that. For now, I'll close the ticket, feel free to follow up if you have any questions or ping me at v-ikuleshov@microsoft.com