Skip to content
loading...

re: When should I use HTTP verbs? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: If your endpoints look like /comments/ it means they represent resources, and you should definitlely make use of the HTTP Verbs, that's precisely w...
 

Well, part of the reason I'm unsure is because other APIs I've seen do things very differently from me. Although I have /api/comments, there's no GET /api/comments/{id} or anything, there's GET /api/comments?id={id} (and GET /api/comments?reply_to={id}). I'm not sure if that's considered an anti-pattern with REST. Basically I only have endpoints for resource types and not for individual resources.

code of conduct - report abuse