Skip to content

SashenGovender/ClientLibraryGeneration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Client Library Generation

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.

Source Code

The Angular App and Api are stock standard projects with minor changes.

Angular App

  • App Module provider for API_BASE_URL.
  • environment settings.
  • A button click to trigger the http client requests.

Api

  • CORS settings.
  • NSwag configuration file as per references.
  • NSWag OpenApi code generation as per references.

References

Author

Sashen Govender