December 2018
Intermediate to advanced
500 pages
12h 19m
English
We will use the hotels API example described earlier and build a fully working version. To reiterate, the specific APIs would be as follows:
|
URI |
Verb |
Meaning |
|
/hotels |
GET |
Get a list of all hotels on the website. At a minimum, this would typically be a JSON array with a tuple for each hotel, including the URI of the hotel, a unique ID, and probably the display name. |
|
/hotels |
POST |
Creates a new hotel. Will take all the attributes needed to create a new hotel. |
|
/hotels/<id> |
GET |
Get information (all attributes) about a specific hotel, whose identifier is <id>. |
|
/hotels/<id> |
DELETE |
Delete the hotel with the specified ID. |
|
/hotels<id> |
PUT |
Updates the attributes of a hotel. Takes the ... |
Read now
Unlock full access