- Building Microservices with Go
- Nic Jackson
- 86字
- 2021-07-15 17:28:08
POST
The POST method is used to create a new resource in a collection or to execute a controller. It is typically a non-idempotent action, in that multiple posts to create an element in a collection that will create multiple elements not updated after the first call.
The POST method is always used when calling controllers as the actions of this is considered non-idempotent.
Request:
POST /v1/cats HTTP/1.1
Content-Type: application/json
Content-Length: xxxx
{"name": "Felix", "weight": 5}
Response:
HTTP/1.1 201 Created
Content-Type: application/json
Content-Length: 0
Location: /v1/cats/12343
推薦閱讀
- Getting Started with Citrix XenApp? 7.6
- C語言程序設計實踐教程(第2版)
- Python程序設計(第3版)
- Python Game Programming By Example
- SSM輕量級框架應用實戰
- Learning Apache Mahout Classification
- Python編程實戰
- 深入理解Elasticsearch(原書第3版)
- Image Processing with ImageJ
- Java程序設計與項目案例教程
- 軟件工程基礎與實訓教程
- Vue.js光速入門及企業項目開發實戰
- 寫給大家看的Midjourney設計書
- Python大規模機器學習
- UI動效設計從入門到精通