Skip to content
This repository has been archived by the owner on Oct 14, 2021. It is now read-only.
/ car-themed-API Public archive

.NET Core 3.1 API to meet CQRS, pagination, MediatR, integration tests. Can be used to practice front-end development.

License

Notifications You must be signed in to change notification settings

trolit/car-themed-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Car themed Fake API

Repository stores .NET Core 3.1 Web API training solution in theme "Authorized Car Service"(ordering parts from dealers, servicing history, cars, drivers, mechanics and dealers database etc.) mainly to meet: CQRS design pattern; way to implement pagination; integration tests; MediatR. Big thanks to Nick Chapsas for his great explanations on these things(check his youtube too here). Only 2 from 6 models are implemented so if someone wants to try for themselves, go ahead. API can also be used to exercise with frontend implementation. Validation from FV relies on ValidationException throwing which I don't like but didn't resolve problem with TResponse combined in some result class for ValidationBehaviour using IPipelineBehavior :{

Setup

1. Download project as zip file/use git clone <URL> command.
2. Open project with VS IDE.
3. Open PMC(Package Manager Console).
4. Set Data-Layer library as default project for PMC.
5. Write & run update-database command.
6. Compile & run project.
7. Execute DataGenerator controller POST action through Swagger.
8. Voilà :)

Template generated using EzGitDoc

About

.NET Core 3.1 API to meet CQRS, pagination, MediatR, integration tests. Can be used to practice front-end development.

Topics

Resources

License

Stars

Watchers

Forks

Languages