Giter Club home page Giter Club logo

noreservations-flask-api's Introduction

NoReservations-Flask-API

Intro

This is an API serving the NoReservations app which can be found on my project partner Ethan Kaplan's Github here. The API was written RESTfully using Python and Flask.

Endpoints

  • api/v1/restaurants

    • A GET resuest to this endpoint will return a list of restaurants as a JSON object resembling:

    • [{ "id": "1",

      "name": "Bestia",

      "cuisine": "Italian",

      "url": "http://www.bestia.com",

      "image_url": "http://www.images.com/bestia.jpg",

      "address": "1 main st\nLos Angeles, CA 90012",

      "phone": "(111)111-1111"

      }, ...]

  • api/v1/restaurants/<restaurant_id>

    • A GET request to this endpoint will return a single restaurant as a JSON object in the same format as above
  • api/v1/reservations

    • A GET request to this endpoint takes the following arguments as query strings:
      • api/v1/reservations?user_id={id}
        • This will return a list of all reservations being sold or bought by a particular user
      • api/v1/reservations?restaurant_id={id}
        • This will return a list of all reservations made at a particular restaurant
      • api/v1/reservations?restaurant_id={id}&date={YYYY-MM-DD}
        • This will return a list of all reservations made at a particular restaurant at a particular date

noreservations-flask-api's People

Contributors

reactionaryzebra avatar

Watchers

 avatar

Forkers

ethankaplan

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.