All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.atlan.api.AtlasEndpoint Maven / Gradle / Ivy

/* SPDX-License-Identifier: Apache-2.0
   Copyright 2023 Atlan Pte. Ltd. */
package com.atlan.api;

import com.atlan.AtlanClient;
import com.atlan.exception.ApiConnectionException;

/**
 * Base class for all API endpoints that ultimately access the underlying metastore.
 */
public abstract class AtlasEndpoint extends AbstractEndpoint {
    private static final String PREFIX = "/api/meta";
    private static final String SERVICE = "http://atlas-service-atlas.atlas.svc.cluster.local/api/atlas/v2";

    protected AtlasEndpoint(AtlanClient client) {
        super(client);
    }

    protected String getBaseUrl() throws ApiConnectionException {
        return getBaseUrl(SERVICE, PREFIX);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy