January 2018
Intermediate to advanced
414 pages
10h 29m
English
If we are using an API to provide a collection of resources, for example, a list of customers giving the URL/customers, we can use:
|
URL |
VERB |
STATUS |
MEANING |
|
/customers/ |
GET |
200 OK |
We asked for a list of customers and got back the result |
|
/customers/ |
GET |
204 NO CONTENT |
We asked for a list of customers, and there was none |
|
/customers/?name=son |
GET |
200 OK |
We asked for a list of customers filtering the results |
|
/customers/?name=son |
GET |
204 NO CONTENT |
The filtering of customers returned no results |
|
/customers/?name=# |
GET |
400 BAD REQUEST |
The filtering for customers was incorrect |
Read now
Unlock full access