Skip to content

An example DotNet API with some basic patterns for testability and extensibility

License

Notifications You must be signed in to change notification settings

tspence/example-api

Repository files navigation

Example DotNet API

This example API demonstrates a variety of techniques used in designing a maintainable and resilient API.

Developer Setup

To set up this API on a development computer:

  • Install DotNet 7.0 and Docker Desktop
  • Build the API solution
> dotnet build
  • Construct the database using Docker (replace the security credentials with your chosen ones)
> docker pull postgres
> docker run -p 5432:5432 --name some-postgres -e POSTGRES_PASSWORD=apipassword -e POSTGRES_USER=apiuser -d postgres
  • Execute the database migration script
> dotnet ef database update --project .\ExampleDataLayer\ExampleDataLayer.csproj
  • Launch the API
> dotnet run --project .\ExampleApi\ExampleApi.csproj

Articles

About

An example DotNet API with some basic patterns for testability and extensibility

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published