Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/gkiko/MovieTable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jilberta committed Jul 8, 2015
2 parents c755a8e + 27a1414 commit b194d77
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
[![Coverage Status](https://coveralls.io/repos/gkiko/MovieTable/badge.svg?branch=master)](https://coveralls.io/r/gkiko/MovieTable?branch=master)

Provide web service to acquire movie http stream by imdb id

apiary: http://docs.movietable1.apiary.io/#
46 changes: 46 additions & 0 deletions apiary.apib
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
FORMAT: 1A
HOST: http://movie-table.herokuapp.com/webapi/

# movie-table

MovieTable allows users to get video http source stored in table storage. If no record is found, empty json array is returned

# MovieTable API Root [/]

This resource takes in and produces JSON data. If not data matches the parameters, http error code is returned.


## Retrieve data [/parse/{movie_id}]

A Movie object has the following attributes:

+ movie_id - movie id from imdb.com
+ movie_name - movie name from imdb.com

### Send search request [POST]

+ Parameter
+ movie_id (required, string, `tt0816692`) ... ID of the Movie

+ Request (application/json)

{
"name": "Interstellar"
}

+ Response 200 (application/json)

[
{
"id": "219db559-1ad1-4806-968f-4a78d1348de3",
"imdbId": "tt0186151",
"language": "RUS",
"name": "Frequency",
"quality": "MEDIUM",
"source": "http://127.0.0.1/movies/ahsdbahsd"
}
]

+ Response 404 (text/plain)

could not find requested video source

0 comments on commit b194d77

Please sign in to comment.