- 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
推薦閱讀
- Reporting with Visual Studio and Crystal Reports
- Learning Spring 5.0
- Visual Basic程序設(shè)計教程
- 信息安全技術(shù)
- Expert Android Programming
- 批調(diào)度與網(wǎng)絡(luò)問題的組合算法
- Unity 2018 Shaders and Effects Cookbook
- Flask Web開發(fā):基于Python的Web應(yīng)用開發(fā)實(shí)戰(zhàn)(第2版)
- Mastering Apache Camel
- Java EE架構(gòu)設(shè)計與開發(fā)實(shí)踐
- 你真的會寫代碼嗎
- ROS機(jī)器人編程實(shí)戰(zhàn)
- Zend Framework 2 Cookbook
- Unreal Engine Game Development Cookbook
- jQuery Essentials