January 2018
Intermediate to advanced
414 pages
10h 29m
English
Considering that we are using an API that provides a resource through a URL, for example /customer, we can use:
|
URL |
VERB |
STATUS |
MEANING |
|
/customer/1 |
GET |
200 OK |
We asked for a specific customer, and got back the result |
|
/customer/1 |
GET |
404 NOT FOUND |
We asked for a specific customer, but they could not be found |
|
/customer |
POST |
201 CREATED |
We asked to create a new customer, and it was created |
|
/customer |
POST |
400 BAD REQUEST |
We asked to create a new customer, but the data was not correct |
|
/customer/1 |
PUT |
202 ACCEPTED |
We asked to update a customer, and it was updated correctly |
|
/customer/1 |
PUT |
404 NOT FOUND |
We asked to update a customer, but the customer was not found ... |
Read now
Unlock full access