Skip to content

lucasherman/movie_api_task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#STEPS to install application on a local server

git clone https://github.com/lucasherman/movie_api_task
cd movie_api_task

-- unless virtualenv is already installed run the command below:
pip install virtualenv

-- then run following commands in order:
virtualenv --python=python3.7 mvenv  #use different version of python 3 if needed
source mvenv/bin/activate
pip install -r requirements.txt


-- You may now run the application on localhost by command:

python manage.py runserver

-- and go to localhost:8000 or 127.0.0.1:8000 in your browser

-- or navigate to https://intense-citadel-88807.herokuapp.com/


#API endpoints:

POST https://intense-citadel-88807.herokuapp.com/api/movies/
PARAMETERS e.g.: 'title': 'Avatar'

GET https://intense-citadel-88807.herokuapp.com/api/movies/
PARAMETERS e.g.: 'title': 'Avatar', 'year': 2018, 'director': 'Orson Welles', 'ordering' :'year'

POST https://intense-citadel-88807.herokuapp.com/api/comments/
PARAMETERS e.g.: 'movie_id': 4, 'comment_body': 'Comment to movie Avatar'

GET https://intense-citadel-88807.herokuapp.com/api/comments/
PARAMETERS e.g.: 'movie_id': 4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages