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

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.

主站蜘蛛池模板: 大关县| 监利县| 盐山县| 安化县| 绥棱县| 涞源县| 连城县| 合阳县| 保山市| 呼图壁县| 峡江县| 天水市| 巴彦淖尔市| 香港 | 北碚区| 仁寿县| 临海市| 赣榆县| 平陆县| 岳普湖县| 竹北市| 璧山县| 调兵山市| 西丰县| 新化县| 广东省| 怀来县| 颍上县| 栾川县| 鲁山县| 沈阳市| 缙云县| 平山县| 张家港市| 健康| 尼木县| 汝州市| 英超| 咸宁市| 东山县| 陆川县|