UNPKG

@dasch-swiss/dsp-js

Version:

JavaScript library that handles API requests to Knora

44 lines 1.71 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { Endpoint } from "../endpoint"; import { HealthEndpointSystem } from "./health/health-endpoint-system"; /** * A client API for administering Knora. * * @category Endpoint System */ var SystemEndpoint = /** @class */ (function (_super) { __extends(SystemEndpoint, _super); /** * Constructor. * Sets up all endpoints for this endpoint. * * @param knoraApiConfig * @param path */ function SystemEndpoint(knoraApiConfig, path) { var _this = _super.call(this, knoraApiConfig, path) || this; _this.knoraApiConfig = knoraApiConfig; _this.path = path; // Instantiate the endpoints _this.healthEndpoint = new HealthEndpointSystem(knoraApiConfig, path + SystemEndpoint.PATH_HEALTH); return _this; } SystemEndpoint.PATH_HEALTH = "/health"; return SystemEndpoint; }(Endpoint)); export { SystemEndpoint }; //# sourceMappingURL=system-endpoint.js.map