amantinband/buber-breakfast
Tentang
A REST API which supports Creating, Reading, Updating and Deleting breakfasts
Pembelajaran dan pendidikanPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- 0
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asli- Give it a star ⭐!
- Overview
- Service Architecture
- Technologies
- Architecture
- Usage
- API Definition
- Credits
- VSCode Extensions
- Disclaimer
- License
Give it a star ⭐!
Loving it? Show your support by giving this project a star!
Overview
In the tutorial, we build a CRUD REST API from scratch using .NET 6. As you would expect, the backend system supports Creating, Reading, Updating and Deleting breakfasts.
Service Architecture

Technologies

Architecture

Usage
Simply git clone https://github.com/amantinband/buber-breakfast and dotnet run --project BuberBreakfast.
API Definition
Create Breakfast
Create Breakfast Request
POST /breakfasts
{
"name": "Vegan Sunshine",
"description": "Vegan everything! Join us for a healthy breakfast..",
"startDateTime": "2022-04-08T08:00:00",
"endDateTime": "2022-04-08T11:00:00",
"savory": [
"Oatmeal",
"Avocado Toast",
"Omelette",
"Salad"
],
"Sweet": [
"Cookie"
]
}
Create Breakfast Response
201 Created
Location: {{host}}/Breakfasts/{{id}}
{
"id": "00000000-0000-0000-0000-000000000000",
"name": "Vegan Sunshine",
"description": "Vegan everything! Join us for a healthy breakfast..",
"startDateTime": "2022-04-08T08:00:00",
"endDateTime": "2022-04-08T11:00:00",
"lastModifiedDateTime": "2022-04-06T12:00:00",
"savory": [
"Oatmeal",
"Avocado Toast",
"Omelette",
"Salad"
],
"Sweet": [
"Cookie"
]
}
Get Breakfast
Get Breakfast Request
GET /breakfasts/{{id}}
Get Breakfast Response
200 Ok
{
"id": "00000000-0000-0000-0000-000000000000",
"name": "Vegan Sunshine",
"description": "Vegan everything! Join us for a healthy breakfast..",
"startDateTime": "2022-04-08T08:00:00",
"endDateTime": "2022-04-08T11:00:00",
"lastModifiedDateTime": "2022-04-06T12:00:00",
"savory": [
"Oatmeal",
"Avocado Toast",
"Omelette",
"Salad"
],
"Sweet": [
"Cookie"
]
}
Update Breakfast
Update Breakfast Request
PUT /breakfasts/{{id}}
{
"name": "Vegan Sunshine",
"description": "Vegan everything! Join us for a healthy breakfast..",
"startDateTime": "2022-04-08T08:00:00",
"endDateTime": "2022-04-08T11:00:00",
"savory": [
"Oatmeal",
"Avocado Toast",
"Omelette",
"Salad"
],
"Sweet": [
"Cookie"
]
}
Update Breakfast Response
204 No Content
or
201 Created
Location: {{host}}/Breakfasts/{{id}}
Delete Breakfast
Delete Breakfast Request
DELETE /breakfasts/{{id}}
Delete Breakfast Response
204 No Content
Credits
- ErrorOr - A simple, fluent discriminated union of an error or a result.
VSCode Extensions
VSCode Rest Client - REST Client allows you to send HTTP request and view the response in Visual Studio Code directly.
VSCode Markdown Preview Enhanced - Markdown Preview Enhanced is an extension that provides you with many useful functionalities for previewing markdown files.
Disclaimer
This is an educational project. The source code is licensed under the MIT license.
License
This project is licensed under the terms of the MIT license.
Jelajahi proyek terkait
Memuat…
