Information
The ListProvider API is available since API version 1.10.0.
GET /api/listproviders/providers.json
Returns a list of listproviders.
Response
200 (OK)
: The listproviders are returned as a list.
Field | Type | Description |
---|---|---|
value |
string |
The string used to identify a provider, e.g. "LANGUAGES" |
Example
{
"LICENSES",
"LANGUAGES",
"SERIES",
}
GET /api/listproviders/{source}.json
Provides key-value list from the given listprovider.
Response
200 (OK)
: The key-value list are returned as a JSON object.
Field | Type | Description |
---|---|---|
key |
string |
Source key |
value |
object |
Source value |
Example for "LICENSES"
{
"CC-BY-NC-SA": "{\"label\":\"EVENTS.LICENSE.CCBYNCSA\", \"order\":6, \"selectable\": true}",
"CC-BY": "{\"label\":\"EVENTS.LICENSE.CCBY\", \"order\":2, \"selectable\": true}",
}