Giter Club home page Giter Club logo

apiwrapper's Introduction

Order completion times

We would like you to design a simple API using Python.

The goal is to create an endpoint that does the following:

  • Accepts a set of current customer orders
  • Determines the following:
    • When each order will be ready
    • How long it took to prepare each order

Please complete your work as a branch from main, making as many commits as you like, and submit a pull request when you are finished.

Requirements

  • The API should be built and run in a Docker container
  • Please include instructions (an INSTRUCTIONS.md file is fine) for building and running the application
  • Use the provided request_example.json payload to test your code
  • Your output should match the format of response_example.json (but should contain all orders from the request)

Data

The request_example.json has the following structure:

  • Order data: order ID, order placed timestamp
  • Employee data: employee ID, shift start time, shift end time
  • Store data: store ID, oven time in seconds

Assumptions

  • The life cycle of an order after it is placed is:
    1. Order being made (assume 2 minutes for every order)
    2. Order in the oven
    3. Order ready
  • All orders are submitted to the queue at the same time
  • The oven time varies by store but is constant for every order
  • Each employee can only make one order at a time

apiwrapper's People

Contributors

fcardonedpz avatar kraigrs avatar

Watchers

 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.