@dasch-swiss/dsp-js
Version:
TypeScript client library for DSP-API
25 lines • 768 B
JavaScript
import { Endpoint } from '../endpoint';
import { HealthEndpointSystem } from './health/health-endpoint-system';
/**
* A client API for administering Knora.
*
* @category Endpoint System
*/
export class SystemEndpoint extends Endpoint {
static { this.PATH_HEALTH = '/health'; }
/**
* Constructor.
* Sets up all endpoints for this endpoint.
*
* @param knoraApiConfig
* @param path
*/
constructor(knoraApiConfig, path) {
super(knoraApiConfig, path);
this.knoraApiConfig = knoraApiConfig;
this.path = path;
// Instantiate the endpoints
this.healthEndpoint = new HealthEndpointSystem(knoraApiConfig, path + SystemEndpoint.PATH_HEALTH);
}
}
//# sourceMappingURL=system-endpoint.js.map