Access Omnibasis API from javascript or typescript application like Angular. 

Visit https://github.com/Omnibasis/omnibasis-typescript-api  to download.

You can generate library with all AJAX requests to call server API. It's automatically generated by nswag tool using swagger.

  • Download nswag directory intor your project
  • Add nswag librariry to your node-modules list as described in nswag
  • Run nswag/refresh.bat file

Generated code is located in shared/service-proxies/service-proxies.ts file. You should not make manual change in this file since it will be overwritten on the next code generation. You can change where nswag puts a generated code by updating service.config.nswag

Refreshing Service Proxies

While Nswag automatically generate proxy files, it does not refresh service-proxies.module.ts. If you want to use new APIs which has been added since you generated the files, you should run nswag/refresh.bat to update service proxies.