@monsenso/user-api
JavaScript and TypeScript client for Monsenso's UserService.
Using the client
- Provide the base url of the UserService the client shall target, e.g.:
import { AccountModuleApi, BASE_URL } from '@monsenso/account-api'
@NgModule({
imports: [
AccountApiModule
],
providers: [
{ provide: BASE_URL, useValue: 'https://user.dev.monsenso.com' }
]
})
export class MyModule { ... }
- The
UserApi
class contains a function for each operation supported by the
UserService.
Generating the client
cd client
yarn
yarn generate