GET Get all restaurants #
This API endpoint is public and exposes a list of all the restaurants in The Fork:
GET https://the-fork-api.students.lewagon.engineering/api/v1/restaurants
It does not require a Bearer token.
Try it in your terminal by running:
NB: jq is a binary that highlights the response in the terminal.
{
"data": [
{
"id": 1,
"name": "Red Pizza",
"address": "Apt. 120 8318 Ledner Pines, New Brockfurt, ND 37989-9210",
"category": "italian",
"user_id": 1,
"created_at": "2023-01-12T14:50:43.902Z",
"updated_at": "2023-01-12T14:50:43.902Z"
},
{
"id": 2,
"name": "Fast Sushi",
"address": "5682 O'Keefe Crossroad, Kochfurt, RI 87403-4649",
"category": "japanese",
"user_id": 2,
"created_at": "2023-01-12T14:50:43.912Z",
"updated_at": "2023-01-12T14:50:43.912Z"
},
// [...] and more items
]
}