GET /routines/:id/detailed_summary
Returns detailed summary of routine
Path parameters
-
ID of the resource to fetch
GET /routines/{id}/detailed_summary.yml
curl \
-X GET https://api.cosmily.com/api/v1/routines/{id}/detailed_summary.yml \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": [
{
"routine_step_id": 42,
"ingredients": [
{
"has_opinion": true,
"explanation": "string",
"ingredient": {
"id": 42,
"title": "string",
"alias": "string"
}
}
],
"product": {
"id": 42,
"title": "string",
"full_title": "string",
"alias": "string",
"owner_user_id": 42,
"brand_id": 42,
"category_id": 42,
"product_image": {
"id": 42,
"product_id": 42,
"product_draft_id": 42,
"image": "string",
"url": "string"
},
"brand": {
"id": 42,
"alias": "string",
"title": "string"
},
"product_category": {
"id": 42,
"title": "string",
"alias": "string"
},
"owner_user": {
"id": 42,
"username": "string",
"user_type": "string",
"last_active": "string"
}
},
"product_pitch": {
"id": 42,
"affiliate_url": "string",
"coupon_code": "string"
},
"product_tutorial": {
"id": 42,
"product_id": 42,
"user_id": 42,
"general_info": "string",
"unit_of_measurement_display": "string",
"measurement_value": "string",
"product_tutorial_instructions": [
{
"instruction": "string"
}
],
"product_tutorial_warnings": [
{
"warning": "string"
}
]
}
}
]
}
Response examples (200)
{
"data": [
{
"routine_step_id": 42,
"ingredients": [
{
"has_opinion": true,
"explanation": "string",
"ingredient": {
"id": 42,
"title": "string",
"alias": "string"
}
}
],
"product": {
"id": 42,
"title": "string",
"full_title": "string",
"alias": "string",
"owner_user_id": 42,
"brand_id": 42,
"category_id": 42,
"product_image": {
"id": 42,
"product_id": 42,
"product_draft_id": 42,
"image": "string",
"url": "string"
},
"brand": {
"id": 42,
"alias": "string",
"title": "string"
},
"product_category": {
"id": 42,
"title": "string",
"alias": "string"
},
"owner_user": {
"id": 42,
"username": "string",
"user_type": "string",
"last_active": "string"
}
},
"product_pitch": {
"id": 42,
"affiliate_url": "string",
"coupon_code": "string"
},
"product_tutorial": {
"id": 42,
"product_id": 42,
"user_id": 42,
"general_info": "string",
"unit_of_measurement_display": "string",
"measurement_value": "string",
"product_tutorial_instructions": [
{
"instruction": "string"
}
],
"product_tutorial_warnings": [
{
"warning": "string"
}
]
}
}
]
}