forked from Bennyli1995/servitium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathendpoints_example.json
69 lines (51 loc) · 1.01 KB
/
endpoints_example.json
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
// endpoints
// get /service_workers
// no input
// output
[{
"worker_id": 1,
"first_name": "dale",
"last_name": "reynolds",
"rating": 4.8,
"rate": 24,
"years_exp" :10,
"description" : "description for tradesperson",
"photo": BLOB, // TBD
"skills": ["comm", "patient", "knowledgeable"],
"trade": "Electrician",
"phone": 7766054665,
"email": "[email protected]"
}
]
// get /reviews
// output
[
{
"review_id": 1,
"reviewer_name": "Tommy Fury",
"date": 2021-02-23, // date object,
"worker_id": 1,
"description": "very good worker",
"rating": 4
}
]
// post /review
// input
{
{
"reviewer_name": "Tommy Fury",
"date": 2021-02-23, // date object,
"worker_id": 1,
"description": "very good worker",
"rating": 4
}
}
// get /users
[
{
"user_id": 1,
"first_name": "dale",
"last_name": "reynolds",
"email": "[email protected]",
}
]