Assignment¶
Hand In¶
- Email: web@dongyue.io
- GitHub / GitLab Tq:
- Crete a new repository and make it public
- Open an issue here and tell us your repository link
- QQ, Wechat is also OK!
Due?¶
- Deadline: May 16th
- Answers available next week
Assignment I¶
- Learn to use Chrom DevTool & Fiddler to observe HTTP connections.
- Select a PHP microframework (Slim/Flight/...) and implement a simple REST service of a to-do list.
GET /api/v1/tasks // Get all tasks
GET /api/v1/tasks/:id // Get a task by id
POST /api/v1/tasks // Create a new task
PUT /api/v1/tasks/:id // Update a given task
DELETE /api/v1/tasks/:id // Delete a task
- (Optional) Write a crawler for Tongqu Act API. Here is the doc of this API.
Reading Materials¶
Tutorials¶
- HTTP: The Protocol Every Web Developer Must Know
- 深入理解 HTTP 协议
- HTTP 教程
- RESTful API 设计指南
- 理解 RESTful 架构
- REST API Tutorial