3 ms·
It may be surprising, but I've run into HTTP clients that could only do GET and POST. So if I had needed to use an API with PATCH I would have been SOL in that
by throwawayboise 5y ago
It may be surprising, but I've run into HTTP clients that could only do GET and POST. So if I had needed to use an API with PATCH I would have been SOL in that situation.
- toast0 5y agoYep. If you want to be able to use your api almost everywhere, just use POST. If it really needs to be everywhere, you'll probably need to accept GET as well. You also need to do your own work to make things idempotent if it matters. Your client won't know if the server saw and processed the request if the client didn't get the response, so it's likely to retry.