shREST

shrek face

A Shrek REST API

RANDOM MOVIE QUOTE!

Endpoints

See below for detailed routes for each movie and movie_ids.
Endpoint Description Response (may change in the future)
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.

Extended Route Information for Each Shrek

Movie ID Endpoints

Shrek

0

Shrek 2

1

Shrek the Third

2

Shrek Forever After

3

Shrek 5

4