September 2017
Intermediate to advanced
244 pages
6h 44m
English
Content: This is an awesome post Title: Awesome Post
{id:1, title:"Awesome Post", content:"This is an awesome post", link: "/posts/1" }
Here POST is the method, /posts is the URL (path after the server name) and HTTP 1.1 is the protocol. We will keep using the same way of mentioning requests in later examples as well. So, the first part of the request is the HTTP method, the second one is the URL and the third part is the protocol.
The response code tells the client that the resource has been created successfully. If a request parameter is missed by mistake, the response code should be 400, which represents a bad request.
Read now
Unlock full access