{"_id":"@adapt2move/common-angular-ts","_rev":"13-bc0cd74c0a1df11153f687a920df959d","name":"@adapt2move/common-angular-ts","dist-tags":{"latest":"1.1.5"},"versions":{"0.0.1":{"name":"@adapt2move/common-angular-ts","version":"0.0.1","author":{"name":"Stefan Schick"},"license":"ISC","_id":"@adapt2move/common-angular-ts@0.0.1","maintainers":[{"name":"michael-steinert","email":"michael.steinert@isst.fraunhofer.de"},{"name":"stefan-adapt2move","email":"stefan.schick@adapt2move.de"}],"homepage":"https://github.com/adapt2move/common#readme","bugs":{"url":"https://github.com/adapt2move/common/issues"},"dist":{"shasum":"31388a95aa917819e96527ac786b7e388eaf1cac","tarball":"https://registry.npmjs.org/@adapt2move/common-angular-ts/-/common-angular-ts-0.0.1.tgz","fileCount":53,"integrity":"sha512-wK7WG42Js68UUjLfcG2qENrz0G3TCSSOxwe7iqC4et/NxTdNAY8+gtvNfh4p7aujXe4lzrK11jvXJyRDzm7C1g==","signatures":[{"sig":"MEQCIGuSRXdKTAUCG3Dnqp8jm2Qbw66HjeV06qzsx0jt4byfAiBAik414+Oy8LTP86uFd3J5EN8PfNEV7zVcVYr4szmJhg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":420257},"main":"index.js","gitHead":"58153bd9a517e61b94c5998a1606ec328651b321","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"stefan-adapt2move","email":"stefan.schick@adapt2move.de"},"repository":{"url":"git+https://github.com/adapt2move/common.git","type":"git"},"_npmVersion":"9.7.2","description":"commonly used adapt2move typescript angular modules","directories":{},"_nodeVersion":"20.11.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/common-angular-ts_0.0.1_1707320729938_0.3988072850067017","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@adapt2move/common-angular-ts","version":"0.0.2","author":{"name":"Stefan Schick"},"license":"ISC","_id":"@adapt2move/common-angular-ts@0.0.2","maintainers":[{"name":"michael-steinert","email":"michael.steinert@isst.fraunhofer.de"},{"name":"stefan-adapt2move","email":"stefan.schick@adapt2move.de"}],"homepage":"https://github.com/adapt2move/common#readme","bugs":{"url":"https://github.com/adapt2move/common/issues"},"dist":{"shasum":"91d195ddc9aff233ffeef9d9e37ea65346d2ee8a","tarball":"https://registry.npmjs.org/@adapt2move/common-angular-ts/-/common-angular-ts-0.0.2.tgz","fileCount":52,"integrity":"sha512-V6115po9VBzBeZee/dRWfM8JuNx7V+u8mKhNN12b/ytyWEHmEYyf15k1j86mjoiW9Y91nCDIaXhya+iAB++qmw==","signatures":[{"sig":"MEYCIQD8P6eIvF3WJpuVd76V0hGIrMWOrI/bp9kjPRjU7IVIegIhAMsvhGrLQzGrQsCVQbc/E3fltEkFkUpuzhwSjhtBQqCj","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":420235},"main":"index.ts","gitHead":"58153bd9a517e61b94c5998a1606ec328651b321","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"stefan-adapt2move","email":"stefan.schick@adapt2move.de"},"repository":{"url":"git+https://github.com/adapt2move/common.git","type":"git"},"_npmVersion":"9.7.2","description":"commonly used adapt2move typescript angular modules","directories":{},"_nodeVersion":"20.11.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/common-angular-ts_0.0.2_1707373823835_0.157760417885644","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@adapt2move/common-angular-ts","version":"0.0.3","author":{"name":"Stefan Schick"},"license":"ISC","_id":"@adapt2move/common-angular-ts@0.0.3","maintainers":[{"name":"michael-steinert","email":"michael.steinert@isst.fraunhofer.de"},{"name":"stefan-adapt2move","email":"stefan.schick@adapt2move.de"}],"homepage":"https://github.com/adapt2move/common#readme","bugs":{"url":"https://github.com/adapt2move/common/issues"},"dist":{"shasum":"1547f8405ef5019f9282efe1195923729d3ce794","tarball":"https://registry.npmjs.org/@adapt2move/common-angular-ts/-/common-angular-ts-0.0.3.tgz","fileCount":53,"integrity":"sha512-GCNsgL2Cm8q+BxSsQ1H8+47IW/1b93JHsOpqwcTh+LRT9POxwM/wpULWM1JdHhgpjQdAheXxGBlJbz9OFCiSDA==","signatures":[{"sig":"MEQCICJFQAegSoTFhoB2uJ9cF+LAP4/rGHrNmZJbSqgUKR6eAiBtIhROsDeW/9d8mK8/pjYz3MSwlMM/d9k50Ziqd/tG2g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":425459},"main":"index.ts","gitHead":"3d3187be971cda936b556fd1ecf82783b401857c","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"stefan-adapt2move","email":"stefan.schick@adapt2move.de"},"repository":{"url":"git+https://github.com/adapt2move/common.git","type":"git"},"_npmVersion":"9.7.2","description":"OpenAPI typescript-angular client for Adapt2Move","directories":{},"_nodeVersion":"20.11.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/common-angular-ts_0.0.3_1708337707870_0.22752205062791075","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@adapt2move/common-angular-ts","version":"1.0.3","author":{"name":"Stefan Schick"},"license":"ISC","_id":"@adapt2move/common-angular-ts@1.0.3","maintainers":[{"name":"fheyer","email":"florian.heyer@adapt2move.de"},{"name":"t_mitti","email":"tobias.mitterfellner@iao.fraunhofer.de"},{"name":"michael-steinert","email":"michael.steinert@isst.fraunhofer.de"},{"name":"stefan-adapt2move","email":"stefan.schick@adapt2move.de"}],"homepage":"https://github.com/adapt2move/common#readme","bugs":{"url":"https://github.com/adapt2move/common/issues"},"dist":{"shasum":"dd1915a89108f579f9430790b264698cfac4f085","tarball":"https://registry.npmjs.org/@adapt2move/common-angular-ts/-/common-angular-ts-1.0.3.tgz","fileCount":54,"integrity":"sha512-7ptZWkNBQ4vGcLulDTENX/3SyoB7mRrpUqcb+yBwdwyF9hxJHGwTkT8PHWfOA7K4nv8Z7h8qkq5ipXXwFYLMCQ==","signatures":[{"sig":"MEUCIQCAo07ydiRbxl6UOmQp1ZFcMmNIiZHsMARDzGy8bxcxcAIgFYTy1F/RlIFAQrlCzzo0xz182tPd6ORzczFJiYRPnt0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":495799},"main":"index.ts","gitHead":"f73680752f1d72a1ab58ce8b45a6d99af390f23e","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"t_mitti","email":"tobias.mitterfellner@iao.fraunhofer.de"},"repository":{"url":"git+https://github.com/adapt2move/common.git","type":"git"},"_npmVersion":"9.2.0","description":"OpenAPI typescript-angular client for Adapt2Move","directories":{},"_nodeVersion":"20.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/common-angular-ts_1.0.3_1721746854617_0.2997188926793406","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@adapt2move/common-angular-ts","version":"1.1.0","author":{"name":"Stefan Schick"},"license":"ISC","_id":"@adapt2move/common-angular-ts@1.1.0","maintainers":[{"name":"fheyer","email":"florian.heyer@adapt2move.de"},{"name":"t_mitti","email":"tobias.mitterfellner@iao.fraunhofer.de"},{"name":"michael-steinert","email":"michael.steinert@isst.fraunhofer.de"},{"name":"stefan-adapt2move","email":"stefan.schick@adapt2move.de"}],"homepage":"https://github.com/adapt2move/common#readme","bugs":{"url":"https://github.com/adapt2move/common/issues"},"dist":{"shasum":"f8beebd5e9e18c6661629b549369410da149e776","tarball":"https://registry.npmjs.org/@adapt2move/common-angular-ts/-/common-angular-ts-1.1.0.tgz","fileCount":56,"integrity":"sha512-71qdF0R3FX4PKa6ay/pesEIjoCEL3cBn4JZ3zCk5V9lKPNYNVWihPchyG++vpg2WvsCw+oNHcgHeeomhA1lQzA==","signatures":[{"sig":"MEYCIQDBbmt8rgp7XOJwc2mjHwK3KWR8Og1SniGeyEcTsmYJ1AIhAI72Gc0dThcOdhC8OzTOr8Pe6dUYfxlC//TF77PwPvXI","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":503933},"main":"index.ts","gitHead":"b92542e199b084c7770e22c4e38b0fdaff6afb9e","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"t_mitti","email":"tobias.mitterfellner@iao.fraunhofer.de"},"repository":{"url":"git+https://github.com/adapt2move/common.git","type":"git"},"_npmVersion":"9.2.0","description":"OpenAPI typescript-angular client for Adapt2Move","directories":{},"_nodeVersion":"20.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/common-angular-ts_1.1.0_1721834426053_0.6293157778172462","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@adapt2move/common-angular-ts","version":"1.1.1","author":{"name":"Stefan Schick"},"license":"ISC","_id":"@adapt2move/common-angular-ts@1.1.1","maintainers":[{"name":"fheyer","email":"florian.heyer@adapt2move.de"},{"name":"t_mitti","email":"tobias.mitterfellner@iao.fraunhofer.de"},{"name":"michael-steinert","email":"michael.steinert@isst.fraunhofer.de"},{"name":"stefan-adapt2move","email":"stefan.schick@adapt2move.de"}],"homepage":"https://github.com/adapt2move/common#readme","bugs":{"url":"https://github.com/adapt2move/common/issues"},"dist":{"shasum":"e7a36eb9e2717ce580140c1ca2e0a9153ec683ed","tarball":"https://registry.npmjs.org/@adapt2move/common-angular-ts/-/common-angular-ts-1.1.1.tgz","fileCount":56,"integrity":"sha512-SjgY2lCENKp+IZm/TmdN7JU089gn2Yre45WE/q8mx6DeWirUK7aR900OzCUlVVG9CDk5Yg2JmNviHjQ5Nt4BJA==","signatures":[{"sig":"MEUCIAks5EDjlq5d9YqmW7LBvk3fNc1AIyEp36N7zbAjJ9IQAiEA4JCsGHJdlpOiCvIpvPTwGaq0gYbKnyfJtPSsg+iTYTw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":503933},"main":"index.ts","gitHead":"d1cbcdc59254f337121be6986ea6ea0e0c068f16","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"t_mitti","email":"tobias.mitterfellner@iao.fraunhofer.de"},"repository":{"url":"git+https://github.com/adapt2move/common.git","type":"git"},"_npmVersion":"9.2.0","description":"OpenAPI typescript-angular client for Adapt2Move","directories":{},"_nodeVersion":"20.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/common-angular-ts_1.1.1_1721984630624_0.12392118717182088","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"@adapt2move/common-angular-ts","version":"1.1.3","author":{"name":"Stefan Schick"},"license":"ISC","_id":"@adapt2move/common-angular-ts@1.1.3","maintainers":[{"name":"fheyer","email":"florian.heyer@adapt2move.de"},{"name":"t_mitti","email":"tobias.mitterfellner@iao.fraunhofer.de"},{"name":"michael-steinert","email":"michael.steinert@isst.fraunhofer.de"},{"name":"stefan-adapt2move","email":"stefan.schick@adapt2move.de"}],"homepage":"https://github.com/adapt2move/common#readme","bugs":{"url":"https://github.com/adapt2move/common/issues"},"dist":{"shasum":"e23cd79e82ddb9c051468b7159113d4567697359","tarball":"https://registry.npmjs.org/@adapt2move/common-angular-ts/-/common-angular-ts-1.1.3.tgz","fileCount":56,"integrity":"sha512-QvvZHiYmzL3lkRmkQ6v/iOdZxMFBPYD9KMgCKCCb8SNfSzpuVnGrl3+cpoHUtZFJ3ve1o9yNZgNX6FHBReeb4Q==","signatures":[{"sig":"MEUCIDMwlssKlxn3ti96tDk/arsGLFJuumxKYL4pAcRKqjR4AiEA4fDPqY6btY47Qmo3h3t+mZ+Ncntwm92v8mlu5Jupbhc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":503930},"main":"index.ts","gitHead":"e08f559258e6d32d11a02e86624f1f7e6e4fc5bc","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"t_mitti","email":"tobias.mitterfellner@iao.fraunhofer.de"},"repository":{"url":"git+https://github.com/adapt2move/common.git","type":"git"},"_npmVersion":"9.2.0","description":"OpenAPI typescript-angular client for Adapt2Move","directories":{},"_nodeVersion":"20.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/common-angular-ts_1.1.3_1722260243400_0.17629188190782052","host":"s3://npm-registry-packages"}},"1.1.4":{"name":"@adapt2move/common-angular-ts","version":"1.1.4","author":{"name":"Stefan Schick"},"license":"ISC","_id":"@adapt2move/common-angular-ts@1.1.4","maintainers":[{"name":"fheyer","email":"florian.heyer@adapt2move.de"},{"name":"t_mitti","email":"tobias.mitterfellner@iao.fraunhofer.de"},{"name":"stefan-adapt2move","email":"stefan.schick@adapt2move.de"}],"homepage":"https://github.com/adapt2move/common#readme","bugs":{"url":"https://github.com/adapt2move/common/issues"},"dist":{"shasum":"9515c79596d13513d217a7c1d06da96d5327078c","tarball":"https://registry.npmjs.org/@adapt2move/common-angular-ts/-/common-angular-ts-1.1.4.tgz","fileCount":58,"integrity":"sha512-V4q7JHBykZxy08EFzdJ0kJOYdoHBbhOa0IVgMLdShl+UQHfCoVFQWamWcxwRB1DQksBbPpLEL6cXa6aVomC5tA==","signatures":[{"sig":"MEQCIGq1dGTG+Kj4rZk/ncmzfPZ9tfDzJSgO/hreGUzvNLYtAiAyN0XAuHN0UX7AssQqkoxsbRDEvBEZ7xyMaWqyuMHJTg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":521852},"main":"index.ts","gitHead":"eb581b5b956754759ee46138ec53be6633cbb59c","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"t_mitti","email":"tobias.mitterfellner@iao.fraunhofer.de"},"repository":{"url":"git+https://github.com/adapt2move/common.git","type":"git"},"_npmVersion":"9.2.0","description":"OpenAPI typescript-angular client for Adapt2Move","directories":{},"_nodeVersion":"20.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/common-angular-ts_1.1.4_1724062495874_0.8885991779695097","host":"s3://npm-registry-packages"}},"1.1.5":{"name":"@adapt2move/common-angular-ts","version":"1.1.5","author":{"name":"Stefan Schick"},"license":"ISC","_id":"@adapt2move/common-angular-ts@1.1.5","maintainers":[{"name":"fheyer","email":"florian.heyer@adapt2move.de"},{"name":"t_mitti","email":"tobias.mitterfellner@iao.fraunhofer.de"},{"name":"stefan-adapt2move","email":"stefan.schick@adapt2move.de"}],"homepage":"https://github.com/adapt2move/common#readme","bugs":{"url":"https://github.com/adapt2move/common/issues"},"dist":{"shasum":"31908aa91e2a332a7c237605a5bf6dc0f551a087","tarball":"https://registry.npmjs.org/@adapt2move/common-angular-ts/-/common-angular-ts-1.1.5.tgz","fileCount":58,"integrity":"sha512-R/5+efqV20lrVOkXYKGGarctEYmkR0Mg3tPZ2qiCk8LHN+bSGyTMBl/FNrDkNZykNtj6aagk+arKHSkmrKX/mg==","signatures":[{"sig":"MEQCIBNnIuq0/ZATN0TT+a7FDZL605z2qlvZChBVneuo5Oj3AiAYjFRzCP/3klsNfWT13wTmxBRxCdmnCnxXc1yzsUcT+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":522092},"main":"index.ts","gitHead":"eb581b5b956754759ee46138ec53be6633cbb59c","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"t_mitti","email":"tobias.mitterfellner@iao.fraunhofer.de"},"repository":{"url":"git+https://github.com/adapt2move/common.git","type":"git"},"_npmVersion":"9.2.0","description":"OpenAPI typescript-angular client for Adapt2Move","directories":{},"_nodeVersion":"20.15.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/common-angular-ts_1.1.5_1724335911682_0.965258903603329","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-02-07T15:45:29.850Z","modified":"2025-04-21T10:15:55.484Z","0.0.1":"2024-02-07T15:45:30.106Z","0.0.2":"2024-02-08T06:30:24.043Z","0.0.3":"2024-02-19T10:15:08.052Z","1.0.3":"2024-07-23T15:00:54.882Z","1.1.0":"2024-07-24T15:20:26.252Z","1.1.1":"2024-07-26T09:03:50.874Z","1.1.3":"2024-07-29T13:37:23.613Z","1.1.4":"2024-08-19T10:14:56.061Z","1.1.5":"2024-08-22T14:11:51.842Z"},"bugs":{"url":"https://github.com/adapt2move/common/issues"},"author":{"name":"Stefan Schick"},"license":"ISC","homepage":"https://github.com/adapt2move/common#readme","repository":{"url":"git+https://github.com/adapt2move/common.git","type":"git"},"description":"OpenAPI typescript-angular client for Adapt2Move","maintainers":[{"email":"stefan.schick@adapt2move.de","name":"stefan-adapt2move"},{"email":"tobias.mitterfellner@iao.fraunhofer.de","name":"t_mitti"}],"readme":"## @\n\n### Building\n\nTo install the required dependencies and to build the typescript sources run:\n```\nnpm install\nnpm run build\n```\n\n### publishing\n\nFirst build the package then run ```npm publish dist``` (don't forget to specify the `dist` folder!)\n\n### consuming\n\nNavigate to the folder of your consuming project and run one of next commands.\n\n_published:_\n\n```\nnpm install @ --save\n```\n\n_without publishing (not recommended):_\n\n```\nnpm install PATH_TO_GENERATED_PACKAGE/dist.tgz --save\n```\n\n_It's important to take the tgz file, otherwise you'll get trouble with links on windows_\n\n_using `npm link`:_\n\nIn PATH_TO_GENERATED_PACKAGE/dist:\n```\nnpm link\n```\n\nIn your project:\n```\nnpm link \n```\n\n__Note for Windows users:__ The Angular CLI has troubles to use linked npm packages.\nPlease refer to this issue https://github.com/angular/angular-cli/issues/8284 for a solution / workaround.\nPublished packages are not effected by this issue.\n\n\n#### General usage\n\nIn your Angular project:\n\n\n```\n// without configuring providers\nimport { ApiModule } from '';\nimport { HttpClientModule } from '@angular/common/http';\n\n@NgModule({\n    imports: [\n        ApiModule,\n        // make sure to import the HttpClientModule in the AppModule only,\n        // see https://github.com/angular/angular/issues/20575\n        HttpClientModule\n    ],\n    declarations: [ AppComponent ],\n    providers: [],\n    bootstrap: [ AppComponent ]\n})\nexport class AppModule {}\n```\n\n```\n// configuring providers\nimport { ApiModule, Configuration, ConfigurationParameters } from '';\n\nexport function apiConfigFactory (): Configuration {\n  const params: ConfigurationParameters = {\n    // set configuration parameters here.\n  }\n  return new Configuration(params);\n}\n\n@NgModule({\n    imports: [ ApiModule.forRoot(apiConfigFactory) ],\n    declarations: [ AppComponent ],\n    providers: [],\n    bootstrap: [ AppComponent ]\n})\nexport class AppModule {}\n```\n\n```\n// configuring providers with an authentication service that manages your access tokens\nimport { ApiModule, Configuration } from '';\n\n@NgModule({\n    imports: [ ApiModule ],\n    declarations: [ AppComponent ],\n    providers: [\n      {\n        provide: Configuration,\n        useFactory: (authService: AuthService) => new Configuration(\n          {\n            basePath: environment.apiUrl,\n            accessToken: authService.getAccessToken.bind(authService)\n          }\n        ),\n        deps: [AuthService],\n        multi: false\n      }\n    ],\n    bootstrap: [ AppComponent ]\n})\nexport class AppModule {}\n```\n\n```\nimport { DefaultApi } from '';\n\nexport class AppComponent {\n    constructor(private apiGateway: DefaultApi) { }\n}\n```\n\nNote: The ApiModule is restricted to being instantiated once app wide.\nThis is to ensure that all services are treated as singletons.\n\n#### Using multiple OpenAPI files / APIs / ApiModules\nIn order to use multiple `ApiModules` generated from different OpenAPI files,\nyou can create an alias name when importing the modules\nin order to avoid naming conflicts:\n```\nimport { ApiModule } from 'my-api-path';\nimport { ApiModule as OtherApiModule } from 'my-other-api-path';\nimport { HttpClientModule } from '@angular/common/http';\n\n@NgModule({\n  imports: [\n    ApiModule,\n    OtherApiModule,\n    // make sure to import the HttpClientModule in the AppModule only,\n    // see https://github.com/angular/angular/issues/20575\n    HttpClientModule\n  ]\n})\nexport class AppModule {\n\n}\n```\n\n\n### Set service base path\nIf different than the generated base path, during app bootstrap, you can provide the base path to your service.\n\n```\nimport { BASE_PATH } from '';\n\nbootstrap(AppComponent, [\n    { provide: BASE_PATH, useValue: 'https://your-web-service.com' },\n]);\n```\nor\n\n```\nimport { BASE_PATH } from '';\n\n@NgModule({\n    imports: [],\n    declarations: [ AppComponent ],\n    providers: [ provide: BASE_PATH, useValue: 'https://your-web-service.com' ],\n    bootstrap: [ AppComponent ]\n})\nexport class AppModule {}\n```\n\n\n#### Using @angular/cli\nFirst extend your `src/environments/*.ts` files by adding the corresponding base path:\n\n```\nexport const environment = {\n  production: false,\n  API_BASE_PATH: 'http://127.0.0.1:8080'\n};\n```\n\nIn the src/app/app.module.ts:\n```\nimport { BASE_PATH } from '';\nimport { environment } from '../environments/environment';\n\n@NgModule({\n  declarations: [\n    AppComponent\n  ],\n  imports: [ ],\n  providers: [{ provide: BASE_PATH, useValue: environment.API_BASE_PATH }],\n  bootstrap: [ AppComponent ]\n})\nexport class AppModule { }\n```\n\n### Customizing path parameter encoding\n\nWithout further customization, only [path-parameters][parameter-locations-url] of [style][style-values-url] 'simple'\nand Dates for format 'date-time' are encoded correctly.\n\nOther styles (e.g. \"matrix\") are not that easy to encode\nand thus are best delegated to other libraries (e.g.: [@honoluluhenk/http-param-expander]).\n\nTo implement your own parameter encoding (or call another library),\npass an arrow-function or method-reference to the `encodeParam` property of the Configuration-object\n(see [General Usage](#general-usage) above).\n\nExample value for use in your Configuration-Provider:\n```typescript\nnew Configuration({\n    encodeParam: (param: Param) => myFancyParamEncoder(param),\n})\n```\n\n[parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations\n[style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values\n[@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander\n","readmeFilename":"README.md"}