GetFeedbackServiceRequest RPC
Get feedback service list or metadata of single service (if id is given) from feedback service (Open311).
Description
Triggers FeedbackResultEvent that includes a list of services or details/metadata for requested service.
Listing sample:
[{
"service_code": "1165",
"service_name": "Service name",
"keywords": "",
"description": "",
"group": "",
"type": "realtime",
"metadata": false
}]
Details for listing: http://wiki.open311.org/GeoReport_v2/#get-service-list
Metadata for service can be fetched by providing the service_code from above to the request as parameter. Note! if metadata property is false in the listing the details might not be available as it's optional in the Open311 specification.
Details for metadata: http://wiki.open311.org/GeoReport_v2/#get-service-definition
Parameters
(* means the parameter is required)
Name | Type | Description | Example | Details |
---|---|---|---|---|
serviceId | String | Open311 service_code | http://wiki.open311.org/GeoReport_v2/#get-service-definition |
Parameter description
http://wiki.open311.org/GeoReport_v2/
Oskari request parameter defaults
There are also parameters, which are not in request api, but must be defined in Oskari publisher when creating the embedded map.
Use Oskari map publishing method for to define these properties for the embedded map
Oskari embedded map configs for feedbackService
1. **base url**, Open311 service base url
2. **api_key** value in Open311 post request - posting is not allowed without api key in general
3. **service extensions**,
Url, key and extensions are not visible to the user
Examples
channel.postRequest('GetFeedbackServiceRequest', []);
channel.postRequest('GetFeedbackServiceRequest', ["1165"]);
Related api
- FeedbackResultEvent