-
Notifications
You must be signed in to change notification settings - Fork 22
Description
I can't seem to restrict the fields returned by API search query. For example the following query returns also other fields than just name and street_address:
https://api.hel.fi/servicemap/v2/search/?q=leikkipuisto&only=unit.name,unit.street_address
Additionally, the documentation for the API seems to be partially incomplete. (Yes, I know this site is no longer in use but there seems to be no alternative either.) The description for only parameter ends abruptly
"Restrict the field returned in the results. Separate field names by commas. In the search endpoint, you must qualify the field names with the resource names using the format"
Maybe this should include similar instructions as the include parameter above?
For example, instead of include=department you must specify include=unit.department.