Recipe List Create Ap Iview
Show enabled and published Recipe list
GET /cooking/api/recipes
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"title": "Spaghetti aglio, olio e peperoncino",
"author": "madlyuk",
"category": "Breakfast",
"RecipeIngredients": [
{
"id": 13,
"quantity": "1",
"ingredients": [
{
"id": 13,
"name": "peperoncino fresco",
"slug": "peperoncino-fresco",
"image": null,
"calories": null,
"usage_tips": "",
"notes": "",
"created_at": "2021-03-11T14:44:28.201228Z",
"updated_at": "2021-03-11T16:14:09.900969Z",
"author": 1
},
{
"id": 14,
"name": "peperoncino secco",
"slug": "peperoncino-secco",
"image": null,
"calories": null,
"usage_tips": "",
"notes": "",
"created_at": "2021-03-11T16:13:52.214084Z",
"updated_at": "2021-03-11T16:13:52.214118Z",
"author": 1
}
],
"notes": ""
}
],
"reviews": [
{
"id": 22,
"review_author": "giuly",
"slug": "spaghetti-aglio-olio-e-peperoncino-9",
"rating": "4",
"review": "che buoni!",
"created_at": "2021-03-11T17:01:10.178876Z",
"updated_at": "2021-03-11T17:01:10.178910Z"
},
{
"id": 23,
"review_author": "madlyuk",
"slug": "spaghetti-aglio-olio-e-peperoncino-1",
"rating": "0",
"review": "metti più spiegazioni!",
"created_at": "2021-03-11T17:02:11.838805Z",
"updated_at": "2021-03-11T17:02:11.838838Z"
}
],
"time_since_publication": "1 month",
"slug": "spaghetti-aglio-olio-e-peperoncino",
"image": null,
"difficult": "1",
"short_desc": "prova",
"length": null,
"cooking_utensils": "",
"story": "",
"locality": "",
"notes": "",
"frontend_visible": true,
"enabled": true,
"publication_date": "2021-03-11",
"created_at": "2021-03-11T15:58:13.368738Z",
"updated_at": "2021-03-11T16:16:54.290543Z"
}
]
}