Create PUT - Function for updating an Restaurant.
PUT http://localhost:7071/api/restaurants
Body:
{
"id": "Bieg-Aalen",
"url": null,
"name": "Bieg",
"street": null,
"phoneNumber": "0815",
"city": "Aalen",
"postalCode": null,
"emailAddress": "restaurant@example.com"
}
Please have a look at the Meal Implementation:
https://github.com/PlanBGmbH/PlanButlerV2/blob/dev/PlanB.Butler.Services/PlanB.Butler.Services/Controllers/MealService.cs
GET by ID:
http://localhost:7071/api/restaurants/Bieg-Aalen
Create PUT - Function for updating an Restaurant.
PUT http://localhost:7071/api/restaurants
Body:
{
"id": "Bieg-Aalen",
"url": null,
"name": "Bieg",
"street": null,
"phoneNumber": "0815",
"city": "Aalen",
"postalCode": null,
"emailAddress": "restaurant@example.com"
}
Please have a look at the Meal Implementation:
https://github.com/PlanBGmbH/PlanButlerV2/blob/dev/PlanB.Butler.Services/PlanB.Butler.Services/Controllers/MealService.cs
GET by ID:
http://localhost:7071/api/restaurants/Bieg-Aalen