Skip to content

clementgalidie/api-cinema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cinema API

Description

The main purpose of this API is to manage a list of users and movies. Basically, several actions can be done. You can use Advanced Rest Client Google Chrome extension to test the API.

User

He can:

  • create, update and delete user;
  • list all the movies he has liked;
  • list all the movies he has disliked;
  • list all the movies he has watched;
  • list all the movies he would like to watch;
  • list all the other users;
  • consult the profile of another user.

Movies

  • Create, list, update and delete movies.
  • A user can add and delete a movie he has liked.
  • A user can add and delete a movie he has disliked.
  • A user can add and delete a movie he has watched.
  • A user can add and delete a movie he would like to watch.

Users

Resources POST (create) GET (read) PUT (update) DELETE (delete)
/v1/users Create a user List all the users
/v1/users/:number (where :number is an integer) Get a user with a specific ID Update a user with a specific ID Delete a user with a specific ID
/v1/users/:number/likes Show all the movies a user has liked
/v1/users/:number/dislikes Show all the movies a user has disliked
/v1/users/:number/watched Show all the movies a user has watched
/v1/users/:number/watchlist Show all the movies a user would like to watch

Movies

Resources POST (create) GET (read) PUT (update) DELETE (delete)
/v1/movies Create a movie List all the movie
/v1/movies/:number (where :number is an integer) Get a movie with a specific ID Update a movie with a specific ID Delete a movie with a specific ID

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages