2023-11-16 16:38:15 +01:00
|
|
|
import type { errors } from '@strapi/utils';
|
2024-03-01 14:41:47 +01:00
|
|
|
import type { Core } from '@strapi/types';
|
2023-11-16 16:38:15 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* GET /content-api/permissions - Get the permissions of all content types
|
|
|
|
*/
|
|
|
|
export declare namespace GetPermissions {
|
|
|
|
export interface Request {
|
|
|
|
query: {};
|
|
|
|
body: {};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Response {
|
|
|
|
data: Record<string, { controllers: Record<string, string[]> }>;
|
|
|
|
error?: errors.ApplicationError;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GET /content-api/routes - Get the routes of all content types
|
|
|
|
*/
|
|
|
|
export declare namespace GetRoutes {
|
|
|
|
export interface Request {
|
|
|
|
query: {};
|
|
|
|
body: {};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Response {
|
2024-03-01 14:41:47 +01:00
|
|
|
data: Record<string, Core.Route[]>;
|
2023-11-16 16:38:15 +01:00
|
|
|
error?: errors.ApplicationError;
|
|
|
|
}
|
|
|
|
}
|