Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
krisknez
· 4mo ago · 0 comments
GET /api/add-a-comment?message=disagree
Comments
[–]
1718627440
4mo ago
'(to) comment' is already a verb.
[–]
tgv
4mo ago
GET, COMMENT, PUT, UPDATE, DELETE. Yeah, makes sense. Now we only need an alternative for PUT to backcronym CRUD. RIPOSTE?
[–]
1718627440
4mo ago
I was referring to that the PATH could just be named /api/comment?... , because comment is already a verb.
[–]
sh0gg0the
4mo ago
URIs/paths are meant to point at resources/documents and therefore ideally should not contain verbs.
[–]
danshipt
4mo ago
This is exactly the kind of pointless discussion around rest apis
[–]
Alifatisk
4mo ago
You’re using GET to Post a comment. Feels like another method is more appropriate.
Update: It clicked now…
[–]
soco
4mo ago
GET /it?now