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