-
Notifications
You must be signed in to change notification settings - Fork 4
/
apiary.apib
151 lines (126 loc) · 5.88 KB
/
apiary.apib
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# SIMS Portal
Surge Information Management Support (SIMS) is a global network of Information Management specialists who support IFRC emergency response operations by providing a variety of services and products. Key areas of technical support include geospatial analysis, web-based and static data visualization, mobile data collection, scenario planning, and much more.
## Users [/users{?status}]
### Get Users [GET]
`Active` and `Inactive` (but not `Pending`) member data is returned. Available attributes include:
- `admin`: Boolean
- `email`: String
- `first_name` and `last_name`: String
- `location`: String
- `slack`: String
- `status`: String
- `ns_id`: Integer
- `time_zone`: String
- `title`: String
+ Parameters
+ status (string, optional) - Set to `Active` or `Inactive`
+ Response 200 (application/json)
```
[
{
"admin": true,
"email": "jonathan.garro@redcross.org",
"first_name": "Jonathan",
"id": 1,
"last_name": "Garro",
"location": "Washington, DC, USA",
"ns_id": 4,
"slack": "UDU4ZRLGY",
"status": "Active",
"time_zone": "America/New_York",
"title": "Data Engineering Lead"
}
]
```
## Portfolio [/portfolio{?emergency_id}]
### Get Approved Products by Emergency [GET]
Approved products are those that have been verified for external sharing by a SIMS Remote Coordinator for that emergency. This endpoint requires the `emergency_id`, which corresponds to the relevant emergency page in the [IFRC GO Platform](go.ifrc.org). Available attributes include:
- `title`: String
- `type`: String
- `description`: String
- `image_file`: String
+ Parameters
+ emergency_id (integer, required) - The GO Platform emergency ID
+ Response 200 (application/json)
```
[
{
"description": "A map showing the direction of refugees and returnees fleeing the Sudan Crisis. The field needed a representation of the overall trend of movement across the border, as well as where people were congregating. This was produced as part of a suite of PMER outputs for usage in the Operational Strategy, Emergency Appeal, and more.",
"image_file": "portfolio_cover_images/Map-user17-cb80965e096f0bec.png",
"title": "Chad Displacement Map",
"type": "Map"
}
]
```
## Emergencies [/emergencies{?status,emergency_id,iso3}]
### Get Emergencies [GET]
SIMS only maintains records of emergencies for which the network has been activated. The endpoint accepts three optional parameters: `status` with **Active** or **Closed**; `emergency_id`, which corresponds to the relevant emergency page in the [IFRC GO Platform](go.ifrc.org); and `iso3`, which accepts a three-letter code of the country primarily affected by the emergency. Available attributes include:
- `emergency_name`: String
- `country_name`: String
- `emergency_type`: String
- `assignment_count`: Integer
- `iso3`: String
- `status`: String
- `activation_details`: String
- `go_emergency_id`: Integer
- `slack_channel`: String
+ Parameters
+ status (string, optional) - Set to `Active` or `Closed`
+ emergency_id (integer, optional) - The GO Platform emergency ID
+ iso3 (string, optional) - The three-letter iso3 code of the primary country
+ Response 200 (application/json)
```
[
{
"emergency_name": "Bangladesh Floods",
"activation_details": "In August 2017, heavy monsoon rains above the seasonal average severely impacted the riverine region of India, Nepal, Bhutan and Bangladesh which resulted in intense flooding in almost two-thirds of Bangladesh. According to the National Disaster Response Coordination Centre (NDRCC) report on 20 August 2017, around 6.9 million people were affected, approximately 593,247 houses and 650,000 hectares crops were damaged. The death toll reported was 114 people and 297,254 people were displaced.",
"assignment_count": 8,
"country_name": "Bangladesh",
"emergency_type": "Floods",
"go_emergency_id": 14,
"iso3": "BGD",
"slack_channel": "C05DS1VKULW",
"status": "Active"
}
]
```
## Acronyms [/acronyms/api/search{?search_column,search_term}]
### Search Acronyms [GET]
The SIMS Portal manages an index of acronyms in multiple languages. Users can access it through the web at rcrcsims.org/acronyms, or query the database directly.
- `acronym_eng`: String
- `def_eng`: String
- `acronym_esp`: String
- `def_esp`: String
- `acronym_fra`: String
- `def_fra`: String
- `link`: String
+ Parameters
+ search_column (string, required) - Type of column to search by. Possible values are:
- `acronym_eng`: English Acronym
- `acronym_esp`: Spanish Acronym
- `acronym_fra`: French Acronym
- `def_eng`: English Definition
- `def_esp`: Spanish Definition
- `def_fra`: French Definition
+ search_term (string, required) - The term you are searching for. Whatever string you use will only be searched for within the `search_column` you specified
+ Response 200 (application/json)
```
[
{
"acronym_eng": "IFRC",
"acronym_esp": "FICR",
"acronym_fra": "FICR",
"def_eng": "The International Federation of Red Cross and Red Crescent Societies",
"def_esp": "La Federación Internacional de Sociedades de la Cruz Roja y de la Media Luna Roja",
"def_fra": "La Fédération internationale des sociétés de la Croix-Rouge et du Croissant-Rouge"
},
{
"acronym_eng": "IFRC GO",
"acronym_esp": "FICR GO",
"acronym_fra": "FICR GO",
"def_eng": "The International Federation of Red Cross and Red Crescent Societies GO Platform",
"def_esp": null,
"def_fra": null
}
]
```