@knora/api
Version:
JavaScript library that handles API requests to Knora
37 lines (36 loc) • 1.53 kB
TypeScript
import { ListNodeV2Cache } from "../../cache/ListNodeV2Cache";
import { OntologyCache } from "../../cache/OntologyCache";
import { KnoraApiConfig } from "../../knora-api-config";
import { Endpoint } from "../endpoint";
import { AuthenticationEndpoint } from "./authentication/authentication-endpoint";
import { ListsEndpoint } from "./list/lists-endpoint";
import { OntologiesEndpoint } from "./ontology/ontologies-endpoint";
import { ResourcesEndpoint } from "./resource/resources-endpoint";
import { SearchEndpoint } from "./search/search-endpoint";
import { ValuesEndpoint } from "./values/values-endpoint";
/**
* Defines the V2 endpoint of the Knora API.
*/
export declare class V2Endpoint extends Endpoint {
protected readonly knoraApiConfig: KnoraApiConfig;
protected readonly path: string;
static readonly PATH_AUTHENTICATION = "/authentication";
static readonly PATH_ONTOLOGIES = "/ontologies";
static readonly PATH_RESOURCES = "/resources";
static readonly PATH_VALUES = "/values";
readonly auth: AuthenticationEndpoint;
readonly onto: OntologiesEndpoint;
readonly res: ResourcesEndpoint;
readonly values: ValuesEndpoint;
readonly list: ListsEndpoint;
readonly search: SearchEndpoint;
readonly ontologyCache: OntologyCache;
readonly listNodeCache: ListNodeV2Cache;
/**
* Constructor.
* Sets up all endpoints for this endpoint.
* @param knoraApiConfig
* @param path
*/
constructor(knoraApiConfig: KnoraApiConfig, path: string);
}