Get provisioning
Endpoint allows to get provisioning data
Get provision data
GET
https://api.whisk.com/provision/v2/dictionaries
Method developed to get provision data for user. For example get list of all tags for review.
Query Parameters
Name | Type | Description |
---|---|---|
language | String | defaults to user's language |
response_mask.paths | Enum | The set of field mask paths. possible values: |
Headers
Name | Type | Description |
---|---|---|
Authorization* | String | User Access token to authorize the API usage. For more information, see Authentication |
{
"recipe_languages": [
{
"code": "string",
"display_name": "string"
}
],
"cooking_devices": [
{
"name": {
"name": "string",
"display_name": "string"
},
"image_url": "string",
"modes": [
{
"name": {
"name": "string",
"display_name": "string"
},
"attributes": [
{
"name": {
"name": "string",
"display_name": "string"
},
"type": "COOKING_INTENT_ATTRIBUTE_TYPE_INVALID",
"selection_values": [
{
"value_type": "COOKING_INTENT_ATTRIBUTE_VALUE_TYPE_INVALID",
"value_format": "string",
"double_values": {
"bounded": {
"min": 0,
"max": 0,
"step": 0
},
"list": {
"values": [
0
]
},
"default": 0,
"unit": {
"name": "string",
"display_name": "string"
}
},
"int_values": {
"bounded": {
"min": 0,
"max": 0,
"step": 0
},
"list": {
"values": [
0
]
},
"default": 0,
"unit": {
"name": "string",
"display_name": "string"
}
},
"string_values": {
"values": [
{
"name": "string",
"display_name": "string"
}
],
"unit": {
"name": "string",
"display_name": "string"
},
"default": "string"
}
}
],
"is_optional": true
}
],
"integration_status": "COOKING_DEVICE_MODE_INTEGRATION_STATUS_INVALID"
}
]
}
],
"recipe_tags": [
{
"group_display_name": "string",
"tags": [
{
"name": "string",
"display_name": "string"
}
]
}
]
}
{
"code": "auth.tokenNotFound"
}
This is unexpected response, something is wrong on our side, please contact: [email protected]
Request body
Sample request and response
curl -X GET "https://api.b2c.whisk-dev.com/provision/v2/dictionaries?response_mask.paths=recipe_tags&response_mask.paths=recipe_languages" -H "accept: application/json" -H "Authorization: {beare_token}"
{
"recipe_languages": [
{
"code": "en",
"display_name": "English"
},
{
"code": "ko",
"display_name": "한국어"
},
{
"code": "de",
"display_name": "Deutsch"
},
{
"code": "es",
"display_name": "Español"
},
{
"code": "fr",
"display_name": "Français"
},
{
"code": "it",
"display_name": "Italiano"
},
{
"code": "hi",
"display_name": "हिन्दी"
},
{
"code": "nl",
"display_name": "Nederlands"
},
{
"code": "fil",
"display_name": "Wikang Filipino"
},
{
"code": "pl",
"display_name": "Polski"
},
{
"code": "pt",
"display_name": "Português"
},
{
"code": "he",
"display_name": "עברית"
},
{
"code": "ru",
"display_name": "Русский"
},
{
"code": "sr",
"display_name": "Српски"
}
],
"recipe_tags": [
{
"group_display_name": "How did it taste?",
"tags": [
{
"name": "delicious",
"display_name": "Delicious"
},
{
"name": "sweet",
"display_name": "Sweet"
},
{
"name": "spicy",
"display_name": "Spicy"
},
{
"name": "bland",
"display_name": "Bland"
},
{
"name": "moist",
"display_name": "Moist"
},
{
"name": "dry",
"display_name": "Dry"
},
{
"name": "crispy",
"display_name": "Crispy"
},
{
"name": "fresh",
"display_name": "Fresh"
}
]
},
{
"group_display_name": "What was good about it?",
"tags": [
{
"name": "easy",
"display_name": "Easy"
},
{
"name": "kid-friendly",
"display_name": "Kid-friendly"
},
{
"name": "under-30-minutes",
"display_name": "Under 30 minutes"
},
{
"name": "one-dish",
"display_name": "One-dish"
},
{
"name": "makes-leftovers",
"display_name": "Makes leftovers"
}
]
},
{
"group_display_name": "Would you make it again?",
"tags": [
{
"name": "go-to",
"display_name": "Go-to"
},
{
"name": "never-again",
"display_name": "Never again"
},
{
"name": "special-occasion",
"display_name": "Special occasion"
}
]
}
]
}
Last updated