Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
1718627440
· 4mo ago · 0 comments
I was referring to that the PATH could just be named /api/comment?... , because comment is already a verb.
Comments
[–]
sh0gg0the
4mo ago
URIs/paths are meant to point at resources/documents and therefore ideally should not contain verbs.
[–]
pixelatedindex
4mo ago
The word comment can be both a verb and a noun though. Are we pedantic enough yet? (:
[–]
1718627440
OP
4mo ago
Then naming it 'comment' rather than 'add-a-comment' makes even more sense.
[–]
danshipt
4mo ago
This is exactly the kind of pointless discussion around rest apis
[–]
1718627440
OP
4mo ago
The naming of endpoints is not specific to REST actually.