mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +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>
20 lines
489 B
TypeScript
20 lines
489 B
TypeScript
import sendRequest from "services";
|
|
import endpoints from "utilities/endpoints";
|
|
|
|
import { IApiEndpoint } from "interfaces/api_endpoint";
|
|
|
|
export interface IListApiEndpointsResponse {
|
|
api_endpoints: IApiEndpoint[];
|
|
}
|
|
|
|
export default {
|
|
loadAll: async (): Promise<IApiEndpoint[]> => {
|
|
const { REST_API_ENDPOINTS } = endpoints;
|
|
|
|
const response: IListApiEndpointsResponse = await sendRequest(
|
|
"GET",
|
|
REST_API_ENDPOINTS
|
|
);
|
|
return response.api_endpoints;
|
|
},
|
|
};
|