Hacker News new | ask | show | jobs
by tgv 2 days ago
GET, COMMENT, PUT, UPDATE, DELETE. Yeah, makes sense. Now we only need an alternative for PUT to backcronym CRUD. RIPOSTE?
1 comments

I was referring to that the PATH could just be named /api/comment?... , because comment is already a verb.
URIs/paths are meant to point at resources/documents and therefore ideally should not contain verbs.
Then naming it 'comment' rather than 'add-a-comment' makes even more sense.
The word comment can be both a verb and a noun though. Are we pedantic enough yet? (:
This is exactly the kind of pointless discussion around rest apis
The naming of endpoints is not specific to REST actually.