-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.http
87 lines (64 loc) · 1.37 KB
/
app.http
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
###
GET http://localhost:8000/ok
###
GET http://localhost:8000/restraunt/4
###
POST http://localhost:8000/restraunt
Content-Type: application/json
{
"name": "Naivas",
"street_address": "3021",
"zip_code": "0003",
"city_id": 2,
"created_at": "2018-04-24",
"updated_at": "2018-04-24"
}
###
DELETE http://localhost:8000/restraunt/5
###
PUT http://localhost:8000/restraunt/4
Content-Type: application/json
{
"name": "SalimGrill Classic"
}
###
POST http://localhost:8000/restraunt
Content-Type: application/json
{
"name": "Jumia",
"street_address": "3111",
"zip_code": "0008",
"city_id": 3,
"created_at": "2018-02-23",
"updated_at": "2024-04-24"
}
###
GET http://localhost:8000/restraunt/7
###
GET http://localhost:8000/users/1
###
POST http://localhost:8000/users
Content-Type: application/json
{
"name": "John Doe",
"contactPhone":"+25473200219",
"phoneVerified":true,
"email": "johndoe@gmail.com",
"emailVerified": true,
"confirmationCode":"2045",
"password": "password",
"createdAt": "2018-04-24",
"updatedAt": "2018-04-24"
}
###
PUT http://localhost:8000/users/4
Content-Type: application/json
{
"name": "Ronney Otieno",
"contactPhone":"+254737204332",
"email": "ronneyO@gmail.com",
"confirmationCode":"2Z01",
"password": "@ronnie#6"
}
###
GET http://localhost:8000/state/2