https://nn-test.herokuapp.com/
POST /recipes
{
"id": 15,
"title": "Fuji",
"making_time": "25分",
"serves": "6人",
"ingredients": "rice, garlic",
"cost": 1000,
"created_at": "2016-01-10 12:10:12",
"updated_at": "2016-01-10 12:10:12"
}
OK
{
success: false,
message: <err message>
}
GET /recipes
[
{
"id": 2,
"title": "オムライス",
"making_time": "30分",
"serves": "2人",
"ingredients": "玉ねぎ,卵,スパイス,醤油",
"cost": 700,
"created_at": "2016-01-11T04:10:12.000Z",
"updated_at": "2016-01-11T04:10:12.000Z"
},
{
"id": 5,
"title": "brian",
"making_time": "25分",
"serves": "6人",
"ingredients": "rice, garlic",
"cost": 1000,
"created_at": "2016-01-10T03:10:12.000Z",
"updated_at": "2016-01-10T03:10:12.000Z"
}
]
GET /recipes/:id
{
"id": 2,
"title": "オムライス",
"making_time": "30分",
"serves": "2人",
"ingredients": "玉ねぎ,卵,スパイス,醤油",
"cost": 700,
"created_at": "2016-01-11T04:10:12.000Z",
"updated_at": "2016-01-11T04:10:12.000Z"
}
DELETE /recipes/:id
OK