書名: Building RESTful Web Services with PHP 7作者名: Haafiz Waheed ud din Ahmad本章字數: 50字更新時間: 2021-07-03 00:02:20
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.
推薦閱讀
- 演進式架構(原書第2版)
- C#完全自學教程
- Object-Oriented JavaScript(Second Edition)
- Learn Scala Programming
- 軟件工程
- 琢石成器:Windows環境下32位匯編語言程序設計
- Modern C++ Programming Cookbook
- Python青少年趣味編程
- ROS機器人編程實戰
- 百萬在線:大型游戲服務端開發
- Microsoft Exchange Server 2016 PowerShell Cookbook(Fourth Edition)
- C#網絡編程高級篇之網頁游戲輔助程序設計
- Mastering Clojure
- Java網絡編程實用精解
- JavaScript程序設計實例教程(第2版)