Y
Hacker News
new
|
ask
|
show
|
jobs
by
krisknez
1 day ago
GET /api/add-a-comment?message=disagree
2 comments
1718627440
1 day ago
'(to) comment' is already a verb.
link
tgv
1 day ago
GET, COMMENT, PUT, UPDATE, DELETE. Yeah, makes sense. Now we only need an alternative for PUT to backcronym CRUD. RIPOSTE?
link
1718627440
1 day ago
I was referring to that the PATH could just be named /api/comment?... , because comment is already a verb.
link
sh0gg0the
1 day ago
URIs/paths are meant to point at resources/documents and therefore ideally should not contain verbs.
link
pixelatedindex
1 day ago
The word comment can be both a verb and a noun though. Are we pedantic enough yet? (:
link
danshipt
1 day ago
This is exactly the kind of pointless discussion around rest apis
link
Alifatisk
1 day ago
You’re using GET to Post a comment. Feels like another method is more appropriate.
Update: It clicked now…
link
soco
1 day ago
GET /it?now
link