A Post has many Comments
HTTP Verb | Path (endpoint) | controller#action | Purpose |
---|---|---|---|
POST | /posts/:id/comments | comments#create | Create a comment for a post |
PUT | /comments/:id | comments#update | Update a comment |
DELETE | /comments/:id | comments#delete | Delete a comment |