2 ms·
Seems like you could just use Delete with query params on the collection path. Is that not RESTful?
by jayd16 7y ago
Seems like you could just use Delete with query params on the collection path. Is that not RESTful?
- JMTQp8lwXL 7y agoIt doesn't really scale. There's a de-facto limit of 2,000 characters [0] in a URL. HTTP/1.1 is not opinionated about URL length, but practical implementations are. If your ids are UUIDs, each has a length of 36. If your URL consisted of nothing but UUIDs, you could safely delete 55.5(repeating) of them. [0]: https://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers https://stackoverflow.com/questions/417142/what-is-the-maxim...
- jimbobenfrance 7y agoI usually implement this as Http delete with a json array of ids in the body. Probably in violation of some standard, but seems sensible enough.