Backend / API后端 / API
Booking Management API
Modular .NET 8 Backend Architecture模块化 .NET 8 后端架构
A modular booking management backend built with .NET 8 and ASP.NET Core, using layered architecture, REST APIs, Entity Framework Core, automated testing, and continuous integration.使用 .NET 8 和 ASP.NET Core 构建的模块化预订管理后端,采用分层架构、REST API、Entity Framework Core、自动化测试与持续集成。
Overview项目概览
Booking Management API is a modular backend for creating and retrieving bookings. Its layered structure separates the API, application logic, domain, and infrastructure, with a dedicated test project.Booking Management API 是一个用于创建和查询预订的模块化后端。分层结构将 API、应用逻辑、领域与基础设施分离,并配置独立测试项目。
The Goal项目目标
Create a maintainable backend foundation for booking-related applications.为预订类应用建立可维护的后端基础。
Architecture项目架构
The test project supports the layered backend with automated checks. This diagram illustrates the documented project structure; it is not a screenshot of the solution.测试项目为分层后端提供自动化验证。此图说明已知的项目结构,并非项目解决方案截图。
Key Features核心功能
- Create booking创建预订
- Get all bookings查询全部预订
- REST APIREST API
- EF Core migrationsEF Core 数据库迁移
- xUnit testingxUnit 测试
- InMemory testingInMemory 数据库测试
- SwaggerSwagger 文档
- GitHub Actions CIGitHub Actions 持续集成
Tech Stack技术栈
Testing & CI测试与持续集成
The project uses xUnit for automated tests and an InMemory database for database-related testing. GitHub Actions runs the automated build and test workflow as part of continuous integration.项目使用 xUnit 进行自动化测试,并使用 InMemory 数据库开展数据库相关测试。GitHub Actions 在持续集成过程中运行自动化构建与测试流程。
API DocumentationAPI 文档
Swagger provides API documentation for the implemented booking endpoints, making the API easier to explore and test during development.Swagger 为已实现的预订接口提供 API 文档,方便开发过程中浏览和测试 API。
Project Screenshots项目截图
API documentation, solution structure, and test results are shown below.以下展示 API 文档、项目结构与测试结果。


