6 ms·
GET /api/add-a-comment?message=disagree
by krisknez 2mo ago
GET /api/add-a-comment?message=disagree
- 1718627440 2mo ago'(to) comment' is already a verb.
- tgv 2mo agoGET, COMMENT, PUT, UPDATE, DELETE. Yeah, makes sense. Now we only need an alternative for PUT to backcronym CRUD. RIPOSTE?
- 1718627440 2mo agoI was referring to that the PATH could just be named /api/comment?... , because comment is already a verb.
- danshipt 2mo agoThis is exactly the kind of pointless discussion around rest apis
- 1718627440 2mo agoThe naming of endpoints is not specific to REST actually.
- sh0gg0the 2mo agoURIs/paths are meant to point at resources/documents and therefore ideally should not contain verbs.
- pixelatedindex 2mo agoThe word comment can be both a verb and a noun though. Are we pedantic enough yet? (:
- 1718627440 2mo agoThen naming it 'comment' rather than 'add-a-comment' makes even more sense.
- Alifatisk 2mo agoYou’re using GET to Post a comment. Feels like another method is more appropriate. Update: It clicked now…
- soco 2mo agoGET /it?now
- deleted 2mo ago[deleted]