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

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.

主站蜘蛛池模板: 靖远县| 合江县| 永仁县| 丁青县| 顺义区| 巫山县| 阆中市| 扎兰屯市| 博客| 旬阳县| 乌鲁木齐市| 泰和县| 洞头县| 怀来县| 莒南县| 荃湾区| 湘阴县| 丁青县| 理塘县| 肥城市| 栾川县| 中西区| 浑源县| 宣汉县| 霍州市| 上林县| 天水市| 梅河口市| 晋江市| 中山市| 沙坪坝区| 乌鲁木齐县| 明溪县| 阳信县| 鄄城县| 长阳| 呼图壁县| 洛宁县| 乳源| 梨树县| 武宁县|