官术网_书友最值得收藏!

Creating the post's comment

  • Request: POST /posts/1/comments HTTP/1.1
  • Body parameters: comment: An Awesome Post
  • Response:
{id:1, post_id:1, comment:"An Awesome Post", link: "/comments/1"}
  • Response code: 201 Created

Here in the case of a comment, a comment is created against a certain blog post. So, the request URL includes post_id as well.

主站蜘蛛池模板: 益阳市| 鄯善县| 玉田县| 正安县| 鲁甸县| 梁平县| 桦甸市| 马鞍山市| 沛县| 滁州市| 苍南县| 庐江县| 柘荣县| 平遥县| 绥宁县| 兴宁市| 凤阳县| 剑河县| 呼图壁县| 株洲市| 新源县| 通山县| 抚州市| 榆中县| 高雄县| 连云港市| 永丰县| 广东省| 潜山县| 边坝县| 顺义区| 大关县| 莲花县| 饶阳县| 忻城县| 台东县| 抚远县| 东海县| 靖宇县| 池州市| 北辰区|