ABCDEFGHIJKLMNOPQRSTUVWXYZAA
1
DescriptionEndPointRequest TypeInput Data StructureOutput Data StructureOutput ExampleNote
2
Set users interests/api/set_interestsPOST-UserId : String
-interests: List<String>
None
3
Get Events List/api/get_eventsGET
eventsList: List<Event>
Event:
- eventid: Integer
- Image File Name: String
- title: String
- Description: String
- Content: String
- UserIdList: List<Id>
{
"eventsList": [
{
"Content": "Event content goes here.",
"Description": "This is a sample event for testing.",
"EventId": 1,
"Image File Name": "event_image.jpg",
"UserIdList": [
"user1",
"user123"
],
"title": "Sample Event"
}
]
}
4
Join an event/api/join_eventPOST- EventId: Integer
- UserId: String
5
Create an event/api/create_eventPOST- UserId: String
- ImageFileName: String
- title: String
- Description: String
- Content: String
6
get_recommend_knn/api/get_recommendation_knnGET/useridjson object
with recommendations,
that's a list of integer,
representing the event
{
"recommendations": [
"Canopy Crusaders",
"Compost Champions"
],
"tips": [
"Join a local tree-planting event or organize your own.",
"Consider worm composting as an indoor option."
]
}
7
get_recommend_dl/api/get_recommendation_dlGET/useridsame as above
{
"recommendations": [
"Canopy Crusaders"
],
"tips": [
"Learn about the importance of trees for the climate."
]
}
8
give rating/api/give_ratingPOST- UserId: String
- Activity: String
- Rating: Integer
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