api/v1/products/random
GET /api/v1/products/random
Status: 200
Body
// No request body necessary.
Headers:
'Access-Control-Allow-Origin': '"*"'
'Access-Control-Allow-Credentials': '"true"'
'Access-Control-Allow-Methods': '"GET, POST, PUT, DELETE, OPTIONS"'
'Access-Control-Allow-Headers': '"x-requested-with, x-requested-by, Authorization"'
'Content-Type': '"application/json; charset=utf-8"'
Body
[
{
"id": 38,
"name": "Little Blue Dress",
"description": "A fancy black handbag",
"price": "100.0",
"state": "active",
"like_count": 0,
"tag_list": [
],
"user_id": 80,
"store_id": 39,
"created_at": "2012-08-02T02:56:20Z",
"updated_at": "2012-08-02T02:56:20Z",
"image": {
"full": "/images/fallback/product_default.png",
"thumb": "/images/fallback/product_thumb_default.png",
"mid": "/images/fallback/product_mid_default.png",
"big": "/images/fallback/product_big_default.png"
},
"permissions": {
"manage": false,
"read": true,
"create": true,
"update": false,
"destroy": false
}
},
{
"id": 39,
"name": "Little Red Dress",
"description": "A fancy black handbag",
"price": "100.0",
"state": "active",
"like_count": 0,
"tag_list": [
],
"user_id": 81,
"store_id": 40,
"created_at": "2012-08-02T02:56:20Z",
"updated_at": "2012-08-02T02:56:20Z",
"image": {
"full": "/images/fallback/product_default.png",
"thumb": "/images/fallback/product_thumb_default.png",
"mid": "/images/fallback/product_mid_default.png",
"big": "/images/fallback/product_big_default.png"
},
"permissions": {
"manage": false,
"read": true,
"create": true,
"update": false,
"destroy": false
}
}
]