Giter Site home page Giter Site logo

coffee-warehouse's Introduction

Coffee Warehouse API

You've been tasked to build a RESTful API that will help serve and manage data of coffee at a warehouse. Another team will be depending this API in building a front-end application to interact with it.

Draft a routes overview table or list of how you plan on designing your API and submit it to the senior developer for confirmation.

An example can be found on buzzword-bingo: https://github.com/devleague/Buzz-Word-Bingo/blob/master/README.md

We'll be depending on you to build a well-designed RESTful API for our front-end team to work with. Good route naming conventions will be key in providing a simple yet effective API for others to work with.

Tables

Build the following (and other) tables and their respective relationships

Coffee

  • Coffee has a location

Orders

  • An order has a coffee
  • An order has a customer

Customers

  • A customer has an order

API

The API should be able to at least do the following... Add more purposeful routes if you feel expands the overall design of the API.

Coffee

List all the coffee

Get a coffee by its ID

Get a coffee by its name

List all coffees from the same location

List all coffee with caffiene level below a number

List all coffee with caffiene level above a number

Allow authorized users to post new coffees to the warehouse

Allow authorized users to alter coffee information

Allow authorized users to remove coffees

Orders

Orders should be able to include customer name that the order is attached to

List all orders

List an order based by its ID

List all orders that ordered the same coffee

Make a new order

Alter an order

Tag an order pending, shipped, or voided

View all orders that have been tagged pending, shipped, or voided

Bonus

Allow queries in your routes! Something like /coffee/search?name="Kona-Kine-Koffee"

coffee-warehouse's People

Watchers

James Cloos 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.