Skip to content

Commit

Permalink
Merge pull request Ada-C11#8 from AdaGold/cm/fix-bugs
Browse files Browse the repository at this point in the history
Cm/fix bugs... what bugs?
  • Loading branch information
tildeee authored Jun 20, 2019
2 parents 8abea93 + ed533d0 commit 181dd19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# VideoStoreAPI
This Video Store API implementation is based on the Video Store API project that you have previously completed.

## Set Up Notes

You will need to acquire an API key from [The Movie Database](https://www.themoviedb.org/documentation/api) before you can run this project and this includes seeding the database.

## Functionality
This API comes pre-packaged with most of the functionality that you will require. The following endpoints are impemented, based off of the primary and optional requirements of the project.

Expand Down
3 changes: 0 additions & 3 deletions lib/movie_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@ class MovieWrapper

def self.search(query)
url = BASE_URL + "search/movie?api_key=" + KEY + "&query=" + query
puts url
# puts url
response = HTTParty.get(url)
if response["total_results"] == 0
return []
else
puts response
movies = response["results"].map do |result|
self.construct_movie(result)
end
Expand Down

0 comments on commit 181dd19

Please sign in to comment.