Giter VIP home page Giter VIP logo

movie-suggestions's Introduction

MovieSuggestions

1. Collections / Model

  • Lists

    • moviesId
    • name
    • score
    • posterUri
    • vote
    • _id
    • createdAt
    • updatedAt
  • Movies !!! Object example : https://api.themoviedb.org/3/movie/337167?api_key=7345489e9522a18a9b84bbc90f4d7758&language=en

    • adult
    • backdrop_path
    • belongs_to_collection
      • id
      • name
      • poster_path
      • backdrop_path
    • budget
    • genres
      • id
      • name
    • homepage
    • id
    • imdb_id
    • original_language
    • original_title
    • overview
    • popularity
    • poster_path
    • production_companies
      • id
      • logo_path
      • name
      • origin_country
    • production_countries
      • iso_3166_1
      • name
    • release_date
    • revenue
    • runtime
    • spoken_languages
    • status
    • tagline
    • title
    • video
    • vote_average
    • vote_count

2. Route / RESTful


  • POST -> /api/lists = creat a list

    • Example 1: req.body = {"moviesId": [1,2,3,4,5,6], "name": "List của Dũng"}
    • Example 2: req.body = {"moviesId": [1,2,3], "name": "List của Dũng"}
    • Lưu ý: request phải ở dạng JSON
  • GET -> /api/lists/count = get number of lists in database

  • GET -> /api/lists?page = get infomation of 10 lists (after skip [10 * (page-1)] lists)

  • GET -> /api/lists/top10 = get infomation 10 lists with priority is score

  • GET -> /api/lists/:id = get infomation of 1 list

  • PUT -> /api/lists/:id/ = increase score of req.params.id by req.body.score

3. Cooked Data

  • /api/lists !!! Object example is in ObjectExample1

    • moviesId
    • name
    • score
    • vote
    • posterUri
    • _id
  • /api/movies !!! Object example is in ObjectExample2

    • genres
      • id
      • name
    • homepage
    • id
    • overview
    • posterUri
    • release_date
    • title
    • vote_average
    • actor
      • character
      • name
      • profileUri

4. API Link

movie-suggestions's People

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.