Mainly used as a supporting function for get_metadata but can also be used to create a working URL to paste in your web browser.

compose_metadata_query(
  entity = "kpi",
  title = NULL,
  id = NULL,
  municipality = NULL,
  page = NA,
  per_page = NA,
  version = "v2"
)

Arguments

entity

Any allowed metadata entity. Check allowed_entities to see an updated list.

title

A free-form search term or the exact title of any entry in the current entity. Case insensitive.

id

The ID of any entry in the current entity.

municipality

If entity is "ou", the municipality parameter can be added to narrow the search.

page

What page to fetch. Used mainly in large queries. Fetches a page using the value of "per_page" as pagination delimiter.

per_page

Number of results per page.

version

Version of the API. Currently only "v2" is supported.

Value

A string containing a URL to the Kolada REST API.