-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.http
87 lines (63 loc) · 1.3 KB
/
routes.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
GET http://localhost:8000/opp
POST http://localhost:8000/opp
Content-Type: application/json
{
"name": "Task",
"desc": "asdfs fdsa",
"isChurch": false,
"lat": -122.0,
"lon": 37.1,
"start": 1664607148,
"end": 1664607158
}
PUT http://localhost:8000/opp/13
Content-Type: application/json
{
"name": "Updated Task",
"desc": "asdfs fdsa",
"lat": -122.0,
"lon": 37.1,
"start": 1664607148,
"end": 1664607158
}
DELETE http://localhost:8000/opp/7
POST http://localhost:8000/opp/1/rate
Content-Type: application/json
{
"user_id": "asdf",
"rating": 2
}
###
GET http://localhost:8000/user
GET http://localhost:8000/user/asdf
POST http://localhost:8000/user
Content-Type: application/json
{
"id": "asdf"
}
PATCH http://localhost:8000/user/asdf
Content-Type: application/json
{
"id": "asdf",
"teaching": false
}
DELETE http://localhost:8000/user/a
Content-Type: application/json
{
"name": "technology"
}
POST http://localhost:8000/opp/1/rate
Content-Type: application/json
{
"user_id": "asdf",
"rating": 1
}
POST http://localhost:8000/user/opp
Content-Type: application/json
{
"user_id": "asdf",
"opp_id": 2
}
DELETE http://localhost:8000/user/asdf/opp/2
GET http://localhost:8000/user/asdf/opps
GET http://localhost:8000/user/asdf/inverse_opps