書名: 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.
推薦閱讀
- Design Principles for Process:driven Architectures Using Oracle BPM and SOA Suite 12c
- 國際大學生程序設計競賽中山大學內部選拔真題解(二)
- Delphi程序設計基礎:教程、實驗、習題
- Linux核心技術從小白到大牛
- Cassandra Data Modeling and Analysis
- Troubleshooting PostgreSQL
- 手把手教你學C語言
- Mastering Python Networking
- jQuery開發基礎教程
- Building RESTful Python Web Services
- 編程與類型系統
- .NET 4.5 Parallel Extensions Cookbook
- 大學計算機基礎
- Practical Maya Programming with Python
- INSTANT Apache Hive Essentials How-to