mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
**Related issue:** Resolves #42879 * Full UI for API-only user management: create/edit flows, fleet/role assignment, selectable API endpoint permissions, and one-time API key display. * New reusable components: API user form, endpoint selector, API access section, and API key presentation. * Admin workflow switched from in-page modals to dedicated pages and streamlined action dropdown navigation. * Layout and styling refinements for user management, team lists, and dropdown behaviors. --------- Co-authored-by: Juan Fernandez <juan@fleetdm.com>
12 lines
319 B
TypeScript
12 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}`;
|