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