Skip to content

Commit d438efd

Browse files
committed
added endpoint_example
1 parent d9901d6 commit d438efd

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

Diff for: endpoints_example.json

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
2+
// endpoints
3+
4+
5+
6+
// get /service_workers
7+
8+
// no input
9+
10+
// output
11+
12+
[{
13+
"worker_id": 1,
14+
"first_name": "dale",
15+
"last_name": "reynolds",
16+
"rating": 4.8,
17+
"rate": 24,
18+
"years_exp" :10,
19+
"description" : "description for tradesperson",
20+
"photo": BLOB, // TBD
21+
"skills": ["comm", "patient", "knowledgeable"],
22+
"trade": "Electrician",
23+
"phone": 7766054665,
24+
"email": "[email protected]"
25+
}
26+
]
27+
28+
// get /reviews
29+
30+
// output
31+
[
32+
{
33+
"review_id": 1,
34+
"reviewer_name": "Tommy Fury",
35+
"date": 2021-02-23, // date object,
36+
"worker_id": 1,
37+
"description": "very good worker",
38+
"rating": 4
39+
}
40+
]
41+
42+
43+
// post /review
44+
45+
// input
46+
{
47+
{
48+
"reviewer_name": "Tommy Fury",
49+
"date": 2021-02-23, // date object,
50+
"worker_id": 1,
51+
"description": "very good worker",
52+
"rating": 4
53+
}
54+
55+
}
56+
57+
58+
// get /users
59+
60+
[
61+
{
62+
"user_id": 1,
63+
"first_name": "dale",
64+
"last_name": "reynolds",
65+
"email": "[email protected]",
66+
}
67+
]
68+
69+

0 commit comments

Comments
 (0)