Interface ApiInterface

Main API interface which shall contain all sub API objects.

interface ApiInterface {
    about: AboutApiInterface;
    auth: AuthApiInterface;
    dataset: DatasetApiInterface;
    image: ImageApiInterface;
    legacyApi: IvionInterface;
    lib: ThirdPartyLibraryInterface;
    license: LicenseApiInterface;
    mesh: MeshApiInterface;
    mode: ModeApiInterface;
    poi: PoiApiInterface;
    publishing: PublishingApiInterface;
    routing: RouteApiInterface;
    share: ShareApiInterface;
    site: SiteApiInterface;
    siteModel: SiteModelApiInterface;
    transform: TransformApiInterface;
    ui: UiApiInterface;
    view: ViewApiInterface;
    isLicensed(): boolean;
    isPrivate(): Promise<boolean>;
}

Properties

legacyApi: IvionInterface

Methods

  • Checks whether the API feature is enabled for this instance. If not licensed the API can not be used and will throw errors if attempted. Therefore use this method to check first whether other API calls will work.

    Returns boolean

  • Whether private mode is on or not. If an instance is private, only logged in users will have access to data.

    Returns Promise<boolean>