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

Updating a comment

  • Request: PATCH /comment/1?comment="Modified%20Awesome%20Comment' HTTP/1.1
  • Response:
{id:1, post_id:1, comment:"Modified Awesome Comment", link: "/comments/1"}
  • Response code: 200 OK

Here, we used PATCH as we want to update a single attribute of a comment that is a comment. Also, you can see %20 passed in a new comment. So, %20 is just a replacement for a space as a URL cannot contain spaces. So with URL encoding, spaces should always be replaced by %20.

主站蜘蛛池模板: 福建省| 杂多县| 庆城县| 博乐市| 县级市| 石景山区| 开原市| 桐城市| 渝北区| 胶州市| 湖州市| 隆昌县| 华坪县| 罗定市| 长岛县| 岳西县| 麦盖提县| 阳朔县| 六盘水市| 昭通市| 云霄县| 崇礼县| 柘城县| 达日县| 宁武县| 富顺县| 鄂尔多斯市| 凌海市| 武冈市| 报价| 河源市| 马鞍山市| 诸城市| 崇文区| 珲春市| 郓城县| 丘北县| 当雄县| 库车县| 尖扎县| 衡水市|