3 ms·
If you don't really care that much, you could try TOSS. Which would be useful to tell the server, "Hey, you deal with this, it's not my problem anymore." But y
by andrewmcwatters 5y ago
If you don't really care that much, you could try TOSS. Which would be useful to tell the server, "Hey, you deal with this, it's not my problem anymore."
But you seem like a thoughtful person, so maybe use CAREFULLY. To indicate to clients that they should handle data with love and attention to formatting.
:)
GET and POST should cover most of your bases. I like PUT and PATCH, too. I think you should use them when you want to keep your HTTP API nice and neat, because they provide useful intuitive signals to developers. Remember, as others have mentioned here, not all clients have the ability to send those verbs, so provide a way to override POST.
Oh, and sort of unrelated, not sure if you need to read this, but just in case you get to feeling playful, keep in mind that WebDAV verbs are for WebDAV. Not that you've mentioned anything WebDAV related, but I've noticed some developers who ask questions like this end up reading the relevant RFCs and start thinking to themselves, "...well what if I..."
- kivihiinlane 5y agoWhat's TOSS? My searching skills seem to bring up anything but software engineering related topics.
- andrewmcwatters 5y agoI was teasing. :) There’s no TOSS. You could write a TOSS request, but most software wouldn’t acknowledge it.
- seph-reed 5y agoYou could build an entire http framework around it called "TOSSer"