官术网_书友最值得收藏!

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
主站蜘蛛池模板: 绍兴县| 新竹县| 饶河县| 商南县| 绥德县| 工布江达县| 武汉市| 福鼎市| 迁西县| 福泉市| 南召县| 广灵县| 淮南市| 永宁县| 灯塔市| 连南| 桃江县| 读书| 栖霞市| 平定县| 青神县| 岑巩县| 蒙城县| 巴马| 长沙县| 盖州市| 蒙城县| 油尖旺区| 确山县| 奉贤区| 黑山县| 杭锦旗| 醴陵市| 德兴市| 凉城县| 民县| 霸州市| 白水县| 陆丰市| 依安县| 楚雄市|