synapse-react-client
Version:
[](https://travis-ci.com/Sage-Bionetworks/Synapse-React-Client) [](https://badge.fury.io/js/synaps
36 lines (35 loc) • 1.93 kB
TypeScript
/**
* Separating API endpoints into their own constants file
*/
export declare const BACKEND_ENDPOINT: string;
export declare const REPO = "/repo/v1";
export declare const AUTH = "/auth/v1";
export declare const FILE = "/file/v1";
export declare const ENTITY: string;
export declare const ENTITY_ID: (id: string | number) => string;
/**
* Some services allow (but do not require) you to specify the version in the path.
*/
export declare const ENTITY_ID_VERSION: (id: string | number, version?: string | number | undefined) => string;
export declare const ENTITY_ID_VERSIONS: (id: string | number) => string;
export declare const ENTITY_BUNDLE_V2: (id: string | number, version?: string | number | undefined) => string;
export declare const ENTITY_ACCESS: (id: string | number) => string;
export declare const ENTITY_HEADERS: string;
export declare const ENTITY_JSON: (id: string | number) => string;
export declare const ENTITY_SCHEMA: (id: string | number) => string;
export declare const ENTITY_SCHEMA_BINDING: (id: string | number) => string;
export declare const ENTITY_SCHEMA_VALIDATION: (id: string | number) => string;
export declare const USER_PROFILE_ENDPOINT: string;
export declare const SCHEMA: string;
export declare const REGISTERED_SCHEMA: string;
export declare const REGISTERED_SCHEMA_ID: (schema$id: string | number) => string;
export declare const SCHEMA_VALIDATION_START: string;
export declare const SCHEMA_VALIDATION_GET: (asyncJobId: string | number) => string;
export declare const USER: string;
export declare const USER_BUNDLE: string;
export declare const USER_ID: (id: string | number) => string;
export declare const USER_ID_BUNDLE: (id: string | number) => string;
export declare const USER_PROFILE: string;
export declare const USER_PROFILE_ID: (id: string | number) => string;
export declare const ACCESS_REQUIREMENT_BY_ID: (id: string | number) => string;
export declare const FAVORITES: string;