amantinband/buber-breakfast
关于
A REST API which supports Creating, Reading, Updating and Deleting breakfasts
学习与教育实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文- 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.
探索相关项目
加载中…
