3 ms·
Yep. 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.
by toast0 5y ago
Yep. 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.