forked from RSWSMUGirl2016/Burger_Bar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apiary.apib
103 lines (85 loc) · 2.65 KB
/
apiary.apib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
FORMAT: 1A
# Insight Inc. Burger Bar
This API was built to familirize ourselves with apiary.io and
# Group Burger Bar
Burger Bar related resources of the **Insight Inc. Burger Bar API**
## Get Meats [/api/index.php/getMeats]
### List all Meats and their info[GET]
+ Response 200 (application/json)
[{
"name": "1/3 lb. Beef", "price": 2
}, {
"name": "1/2 lb. Beef", "price": 2.25
}, {
"name": "2/3 lb. Beef", "price": 2.5
}, {
"name": "Turkey", "price": 2
}, {
"name": "Veggie", "price": 2
}]
## Get Buns [/api/index.php/getBuns]
### List all Buns and their info [GET]
+ Response 200 (application/json)
[{
"name": "White", "price": 0.50
}, {
"name": "Wheat", "price": 0.50
}, {
"name": "Texas Toast", "price": 0.75
}]
## Get Cheeses [/api/index.php/getCheeses]
### List all Cheeses and their info [GET]
+ Response 200 (application/json)
[{
"name": "Cheddar", "price": 0.35
}, {
"name": "American", "price": 0.35
}, {
"name": "Swiss", "price": 0.35
}]
## Get Toppings [/api/index.php/getTopppings]
### List all Toppings and their info [GET]
+ Response 200 (application/json)
[{
"name": "Tomatoes", "price": 0
}, {
"name": "Lettuce", "price": 0
}, {
"name": "Onions", "price": 0
}, {
"name": "Pickles", "price": 0
}, {
"name": "Bacons", "price": 0
}, {
"name": "Red Onion", "price": 0
}, {
"name": "Mushrooms", "price": 0
}, {
"name": "Jalapenos", "price": 0
}]
## Get Sauces [/api/index.php/getSauces]
### List all Sauces and their info [GET]
+ Response 200 (application/json)
[{
"name": "Ketchup", "price": 0
}, {
"name": "Mustard", "price": 0
}, {
"name": "Mayonnaise", "price": 0
}, {
"name": "BBQ", "price": 0
}]
## Get Sides [/api/index.php/getSides]
### List all Sides and their info [GET]
+ Response 200 (application/json)
[{
"name": "French Fries", "price": 1
}, {
"name": "Tater Tots", "price": 1
}, {
"name": "Onion Rings", "price": 1
}]
## Create Account [/api/index.php/createUserAccount]
### Create an account [POST]
+ Response 200 (application/json)
{ "query": "INSERT INTO User (idUser, fName, lName, email, password, ccProvider, ccNumber) VALUES ($newID, '$fName', '$lName', '$email', '$password', '$CCprovider', $CCNumber));" }