This project demonstrated the following:
- Generate a typescript sdk client as an artefact of the Api build process which uses Nswag MS Build nuget package.
- Use the auto-generate client to execute API requests on an Angular App.
The Angular App and Api are stock standard projects with minor changes.
- App Module provider for API_BASE_URL.
- environment settings.
- A button click to trigger the http client requests.
- CORS settings.
- NSwag configuration file as per references.
- NSWag OpenApi code generation as per references.
- Sql Server Management Studio
- nswagstudio save configuration file
- getting started with nswag
- Nswag Issues
- NSwag.MSBuild Wiki
- NSwag Configuration Document
Sashen Govender