Skip to content

Instantly share code, notes, and snippets.

@shekhar-kamble
Last active December 24, 2018 19:24
Show Gist options
  • Save shekhar-kamble/9bbd2a94cc7be223092d6f4b4098cdd5 to your computer and use it in GitHub Desktop.
Save shekhar-kamble/9bbd2a94cc7be223092d6f4b4098cdd5 to your computer and use it in GitHub Desktop.

movie-app API

The movie-app API is a RESTful web service to obtain movie information.

Login into app

Using form submission

curl --request POST \
  --url http://test-app-movie.herokuapp.com/account/login \
  --header 'content-type: application/x-www-form-urlencoded' \
  --data 'email=user@example.com&password=password'

Parameters to Fetch Movies

By ID or Title

http://test-app-movie.herokuapp.com/movie?id=
Parameter Required Valid Options Default Value Description
id Yes A valid ID (e.g. 1)
v No 1 API version (reserved for future use).

By Search

http://test-app-movie.herokuapp.com/search?
Parameter Required Valid options Default Value Description
title Yes Movie title to search for.
sort_by No popularity,imdb_score imdb_score Sort the result accordingly
page No 1-100 1 Page number to return.(10 results per page)
v No 1 API version (reserved for future use).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment