Skip to content

alexcastrodev/ibge-csharp

Repository files navigation

Introduction

Requirements

  • .NET 7
  • Docker (optional)

How to use

Using without Docker

restore

dotnet run restore

build

dotnet run build

run

dotnet run --project Ibge

Requests

Get all locations

curl -X 'GET' \
  'https://localhost:7186/v1/Locations' \
  -H 'accept: application/json'

SwaggerUI

https://localhost:7186/swagger/index.html

References

This following links are the references i read for build this project:

https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-with-mstest

https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-best-practices

https://stackoverflow.com/questions/51489111/how-to-unit-test-with-actionresultt

https://learn.microsoft.com/en-us/aspnet/core/web-api/action-return-types?view=aspnetcore-7.0&viewFallbackFrom=aspnetcore-2.2#actionresultt-type