Code Monkey home page Code Monkey logo

moody-pos-server's Introduction

Moody POS

This API provides resources for Moody POS app which documentation can be found here.

Live URL

API Documentation

GET /items/

Returns all menu items.

Example response:

[
   {
      "name": "Beef",
      "price": 3,
      "id": "5b73a3ac11894b3ffc04dea3"
    },
    {
       "name": "Chicken",
       "price": 2,
       "id": "5b73a3c711894b3ffc04dea4"
    },
    {
       "name": "Fish",
       "price": 1,
       "id": "5b73a3d111894b3ffc04dea5"
    }
]

GET /tables/

Returns all tables.

Example response:

  [
    {
        "number": 1,
        "id": "5b70c022d69aca3dd05a3c72"
    },
    {
        "number": 2,
        "id": "5b70c032d69aca3dd05a3c73"
    },
    {
        "number": 3,
        "id": "5b70c039d69aca3dd05a3c74"
    }    
]

POST /checks/

Returns a new check.

Example response:

  {
    "closed": false,
    "orderedItems": [],
    "tableId": "5b70c022d69aca3dd05a3c72",
    "createdAt": "2018-08-17T07:39:32.271Z",
    "updatedAt": "2018-08-17T07:39:32.271Z",
    "id": "5b767bb4bf2e4825842bd8bc"
}

POST /checks/:id/addItem

Adds menu item to check

Data parameters:

{
   "itemId": "5b73a3c711894b3ffc04dea4"
}

Example response:

{
    "closed": false,
    "orderedItems": [
        {
            "name": "Chicken",
            "price": 2,
            "id": "5b73a3c711894b3ffc04dea4"
        }
    ],
    "tableId": "5b70c022d69aca3dd05a3c72",
    "createdAt": "2018-08-17T07:39:32.271Z",
    "updatedAt": "2018-08-17T07:40:16.469Z",
    "id": "5b767bb4bf2e4825842bd8bc"
}

Tech Stack

Node.js

Express.js

MongoDB

Mongoose

dotenv

moody-pos-server's People

Contributors

bookcasey avatar cklanac avatar jeffreymahmoudi avatar oampo avatar

Watchers

 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.