Code Monkey home page Code Monkey logo

final-project-gigih's Introduction

Logo

Family Catering - Final Project Backend

Web API berdasarkan 7 user story problem statement. Web API ini dibangun menggunakan framework Ruby on Rails dan database SQLite3. API tersebut diantaranya

Customers

  GET /customers
  GET /customers/${id}
Parameter Type Description
id integer Optional
  POST /customers
Parameter Type Description
name string Required
email string Required
phone string Required
  PUT /customers/${id}
Parameter Type Description
id integer Required
name string Optional
email string Optional
phone string Optional
  DELETE /customers/${id}
Parameter Type Description
id integer Required

Categories

  GET /categories
  GET /categories/${id}
Parameter Type Description
id integer Optional
  POST /categories
Parameter Type Description
name string Required
  PUT /categories/${id}
Parameter Type Description
id integer Required
name string Optional
  DELETE /categories/${id}
Parameter Type Description
id integer Required

Menu Item Categories

  GET /item_categories
  GET /item_categories/${id}
Parameter Type Description
id integer Optional
  POST /item_categories
Parameter Type Description
category_id integer Required
item_id integer Required
  PUT /item_categories/${id}
Parameter Type Description
id integer Required
category_id integer Optional
item_id integer Optional
  DELETE /item_categories/${id}
Parameter Type Description
id integer Required

Menu Items

  GET /menu_items
  GET /menu_items/${id}
Parameter Type Description
id integer Optional
  POST /menu_items
Parameter Type Description
name string Required
price float Required
description string Optional
  PUT /menu_items/${id}
Parameter Type Description
id integer Required
name string Optional
price float Optional
description string Optional
  DELETE /menu_items/${id}
Parameter Type Description
id integer Required

Orders

  GET /orders
  GET /orders/${id}
Parameter Type Description
id integer Optional
  POST /orders
Parameter Type Description
customer_id integer Required
  PUT /orders/${id}
Parameter Type Description
id integer Required
status string Optional

Order Details

  GET /order_details
  GET /order_details/${id}
Parameter Type Description
id integer Optional
  POST /order_details
Parameter Type Description
order_id integer Required
menu_item_id integer Required
quantity integer Required
price float Required

Report

  GET /report
Parameter Type Description
date_start date Optional
date_end date Optional
price float Optional
email string Optional

Orders Exceed the Limit

  PUT /orders-exceed-limit

Run in Postman

Serta terdapat Unit Testing Models dan Requests dengan 139 Test Case

Finished in 10.67 seconds (files took 7.5 seconds to load)
139 examples, 0 failures

Installation

To run this project

bundle install
ruby bin/rails server

Don't forget to migrate and seeds

rails db:migrate
rails db:seed

Run Unit Testing

bundle exec rspec -fd

linkedin

final-project-gigih's People

Contributors

afandiaziz 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.