An open API service indexing awesome lists of open source software.

https://github.com/jke94/soccer-crud

.NET Web Api: CRUD application (Create, Read, Update and Delete) basic operations. Focus on how to implement different technologies.
https://github.com/jke94/soccer-crud

architecture csharp database docker docker-compose dotnet efcore webapi

Last synced: 3 months ago
JSON representation

.NET Web Api: CRUD application (Create, Read, Update and Delete) basic operations. Focus on how to implement different technologies.

Awesome Lists containing this project

README

          

# .NET Web API demo: A CRUD Application

.NET Web Api: CRUD application (Create, Read, Update and Delete) basic operations. Focus on how to implement different technologies.

## A. Development status.

Legend (status implementation):
- ✅ Implemented
- ❔ Pending

Current state of development:

|| Status | Description |
| :---: | :---: | :--- |
|1| ✅ | Database persistence (using EF Core as ORM). |
|2| ✅ | Docker-compose to create differnt containers for database and webapi |
|3| ✅ | Web Api Authentication |
|4| ✅ | Web Api Authorization |
|5| ✅ | Web Api Health checks |
|6| ✅ | Solution with architecture layers (services with application logic, repository pattern, data access logic and data seeded for development environment) |
|7| ❔ | FastEndpoints (pending) |
|8| ✅ | Integration tests |
|9| ❔ | Web Api response with batching and pagination |

## B. Start SoccerCrud.WebApi (docker-compose)

- Windows:

```
docker-compose.exe -f ./docker-compose.yml -p soccer-crud up --build
```

- Linux
```
sudo docker compose -f ./docker-compose.yml -p soccer-crud up --build
```

After running the last command open the URL:

- http://localhost:5112/swagger/index.html

## C. Useful information.

### C.1. - Example: ASP.NET 6.0 Batching and pagination

- [Supercharging ASP.NET 6.0 with ODATA | CRUD | Batching | Pagination](https://dev.to/renukapatil/supercharging-aspnet-60-with-odata-crud-batching-pagination-12np)

### C.2.- Example: Integration testing in .NET

- [Elevate Your .NET Testing Strategy #1: WebApplicationFactory](https://goatreview.com/dotnet-testing-webapplicationfactory/?utm_content=257166118&utm_medium=social&utm_source=linkedin&hss_channel=lcp-18055275)

### C.3.- Example: Others
- [How to Compose an ASP.NET Core Web API (.NET 6) with an MS SQL Server 2022 on Linux in Docker](https://blog.christian-schou.dk/dockerize-net-core-web-api-with-ms-sql-server/)