mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
13 lines
319 B
TypeScript
13 lines
319 B
TypeScript
|
|
export interface IApiEndpointRef {
|
||
|
|
method: string;
|
||
|
|
path: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface IApiEndpoint extends IApiEndpointRef {
|
||
|
|
display_name: string;
|
||
|
|
deprecated: boolean;
|
||
|
|
}
|
||
|
|
|
||
|
|
/** Unique key for an endpoint since there's no `id` field */
|
||
|
|
export const endpointKey = (ep: IApiEndpointRef) => `${ep.method} ${ep.path}`;
|