https://github.com/nemeslaszlo/dotnet-minimal-api
This repository contains a Minimal API (CRUD) with .NET 6 as a practise project with tests.
https://github.com/nemeslaszlo/dotnet-minimal-api
crud-api dotnet minimal-api nsubstitute xunit-tests
Last synced: 2 months ago
JSON representation
This repository contains a Minimal API (CRUD) with .NET 6 as a practise project with tests.
- Host: GitHub
- URL: https://github.com/nemeslaszlo/dotnet-minimal-api
- Owner: NemesLaszlo
- Created: 2021-11-09T19:41:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-10T00:18:36.000Z (over 4 years ago)
- Last Synced: 2025-03-24T02:44:32.138Z (about 1 year ago)
- Topics: crud-api, dotnet, minimal-api, nsubstitute, xunit-tests
- Language: C#
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dotnet-Minimal-API
This repository contains a Minimal API (CRUD) with .NET 6 as a practise project.
### Tech Stack - Backend
- .NET 6
- Swagger
- FluentValidation
- FluentAssertions
- Security with JSON Web Token
- NSubstitute
- XUnit
### Endpoints of the Backend
| Entity | Type | URL | Description | Success | Authorize |
| -------- | ------ | --------------- | ----------------------- | ----------- | --------- |
| Customer | GET | /customers | Get all customers. | 200 OK | No |
| | GET | /customers/{id} | Get customer by Id. | 200 OK | No |
| | POST | /customers | Create a customer. | 201 CREATED | No |
| | PUT | /customers/{id} | Update a customer by Id | 200 OK | Yes |
| | DELETE | /customers/{id} | Delete a customer by Id | 200 OK | Yes |