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
Parameter |
Type |
Description |
id |
integer |
Optional |
Parameter |
Type |
Description |
name |
string |
Required |
email |
string |
Required |
phone |
string |
Required |
Parameter |
Type |
Description |
id |
integer |
Required |
name |
string |
Optional |
email |
string |
Optional |
phone |
string |
Optional |
Parameter |
Type |
Description |
id |
integer |
Required |
Parameter |
Type |
Description |
id |
integer |
Optional |
Parameter |
Type |
Description |
name |
string |
Required |
Parameter |
Type |
Description |
id |
integer |
Required |
name |
string |
Optional |
Parameter |
Type |
Description |
id |
integer |
Required |
Menu Item Categories
GET /item_categories/${id}
Parameter |
Type |
Description |
id |
integer |
Optional |
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
Parameter |
Type |
Description |
id |
integer |
Optional |
Parameter |
Type |
Description |
name |
string |
Required |
price |
float |
Required |
description |
string |
Optional |
Parameter |
Type |
Description |
id |
integer |
Required |
name |
string |
Optional |
price |
float |
Optional |
description |
string |
Optional |
Parameter |
Type |
Description |
id |
integer |
Required |
Parameter |
Type |
Description |
id |
integer |
Optional |
Parameter |
Type |
Description |
customer_id |
integer |
Required |
Parameter |
Type |
Description |
id |
integer |
Required |
status |
string |
Optional |
Parameter |
Type |
Description |
id |
integer |
Optional |
Parameter |
Type |
Description |
order_id |
integer |
Required |
menu_item_id |
integer |
Required |
quantity |
integer |
Required |
price |
float |
Required |
Parameter |
Type |
Description |
date_start |
date |
Optional |
date_end |
date |
Optional |
price |
float |
Optional |
email |
string |
Optional |
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
bundle install
ruby bin/rails server
Don't forget to migrate and seeds
rails db:migrate
rails db:seed