Giter Site home page Giter Site logo

movie-inventory's Introduction

movie-inventory

A repository containing first python + flask (practice) project.

Problem definition

MMasters (a hypothetical company) is a movie inventory company and they wish to introduce new features in their system.

Hello,

We are an "API first" company providing a lot of APIs around movie snapshots. We would like to introduce few features in the system -

We wish to pull movies from OMDB (http://www.omdbapi.com/) and store in our system as movie snapshots.

We would also like to allow anyone to retrieve these movie snapshots.

As mentioned, we are an "API first" company and we now expect to build two APIs -

  • one that gets all movie snapshots from our system
    • is an OPEN API
  • one that creates movie snapshots in our system by fetching the information from omdb
    • is a protected API
    • every request should contain a header "x-api-key" with "d2ViLWFwcGxpY2F0aW9uLWluLWZsYXNr" as the value
    • allow our people to pass mutiple movie titles to be fetched from OMDB

We expect proper REST status in the system -

  • 500 for INTERNAL_SERVER_ERROR
  • 200 for OK
  • 201 for CREATED
  • 401 for UNAUTHORIZED ...and so on

Movie snapshot includes -

  • title
  • release year
  • release date
  • director
  • and ratings which is a collection

Summarizing

As a part of the system

  • build APIs
  • ensure security
  • fetch from OMDB
  • store in the system
  • get all movie snapshots from the system
  • include retries while communicating with OMDB
  • and needless to say, ensure that the system is properly tested

Pairing by

Run tests

  • pipenv shell
  • python3 run_tests.py all

movie-inventory's People

Contributors

sarthakmakhija avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  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.