HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by krisknez | Hacker News Reader
Full thread
krisknez
·
GET /api/add-a-comment?message=disagree
View on HN
1718627440
·
'(to) comment' is already a verb.
tgv
·
GET, COMMENT, PUT, UPDATE, DELETE. Yeah, makes sense. Now we only need an alternative for PUT to backcronym CRUD. RIPOSTE?
1718627440
·
I was referring to that the PATH could just be named /api/comment?... , because comment is already a verb.
danshipt
·
This is exactly the kind of pointless discussion around rest apis
1718627440
·
The naming of endpoints is not specific to REST actually.
sh0gg0the
·
URIs/paths are meant to point at resources/documents and therefore ideally should not contain verbs.
pixelatedindex
·
The word comment can be both a verb and a noun though. Are we pedantic enough yet? (:
1718627440
·
Then naming it 'comment' rather than 'add-a-comment' makes even more sense.
Alifatisk
·
You’re using GET to Post a comment. Feels like another method is more appropriate.
Update: It clicked now…
soco
·
GET /it?now
Reply on news.ycombinator.com