Get a recipe

通过标识符获取特定食谱的完整深度详情。包括步骤、食材、营养值和媒体内容,为在你的平台上呈现丰富的互动烹饪体验提供所需的一切。专为极速获取而打造,为你的应用提供主要食谱详情页面的支持。 使用场景: 互动烹饪模式 • 在你的应用中提供分步骤、无干扰的烹饪模式,包含精确的时间、说明和媒体资源。可与语音助手集成。 电子商务——增强型商品页面 • 在以某种食材为关键组成部分的商品页面中嵌入完整食谱。用户可从食谱视图将所有食材加入购物车。 餐厅——互动数字菜单 • 顾客扫描菜品二维码后即可查看完整食谱:食材、准备方法和营养值。 食品配送套装 • 为实体餐食套装提供数字说明手册。顾客扫描盒子上的二维码后即可查看分步骤食谱。

GET
/recipes/{recipeId}
Recipes
无需积分

响应

200
application/json
object

RecipeDetail

配方的完整详细信息

object

recipeId

配方的唯一标识符

integer<int32>

title?

配方的本地化标题

string | null

slug

适合 URL 的配方 slug

string

difficulty?

integer

All of

变体 1

integer
012

cookingTimeMinutes?

烹饪时间(分钟)

integer<int32> | null

preparationTimeMinutes?

准备时间(分钟)

integer<int32> | null

recipeTypeId

integer
123578101112131415

servings

配方可制作的份数

integer<int16>

countryId?

原产国标识符,可通过 GET /definitions/countries 解析

integer<int32> | null

italianRegionId?

原产意大利大区标识符,可通过 GET /definitions/italian-regions 解析

integer<int32> | null

description?

配方的本地化描述

string | null

otherInfos?

配方的其他本地化备注或信息

string | null

storageInstructions?

本地化储存和保存说明

string | null

isPublished

配方是否已发布

boolean

isDeleted

配方是否已软删除

boolean

totalTimeMinutes?

烹饪时间和准备时间之和(分钟)

integer<int32> | null

imageUrl?

配方封面图片的 URL

string | null

preparationSteps?

string[]
string

links?

object[]

NamedLink

object

name

string

url

string

ingredients?

object[]

All of

变体 1

object[]

RecipeIngredient

配方中包含数量的食材条目

object

recipeIngredientId?

此食材条目的唯一标识符

integer<int32>

recipeId?

此食材所属食谱的标识符

integer<int32>

name?

食材的显示名称

string | null

quantity?

所用食材的数量

number<double> | null

measureUnitId?

该数量的计量单位标识符;可通过 GET /definitions/measure-units 解析

integer<int32> | null

isIngredient?

如果这是食材则为 True;如果是通用项目或备注则为 false

boolean

suggestions?

object[]

All of

变体 1

object[]

RecipeTool

配方所需的工具或设备

object

recipeToolId?

此工具条目的唯一标识符

integer<int32>

recipeId?

此工具所属配方的标识符

integer<int32>

name

工具的显示名称

string
204
application/json

No Content

此端点没有可用的 Schema。

401
application/json
object

未授权

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
403
application/json
object

禁止访问

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
406
application/json
object

不可接受

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
422
application/json
object

无法处理的实体

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
429
application/json
object

请求过多(APIM)

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
500
application/json
object

内部服务器错误

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
502
application/json
object

网关错误(APIM)

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string
504
application/json
object

网关超时(APIM)

ConnectProblemDetails

object

type?

string

title?

string

status?

integer<int32>

detail?

string

instance?

string

requestId?

string

traceId?

string