Giter Site home page Giter Site logo

movie_api's Introduction

movie_api

A flask api that handles json files from a third party cinema api

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You will need to have Python with Virtualenv and Git installed on your machine.
This guide also assumes you are in a Windows environment.

Installing

First clone the application code into any directory on your disk:

> cd /path/to/my/workspace/
> git clone https://github.com/sepira/movie_api.git
> cd movie_api

Create a virtual Python environment in a directory named venv, activate the virtualenv and install required dependencies using pip:

> virtualenv venv
> venv\Scripts\activate
(venv) > pip install -r requirements.txt

Now let’s set up the app for development and start it:

> python app.py

In your browser, open the URL http://localhost:8888/api/

Running the tests

Tasks 1 - 4

For the fetch/ and movies/ commands just click on 'Try it out' and click 'Execute'

Task 5

Similar to /movies/<uuid>/schedule/ - do the same but uuid parameter is required
To use the show_date option, just copy the url of /movies/<uuid>/schedule/ paste in url browser and add ?show_date=<date> in the end.

movie_api's People

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.