Posts /

POST vs PUT

12 Apr 2017

필요개념

Idempotent : 멱등의

POST

POST /dogs HTTP/1.1 
{ "name": "blue", "age": 5 } 
HTTP/1.1 201 Created

PUT

PUT /dogs/3 HTTP/1.1
{ "name": "blue", "age": 5 }

PATCH

Response Code

Safe Methods

Cacheable Methods

Trace, Connect


Twitter Facebook Google+