GET /movies
|
List Movies
|
[
{
"name": "Shrek",
"id": 0, //number: this is the :id to use in the routes
"attributes": {
"quotes_length": 98, // number
top_cast_length: 20, // number
year: 2001 // number
}
},
{
// ...
},
]
|
GET /quotes/random
|
Random Quote from Any Movie |
"Shrek: Donkey, two things okay? Shut... up!" // string
|
GET /:movie_id
|
Get All Items for Movie
|
{
"id": 0,
"name": "Shrek",
"year": 2001,
"top_cast": [
//see top cast response
],
"quotes": ["quote 1", "quote 2", ...] // array of strings
}
|
GET /:movie_id/cast/top
|
Get Top Cast for Movie
|
[
{
"name": "Mike Myers",
"characters": [
"Shrek",
"Blind Mouse",
"Opening Narration"
]
},
{
// ...
}
]
|
GET /:movie_id/quotes
|
Get All Quotes for Movie
|
["quote 1", "quote 2", ...] // array of strings
|
GET /:movie_id/quotes/random
|
Get a Random Quote from A Movie as JSON
|
The Donkey: All right, I hope you heard that? She called me a "noble steed." She thinks I'm a steed. // string
|
GET /:movie_id/quotes/random/text
|
Get a Random Quote from the movie as Text
|
Shrek: That'll do, Donkey. That'll do.
|