RESTful API是什麼?
目的
URL
Request Method
GET
GET
GET
GET
目的
URL
Request Method
GET
POST
PUT
DELETE
RESTful API的URI命名規則
http://127.0.0.1:8000/products
[GET] /products 回傳所有產品
[GET] /products/1 回傳單筆產品
[POST] /products 新增產品
[PUT] /products/4 修改單筆產品
[DELETE] /products/5 刪除單筆產品RESTful API安全性
Last updated