reliefweb-api 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +163 -0
- data/Rakefile +8 -0
- data/config.json +8 -0
- data/docs/Category.md +9 -0
- data/docs/CountriesApi.md +202 -0
- data/docs/Country.md +12 -0
- data/docs/Date.md +10 -0
- data/docs/Disaster.md +20 -0
- data/docs/DisastersApi.md +202 -0
- data/docs/DiscoveryApi.md +88 -0
- data/docs/Error.md +9 -0
- data/docs/ErrorDefinition.md +7 -0
- data/docs/FacetsFieldPost.md +7 -0
- data/docs/FacetsFilterPost.md +7 -0
- data/docs/FacetsIntervalPost.md +7 -0
- data/docs/FacetsLimitPost.md +7 -0
- data/docs/FacetsNamePost.md +7 -0
- data/docs/FacetsSortPost.md +7 -0
- data/docs/FieldsExcludePost.md +7 -0
- data/docs/FieldsIncludePost.md +7 -0
- data/docs/File.md +12 -0
- data/docs/FilterConditionsPost.md +7 -0
- data/docs/FilterFieldPost.md +7 -0
- data/docs/FilterNegatePost.md +7 -0
- data/docs/FilterOperatorPost.md +7 -0
- data/docs/FilterValuePost.md +7 -0
- data/docs/Job.md +23 -0
- data/docs/JobsApi.md +202 -0
- data/docs/Language.md +10 -0
- data/docs/LimitPost.md +7 -0
- data/docs/Location.md +8 -0
- data/docs/OffsetPost.md +7 -0
- data/docs/PostParams.md +28 -0
- data/docs/PresetPost.md +7 -0
- data/docs/ProfilePost.md +7 -0
- data/docs/QueryFieldsPost.md +7 -0
- data/docs/QueryOperatorPost.md +7 -0
- data/docs/QueryValuePost.md +7 -0
- data/docs/Report.md +19 -0
- data/docs/ReportsApi.md +202 -0
- data/docs/SortPost.md +7 -0
- data/docs/Source.md +14 -0
- data/docs/SourcesApi.md +202 -0
- data/docs/Training.md +23 -0
- data/docs/TrainingApi.md +202 -0
- data/git_push.sh +55 -0
- data/lib/reliefweb-api.rb +81 -0
- data/lib/reliefweb-api/api/countries_api.rb +277 -0
- data/lib/reliefweb-api/api/disasters_api.rb +277 -0
- data/lib/reliefweb-api/api/discovery_api.rb +113 -0
- data/lib/reliefweb-api/api/jobs_api.rb +277 -0
- data/lib/reliefweb-api/api/reports_api.rb +277 -0
- data/lib/reliefweb-api/api/sources_api.rb +277 -0
- data/lib/reliefweb-api/api/training_api.rb +277 -0
- data/lib/reliefweb-api/api_client.rb +388 -0
- data/lib/reliefweb-api/api_error.rb +38 -0
- data/lib/reliefweb-api/configuration.rb +202 -0
- data/lib/reliefweb-api/models/category.rb +192 -0
- data/lib/reliefweb-api/models/country.rb +220 -0
- data/lib/reliefweb-api/models/date.rb +202 -0
- data/lib/reliefweb-api/models/disaster.rb +299 -0
- data/lib/reliefweb-api/models/error.rb +192 -0
- data/lib/reliefweb-api/models/error_definition.rb +174 -0
- data/lib/reliefweb-api/models/facets_field_post.rb +175 -0
- data/lib/reliefweb-api/models/facets_filter_post.rb +175 -0
- data/lib/reliefweb-api/models/facets_interval_post.rb +32 -0
- data/lib/reliefweb-api/models/facets_limit_post.rb +175 -0
- data/lib/reliefweb-api/models/facets_name_post.rb +175 -0
- data/lib/reliefweb-api/models/facets_sort_post.rb +175 -0
- data/lib/reliefweb-api/models/fields_exclude_post.rb +175 -0
- data/lib/reliefweb-api/models/fields_include_post.rb +175 -0
- data/lib/reliefweb-api/models/file.rb +219 -0
- data/lib/reliefweb-api/models/filter_conditions_post.rb +175 -0
- data/lib/reliefweb-api/models/filter_field_post.rb +175 -0
- data/lib/reliefweb-api/models/filter_negate_post.rb +175 -0
- data/lib/reliefweb-api/models/filter_operator_post.rb +30 -0
- data/lib/reliefweb-api/models/filter_value_post.rb +175 -0
- data/lib/reliefweb-api/models/job.rb +330 -0
- data/lib/reliefweb-api/models/language.rb +201 -0
- data/lib/reliefweb-api/models/limit_post.rb +175 -0
- data/lib/reliefweb-api/models/location.rb +183 -0
- data/lib/reliefweb-api/models/offset_post.rb +175 -0
- data/lib/reliefweb-api/models/post_params.rb +363 -0
- data/lib/reliefweb-api/models/preset_post.rb +31 -0
- data/lib/reliefweb-api/models/profile_post.rb +31 -0
- data/lib/reliefweb-api/models/query_fields_post.rb +175 -0
- data/lib/reliefweb-api/models/query_operator_post.rb +30 -0
- data/lib/reliefweb-api/models/query_value_post.rb +175 -0
- data/lib/reliefweb-api/models/report.rb +293 -0
- data/lib/reliefweb-api/models/sort_post.rb +175 -0
- data/lib/reliefweb-api/models/source.rb +237 -0
- data/lib/reliefweb-api/models/training.rb +330 -0
- data/lib/reliefweb-api/version.rb +15 -0
- data/reliefweb-api.gemspec +45 -0
- data/spec/api/countries_api_spec.rb +94 -0
- data/spec/api/disasters_api_spec.rb +94 -0
- data/spec/api/discovery_api_spec.rb +55 -0
- data/spec/api/jobs_api_spec.rb +94 -0
- data/spec/api/reports_api_spec.rb +94 -0
- data/spec/api/sources_api_spec.rb +94 -0
- data/spec/api/training_api_spec.rb +94 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/category_spec.rb +47 -0
- data/spec/models/country_spec.rb +65 -0
- data/spec/models/date_spec.rb +53 -0
- data/spec/models/disaster_spec.rb +113 -0
- data/spec/models/error_definition_spec.rb +35 -0
- data/spec/models/error_spec.rb +47 -0
- data/spec/models/facets_field_post_spec.rb +35 -0
- data/spec/models/facets_filter_post_spec.rb +35 -0
- data/spec/models/facets_interval_post_spec.rb +35 -0
- data/spec/models/facets_limit_post_spec.rb +35 -0
- data/spec/models/facets_name_post_spec.rb +35 -0
- data/spec/models/facets_sort_post_spec.rb +35 -0
- data/spec/models/fields_exclude_post_spec.rb +35 -0
- data/spec/models/fields_include_post_spec.rb +35 -0
- data/spec/models/file_spec.rb +65 -0
- data/spec/models/filter_conditions_post_spec.rb +35 -0
- data/spec/models/filter_field_post_spec.rb +35 -0
- data/spec/models/filter_negate_post_spec.rb +35 -0
- data/spec/models/filter_operator_post_spec.rb +35 -0
- data/spec/models/filter_value_post_spec.rb +35 -0
- data/spec/models/job_spec.rb +131 -0
- data/spec/models/language_spec.rb +53 -0
- data/spec/models/limit_post_spec.rb +35 -0
- data/spec/models/location_spec.rb +41 -0
- data/spec/models/offset_post_spec.rb +35 -0
- data/spec/models/post_params_spec.rb +161 -0
- data/spec/models/preset_post_spec.rb +35 -0
- data/spec/models/profile_post_spec.rb +35 -0
- data/spec/models/query_fields_post_spec.rb +35 -0
- data/spec/models/query_operator_post_spec.rb +35 -0
- data/spec/models/query_value_post_spec.rb +35 -0
- data/spec/models/report_spec.rb +107 -0
- data/spec/models/sort_post_spec.rb +35 -0
- data/spec/models/source_spec.rb +77 -0
- data/spec/models/training_spec.rb +131 -0
- data/spec/spec_helper.rb +111 -0
- metadata +416 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# ReliefWebAPI::DisastersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://api.reliefweb.int/v1*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**get_disaster_by_id**](DisastersApi.md#get_disaster_by_id) | **GET** /disasters/{disasterId} | Find disaster by its unique ID
|
|
8
|
+
[**get_disasters**](DisastersApi.md#get_disasters) | **GET** /disasters | List or search disasters covered by ReliefWeb.
|
|
9
|
+
[**search_disasters**](DisastersApi.md#search_disasters) | **POST** /disasters | List or search disasters covered by ReliefWeb.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
# **get_disaster_by_id**
|
|
13
|
+
> Disaster get_disaster_by_id(disaster_id, opts)
|
|
14
|
+
|
|
15
|
+
Find disaster by its unique ID
|
|
16
|
+
|
|
17
|
+
Individual disasters
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
```ruby
|
|
21
|
+
# load the gem
|
|
22
|
+
require 'reliefweb-api'
|
|
23
|
+
|
|
24
|
+
api_instance = ReliefWebAPI::DisastersApi.new
|
|
25
|
+
|
|
26
|
+
disaster_id = 'disaster_id_example' # String | The identifier of the disaster
|
|
27
|
+
|
|
28
|
+
opts = {
|
|
29
|
+
profile: 'profile_example', # String | Pre-built standard selections of fields to return for ease of displaying lists or items.
|
|
30
|
+
fields_include: ['fields_include_example'], # Array<String> | Specify which fields to include for each item. Defaults to an item label.
|
|
31
|
+
fields_exclude: ['fields_exclude_example'] # Array<String> | Specify sub-fields to exclude from overall results. For example, if you include <code>date</code> you may exclude <code>date.changed</code>.
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
begin
|
|
35
|
+
#Find disaster by its unique ID
|
|
36
|
+
result = api_instance.get_disaster_by_id(disaster_id, opts)
|
|
37
|
+
p result
|
|
38
|
+
rescue ReliefWebAPI::ApiError => e
|
|
39
|
+
puts "Exception when calling DisastersApi->get_disaster_by_id: #{e}"
|
|
40
|
+
end
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Parameters
|
|
44
|
+
|
|
45
|
+
Name | Type | Description | Notes
|
|
46
|
+
------------- | ------------- | ------------- | -------------
|
|
47
|
+
**disaster_id** | **String**| The identifier of the disaster |
|
|
48
|
+
**profile** | **String**| Pre-built standard selections of fields to return for ease of displaying lists or items. | [optional]
|
|
49
|
+
**fields_include** | [**Array<String>**](String.md)| Specify which fields to include for each item. Defaults to an item label. | [optional]
|
|
50
|
+
**fields_exclude** | [**Array<String>**](String.md)| Specify sub-fields to exclude from overall results. For example, if you include <code>date</code> you may exclude <code>date.changed</code>. | [optional]
|
|
51
|
+
|
|
52
|
+
### Return type
|
|
53
|
+
|
|
54
|
+
[**Disaster**](Disaster.md)
|
|
55
|
+
|
|
56
|
+
### Authorization
|
|
57
|
+
|
|
58
|
+
No authorization required
|
|
59
|
+
|
|
60
|
+
### HTTP request headers
|
|
61
|
+
|
|
62
|
+
- **Content-Type**: text/plain; charset=utf-8, application/json
|
|
63
|
+
- **Accept**: application/json
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
# **get_disasters**
|
|
68
|
+
> Disaster get_disasters(opts)
|
|
69
|
+
|
|
70
|
+
List or search disasters covered by ReliefWeb.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Example
|
|
75
|
+
```ruby
|
|
76
|
+
# load the gem
|
|
77
|
+
require 'reliefweb-api'
|
|
78
|
+
|
|
79
|
+
api_instance = ReliefWebAPI::DisastersApi.new
|
|
80
|
+
|
|
81
|
+
opts = {
|
|
82
|
+
query_value: 'query_value_example', # String | Specify the terms of your fuzzy search. The default is no query.
|
|
83
|
+
query_operator: 'query_operator_example', # String | Specify the operator by which your search query words will be combined.
|
|
84
|
+
query_fields: ['query_fields_example'], # Array<String> | Specify which fields to target with your search. You may use boost syntax here, see the Advanced API Usage documentation.
|
|
85
|
+
filter_field: 'filter_field_example', # String | Field to filter by. Every condition must contain either a <code>field</code> or <code>conditions</code> property.
|
|
86
|
+
filter_value: ['filter_value_example'], # Array<String> | Value for the field being filtered. Leave blank to require existence of the field, must be present for <code>range</code> and <code>value</code> conditions.
|
|
87
|
+
filter_operator: 'filter_operator_example', # String | Operator by which filters will be combined.
|
|
88
|
+
filter_negate: true, # BOOLEAN | Reverse the filter to include those items that do not match.
|
|
89
|
+
filter_conditions: ['filter_conditions_example'], # Array<String> | This property is used to combine conditions with a logical connector (the <code>operator</code> property). Every condition must contain one of the <code>field</code> or <code>conditions</code> properties.
|
|
90
|
+
facets_field: 'facets_field_example', # String | Field to facet by. May include dates, references or the status field.
|
|
91
|
+
facets_name: 'facets_name_example', # String | Identifier for resulting facet data. Useful when faceting multiple ways on the same field.
|
|
92
|
+
facets_limit: 56, # Integer | Limit the number of facets returned for non-date based facets.
|
|
93
|
+
facets_sort: 'facets_sort_example', # String | The sort order of non-date facets. Sorting may be by <code>value</code> or <code>count</code> of terms, and ascending or descending. <code>count</code> defaults to <code>desc</code>, <code>value</code> defaults to <code>asc</code>.
|
|
94
|
+
facets_filter: ['facets_filter_example'], # Array<String> | Apply all the same capabilities of the filter parameter to the specific results of this facet request.
|
|
95
|
+
facets_interval: 'facets_interval_example', # String | Round date information to the nearest interval unit. Apply all the same capabilities of the filter parameter to the specific results of this facet request.
|
|
96
|
+
fields_include: ['fields_include_example'], # Array<String> | Specify which fields to include for each item. Defaults to an item label.
|
|
97
|
+
fields_exclude: ['fields_exclude_example'] # Array<String> | Specify sub-fields to exclude from overall results. For example, if you include <code>date</code> you may exclude <code>date.changed</code>.
|
|
98
|
+
limit: 10, # Integer | The maximum number of items to return for a list query. The default is <code>10</code> and the maximum <code>1000</code>.
|
|
99
|
+
offset: 0, # Integer | The offset from which to return the items in a list query. Allows paging through all results. The default is <code>0</code>.
|
|
100
|
+
sort: ['sort_example'], # Array<String> | Sort the list results. Defaults to search relevance. Values in the form of <code>fieldname:(asc|desc)</code>.
|
|
101
|
+
profile: 'profile_example', # String | Pre-built standard selections of fields to return for ease of displaying lists or items.
|
|
102
|
+
preset: 'preset_example' # String | Pre-built standard configurations of queries, filters and sorts for common use cases.
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
begin
|
|
106
|
+
#List or search disasters covered by ReliefWeb.
|
|
107
|
+
result = api_instance.get_disasters(opts)
|
|
108
|
+
p result
|
|
109
|
+
rescue ReliefWebAPI::ApiError => e
|
|
110
|
+
puts "Exception when calling DisastersApi->get_disasters: #{e}"
|
|
111
|
+
end
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Parameters
|
|
115
|
+
|
|
116
|
+
Name | Type | Description | Notes
|
|
117
|
+
------------- | ------------- | ------------- | -------------
|
|
118
|
+
**query_value** | **String**| Specify the terms of your fuzzy search. The default is no query. | [optional]
|
|
119
|
+
**query_operator** | **String**| Specify the operator by which your search query words will be combined. | [optional]
|
|
120
|
+
**query_fields** | [**Array<String>**](String.md)| Specify which fields to target with your search. You may use boost syntax here, see the Advanced API Usage documentation. | [optional]
|
|
121
|
+
**filter_field** | **String**| Field to filter by. Every condition must contain either a <code>field</code> or <code>conditions</code> property. | [optional]
|
|
122
|
+
**filter_value** | [**Array<String>**](String.md)| Value for the field being filtered. Leave blank to require existence of the field, must be present for <code>range</code> and <code>value</code> conditions. | [optional]
|
|
123
|
+
**filter_operator** | **String**| Operator by which filters will be combined. | [optional]
|
|
124
|
+
**filter_negate** | **BOOLEAN**| Reverse the filter to include those items that do not match. | [optional]
|
|
125
|
+
**filter_conditions** | [**Array<String>**](String.md)| This property is used to combine conditions with a logical connector (the <code>operator</code> property). Every condition must contain one of the <code>field</code> or <code>conditions</code> properties. | [optional]
|
|
126
|
+
**facets_field** | **String**| Field to facet by. May include dates, references or the status field. | [optional]
|
|
127
|
+
**facets_name** | **String**| Identifier for resulting facet data. Useful when faceting multiple ways on the same field. | [optional]
|
|
128
|
+
**facets_limit** | **Integer**| Limit the number of facets returned for non-date based facets. | [optional]
|
|
129
|
+
**facets_sort** | **String**| The sort order of non-date facets. Sorting may be by <code>value</code> or <code>count</code> of terms, and ascending or descending. <code>count</code> defaults to <code>desc</code>, <code>value</code> defaults to <code>asc</code>. | [optional]
|
|
130
|
+
**facets_filter** | [**Array<String>**](String.md)| Apply all the same capabilities of the filter parameter to the specific results of this facet request. | [optional]
|
|
131
|
+
**facets_interval** | **String**| Round date information to the nearest interval unit. Apply all the same capabilities of the filter parameter to the specific results of this facet request. | [optional]
|
|
132
|
+
**fields_include** | [**Array<String>**](String.md)| Specify which fields to include for each item. Defaults to an item label. | [optional]
|
|
133
|
+
**fields_exclude** | [**Array<String>**](String.md)| Specify sub-fields to exclude from overall results. For example, if you include <code>date</code> you may exclude <code>date.changed</code>. | [optional]
|
|
134
|
+
**limit** | **Integer**| The maximum number of items to return for a list query. The default is <code>10</code> and the maximum <code>1000</code>. | [optional] [default to 10]
|
|
135
|
+
**offset** | **Integer**| The offset from which to return the items in a list query. Allows paging through all results. The default is <code>0</code>. | [optional] [default to 0]
|
|
136
|
+
**sort** | [**Array<String>**](String.md)| Sort the list results. Defaults to search relevance. Values in the form of <code>fieldname:(asc|desc)</code>. | [optional]
|
|
137
|
+
**profile** | **String**| Pre-built standard selections of fields to return for ease of displaying lists or items. | [optional]
|
|
138
|
+
**preset** | **String**| Pre-built standard configurations of queries, filters and sorts for common use cases. | [optional]
|
|
139
|
+
|
|
140
|
+
### Return type
|
|
141
|
+
|
|
142
|
+
[**Disaster**](Disaster.md)
|
|
143
|
+
|
|
144
|
+
### Authorization
|
|
145
|
+
|
|
146
|
+
No authorization required
|
|
147
|
+
|
|
148
|
+
### HTTP request headers
|
|
149
|
+
|
|
150
|
+
- **Content-Type**: text/plain; charset=utf-8
|
|
151
|
+
- **Accept**: application/json
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
# **search_disasters**
|
|
156
|
+
> Disaster search_disasters(opts)
|
|
157
|
+
|
|
158
|
+
List or search disasters covered by ReliefWeb.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
### Example
|
|
163
|
+
```ruby
|
|
164
|
+
# load the gem
|
|
165
|
+
require 'reliefweb-api'
|
|
166
|
+
|
|
167
|
+
api_instance = ReliefWebAPI::DisastersApi.new
|
|
168
|
+
|
|
169
|
+
opts = {
|
|
170
|
+
fields: ReliefWebAPI::PostParams.new # PostParams | Returned fields
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
begin
|
|
174
|
+
#List or search disasters covered by ReliefWeb.
|
|
175
|
+
result = api_instance.search_disasters(opts)
|
|
176
|
+
p result
|
|
177
|
+
rescue ReliefWebAPI::ApiError => e
|
|
178
|
+
puts "Exception when calling DisastersApi->search_disasters: #{e}"
|
|
179
|
+
end
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### Parameters
|
|
183
|
+
|
|
184
|
+
Name | Type | Description | Notes
|
|
185
|
+
------------- | ------------- | ------------- | -------------
|
|
186
|
+
**fields** | [**PostParams**](PostParams.md)| Returned fields | [optional]
|
|
187
|
+
|
|
188
|
+
### Return type
|
|
189
|
+
|
|
190
|
+
[**Disaster**](Disaster.md)
|
|
191
|
+
|
|
192
|
+
### Authorization
|
|
193
|
+
|
|
194
|
+
No authorization required
|
|
195
|
+
|
|
196
|
+
### HTTP request headers
|
|
197
|
+
|
|
198
|
+
- **Content-Type**: application/json
|
|
199
|
+
- **Accept**: application/json
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# ReliefWebAPI::DiscoveryApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://api.reliefweb.int/v1*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**discovery_resources**](DiscoveryApi.md#discovery_resources) | **GET** / |
|
|
8
|
+
[**discovery_versions**](DiscoveryApi.md#discovery_versions) | **GET** /../ |
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
# **discovery_resources**
|
|
12
|
+
> discovery_resources
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
Review list of main entrypoints and top-level resources.
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
```ruby
|
|
20
|
+
# load the gem
|
|
21
|
+
require 'reliefweb-api'
|
|
22
|
+
|
|
23
|
+
api_instance = ReliefWebAPI::DiscoveryApi.new
|
|
24
|
+
|
|
25
|
+
begin
|
|
26
|
+
api_instance.discovery_resources
|
|
27
|
+
rescue ReliefWebAPI::ApiError => e
|
|
28
|
+
puts "Exception when calling DiscoveryApi->discovery_resources: #{e}"
|
|
29
|
+
end
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Parameters
|
|
33
|
+
This endpoint does not need any parameter.
|
|
34
|
+
|
|
35
|
+
### Return type
|
|
36
|
+
|
|
37
|
+
nil (empty response body)
|
|
38
|
+
|
|
39
|
+
### Authorization
|
|
40
|
+
|
|
41
|
+
No authorization required
|
|
42
|
+
|
|
43
|
+
### HTTP request headers
|
|
44
|
+
|
|
45
|
+
- **Content-Type**: text/plain; charset=utf-8
|
|
46
|
+
- **Accept**: application/json
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
# **discovery_versions**
|
|
51
|
+
> discovery_versions
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
Review location and status of all versions.
|
|
56
|
+
|
|
57
|
+
### Example
|
|
58
|
+
```ruby
|
|
59
|
+
# load the gem
|
|
60
|
+
require 'reliefweb-api'
|
|
61
|
+
|
|
62
|
+
api_instance = ReliefWebAPI::DiscoveryApi.new
|
|
63
|
+
|
|
64
|
+
begin
|
|
65
|
+
api_instance.discovery_versions
|
|
66
|
+
rescue ReliefWebAPI::ApiError => e
|
|
67
|
+
puts "Exception when calling DiscoveryApi->discovery_versions: #{e}"
|
|
68
|
+
end
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Parameters
|
|
72
|
+
This endpoint does not need any parameter.
|
|
73
|
+
|
|
74
|
+
### Return type
|
|
75
|
+
|
|
76
|
+
nil (empty response body)
|
|
77
|
+
|
|
78
|
+
### Authorization
|
|
79
|
+
|
|
80
|
+
No authorization required
|
|
81
|
+
|
|
82
|
+
### HTTP request headers
|
|
83
|
+
|
|
84
|
+
- **Content-Type**: text/plain; charset=utf-8
|
|
85
|
+
- **Accept**: application/json
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
data/docs/Error.md
ADDED
data/docs/File.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# ReliefWebAPI::File
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**description** | **String** | | [optional]
|
|
7
|
+
**filename** | **String** | | [optional]
|
|
8
|
+
**id** | **Integer** | | [optional]
|
|
9
|
+
**mimetype** | **String** | | [optional]
|
|
10
|
+
**url** | **String** | | [optional]
|
|
11
|
+
|
|
12
|
+
|
data/docs/Job.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# ReliefWebAPI::Job
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**category** | [**Array<Category>**](Category.md) | | [optional]
|
|
7
|
+
**city** | [**Array<Location>**](Location.md) | | [optional]
|
|
8
|
+
**country** | [**Array<Country>**](Country.md) | | [optional]
|
|
9
|
+
**date** | **Date** | | [optional]
|
|
10
|
+
**description** | **String** | | [optional]
|
|
11
|
+
**description_html** | **String** | | [optional]
|
|
12
|
+
**experience** | [**Array<Category>**](Category.md) | | [optional]
|
|
13
|
+
**file** | **Array<File>** | | [optional]
|
|
14
|
+
**how_to_apply_html** | **String** | | [optional]
|
|
15
|
+
**how_to_apply** | **String** | | [optional]
|
|
16
|
+
**id** | **String** | | [optional]
|
|
17
|
+
**language** | [**Language**](Language.md) | | [optional]
|
|
18
|
+
**link** | **String** | | [optional]
|
|
19
|
+
**theme** | [**Array<Category>**](Category.md) | | [optional]
|
|
20
|
+
**title** | **String** | | [optional]
|
|
21
|
+
**url** | **String** | | [optional]
|
|
22
|
+
|
|
23
|
+
|