-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGELOG - API.txt
68 lines (51 loc) · 2.48 KB
/
CHANGELOG - API.txt
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
*********** USER ******************
/user/getAll
/user/getByEmail/?email={string}
/user/getUserById/{idUser}
*********** AGENT ******************
/agent/getAllAgent
/agent/getAgent/{idAgent}
/agent/addAgent/{idManager} -- body {userDTO: {}, department: dep, ....}
/agent/updatePosition/{idAgent}?lat={int}&lon={int}
/agent/updateAgent/{idAgent} --body {idAgent: int, userDTO: {}, department: dep, ....}
*********** CITIZEN ******************
/citizen/getAll
/citizen/getCitizenById/{id}
/citizen/addCitizen -- body { userDTO: {} }
/citizen/updatePosition/{idCitizen}?lat={int}&lon={int}
/citizen/updateCitizen/{idCitizen} -- body { idCitizen: int, userDTO: {}, lat: ..... }
*********** MANAGER ******************
/manager/getAll
/manager/getManagerById/{id}
/manager/addManager -- body { user: {}, startDate_task: date, .....}
*********** TYPE ******************
/type/getAllType
/type/getTypeById/{id}
/type/addType/{idManager}?name={string}
/type/updateType/{idType}?idManager={int}(optional)&name={string}
/type/deleteType/{idType}
*********** INTERVENTION ******************
/intervention/getAllIntervention
/intervention/getInterventionById/{id}
/intervention/getInterventionByStatus/{status}
/intervention/addIntervention?idType={id}&idCitizen={idCitizen} --> add alarm from alarmService -- body { address: {address}, lat: ....}
/intervention/updateIntervention/{idIntervention}?idType={idType} -- body { address: {address}, lat: ....}
*********** ALARM ******************
/alarm/getAllAlarm
/alarm/getAlarmById/{id}
/alarm/getAllAlarmByIdIntervention/{idIntervention}
/alarm/getAllAlarmByIdCitizen/{idCitizen}
/alarm/addAlarm?idType={id}&idCitizen={idCitizen} --body { intervention: {id, lat, lon}, alarmDate ... } --> add intervention if dist>50mt
/alarm/deleteAlarm/{idAlarm} --> delete intervention if anyone has signaled same intervention and delete image added by citizen of this intervention
*********** IMAGE ******************
/image/getAll
/image/getAllImageByIdIntervention/{idIntervention}
/image/getImage?idIntervention={idIntervention}&idUser={idUser}
/image/addImage?idIntervention={idIntervention}&idUser={idUser} -- body [ {url, lat, lon}, {url, ...} ]
/image/deleteImage/{idImage}
*********** ASSIGN ******************
/assign/getAllAssign
/assign/getAssignById/{id}
/assign/getAllAssignByIdAgent/{idAgent}
/assign/assignAgentToIntervention/{idManager}?idIntervention={idIntervention}&idAgent={idAgent}
/assign/updateAssign/{idAssign} - body { manager: {}, agent:{}, intervention:{}, confirm:....}