@softwareag/applinx-rest-apis

client for applinx rest-api

Usage no npm install needed!

<script type="module">
  import softwareagApplinxRestApis from 'https://cdn.skypack.dev/@softwareag/applinx-rest-apis';
</script>

README

@softwareag/applinx-rest-client@10.11.1

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-client';
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-client';

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-client';

export class AppComponent {
     constructor(private sessionService: SessionService) { }
}

License of this package

Apache-2.0

Copyrights and Licenses of dependencies

See file in package Third-Party-Terms-of-Dependencies.pdf