@softwareag/applinx-rest-apis
v10.15.4
Published
client for applinx rest-api
Downloads
8
Maintainers
Readme
Software AG ApplinX REST API 10.15.4
Description
Angular client for ApplinX REST API. This package may be used by the Angular web emulation project to communicate with hosts through the ApplinX REST API.
Format
This library implements the Angular Package Format (APF).
Release Notes
The version of this package correlates with the ApplinX version. You should use the package version that matches your ApplinX installation version.
General usage
In your Angular project:
// without configuring providers
import { ApiModule } from '@softwareag/applinx-rest-apis';
import { HttpClientModule } from '@angular/common/http';
@NgModule({
imports: [
ApiModule,
// make sure to import the HttpClientModule in the AppModule only,
// see https://github.com/angular/angular/issues/20575
HttpClientModule
],
declarations: [ AppComponent ],
providers: [],
bootstrap: [ AppComponent ]
})
export class AppModule {}
// configuring providers
import { ApiModule, Configuration, ConfigurationParameters } from '@softwareag/applinx-rest-apis';
export function apiConfigFactory (): Configuration => {
const params: ConfigurationParameters = {
// set configuration parameters here.
}
return new Configuration(params);
}
@NgModule({
imports: [ ApiModule.forRoot(apiConfigFactory) ],
declarations: [ AppComponent ],
providers: [],
bootstrap: [ AppComponent ]
})
export class AppModule {}
import { SessionService } from '@softwareag/applinx-rest-apis';
export class AppComponent {
constructor(private sessionService: SessionService) { }
}
License of this package
Copyrights and Licenses of dependencies
See file in package Third-Party-Terms-of-Dependencies.pdf