mgroves / realworld-aspnet-couchbase

Conduit implementation: ASP.NET Core + Couchbase
https://realworld.io
MIT License
12 stars 4 forks source link

Endpoint: Add Comments to an Article #19

Open mgroves opened 1 year ago

mgroves commented 1 year ago

POST /api/articles/:slug/comments

Example request body:

{
  "comment": {
    "body": "His name was my name too."
  }
}

Authentication required, returns the created Comment

Required field: body

mgroves commented 1 year ago

The spec says "add comments", but I think it's actually "add comment"?