Giter Club home page Giter Club logo

python-code-test-2020's Introduction

The goal of this exercise is to test if you know your way around developing REST APIs in Python using docker. You can use any rest framework and database of your choice. Approach it the way you would an actual long-term project.

To start with, a Dockerfile (with Python3.7 Alpine image) has been provided for you. A docker-compose file with stubs for a sample SQL and a NoSQL database has also been provided. Feel free to change it as per your choice of database.

Tasks

Your task is to build a JSON-based REST API for your frontend developers to consume. You have built a list of user stories with your colleagues, but you get to decide how to design the API.

We do not need you to implement users or authentication, to reduce the amount of time this exercise will take to complete. Ideally, you should not spend more than about 4 hours total working time on the exercise, but can be completed over as long a period as is required.

Required:

  • Ability to import all episodes of all seasons of Game of Thrones from OMDb API. (You will have to get an APIKey from http://www.omdbapi.com/apikey.aspx to use their API) The APIs that should probably be used are in the following format: http://www.omdbapi.com/?t=Game of Thrones&Season=1&apikey= http://www.omdbapi.com/?i=&apikey= (for an episode)
  • Design the data model to store this data. You need not store all the attributes of an episode. Select the ones you think are important.
  • Create GET API endpoints that can return episode information in a list format, as well as information for a specific episode, when retrieved by id

Nice to have:

  • Design a data model to store basic text comments to be associated with a specific episode, along with a GET API to retrieve all of the comments for an episode
  • Design and implement a separate CRUD API for these text comments.
  • Ability to filter episodes where imdbRating is greater than 8.8 for a season or for all seasons.
  • Write some unit tests

python-code-test-2020's People

Contributors

aninditapalit avatar dannybutler1990 avatar tayler-kemsley avatar

Stargazers

 avatar

Watchers

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