Hi,
the first task is about creating a new application and return data via an api endpoint.
There is a json below, that you have to return from the database. Outline of the task: create a new laravel app, add an endpoint, make a test or a POSTMAN request to return the json structure with these or other data.
For the test you may use the assertJsonStructure function.
In a week or two (and if I get more than 0 viewing) I will share a repo of the solution. :)
If you want to join but you have no previous Laravel experience, firstly follow the documentation, or leave a comment below, so that I can help you get through if you get stuck.
Let's go!
{
"menu": [
{
"hours_start": "06:00",
"hours_end": "12:00",
"hours_time_mode": "24",
"display_name": "Mega XL Breakfast",
"reference": "m12345",
"description": "6 Slices of Bread, 6 Slices of Bacon, 6 Eggs, 3 Jumbo Sausages and 1 Large Chips",
"allergens": "none",
"category": "food",
"price": "15.99",
"currency": "GBP"
},
{
"hours_start": "00:00",
"hours_end": "24:00",
"hours_time_mode": "24",
"display_name": "orange juice",
"reference": "d55345",
"description": "orange juice not from concentrate",
"allergens": "none",
"category": "drink",
"price": "6.15",
"currency": "GBP"
},
{
"hours_start": "10:00",
"hours_end": "24:00",
"hours_time_mode": "24",
"display_name": "chicken tikka",
"reference": "m58765",
"description": "chicken tikka",
"allergens": "none",
"category": "food",
"price": "24.60",
"currency": "GBP"
},
{
"hours_start": "10:00",
"hours_end": "24:00",
"hours_time_mode": "24",
"display_name": "cheesecake",
"reference": "s53788",
"description": "cheesecake",
"allergens": "none",
"category": "dessert",
"price": "7.88",
"currency": "GBP"
}
]
}
Top comments (0)