Y
Hacker News
new
|
ask
|
show
|
jobs
by
1718627440
2 days ago
'(to) comment' is already a verb.
1 comments
tgv
2 days ago
GET, COMMENT, PUT, UPDATE, DELETE. Yeah, makes sense. Now we only need an alternative for PUT to backcronym CRUD. RIPOSTE?
link
1718627440
2 days ago
I was referring to that the PATH could just be named /api/comment?... , because comment is already a verb.
link
sh0gg0the
2 days ago
URIs/paths are meant to point at resources/documents and therefore ideally should not contain verbs.
link
1718627440
16 hours ago
Then naming it 'comment' rather than 'add-a-comment' makes even more sense.
link
pixelatedindex
2 days ago
The word comment can be both a verb and a noun though. Are we pedantic enough yet? (:
link
danshipt
2 days ago
This is exactly the kind of pointless discussion around rest apis
link
1718627440
16 hours ago
The naming of endpoints is not specific to REST actually.
link