This .Net Core application is meant to represent a REST microservice. It will be completely independent from any consumer application to include being deployed to its own Azure App Service.
- Configure APIM to provide one external facing endpoint while allowing me to make changes to the service without requiring consumers to change their endpoints.
- Grow the service to be something more interesting than a static weather forecaster.
- Documentation
- https://docs.microsoft.com/en-us/aspnet/core/tutorials/getting-started-with-nswag?view=aspnetcore-3.1&tabs=visual-studio
- Purpose
- Can generate Swagger UI on the API side. Can use the NSwagStudio tool to generate code from the Swagger UI to be consumed by client applications.
- Launch the app. Navigate to:
- http://localhost:/swagger to view the Swagger UI.
http://localhost:/swagger/v1/swagger.json to view the Swagger specification.
- NuGet Packages
- Microsoft.EntityFrameworkCore.SqlServer
Microsoft.EntityFrameworkCore.Tools - Code-first Workflow
- Update models in code
Use PowerShell from within Visual Studio to execute Update-Database