mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 12:20:34 +00:00
24 lines
471 B
TypeScript
24 lines
471 B
TypeScript
export type ApiMetaData = {
|
|
name?: string;
|
|
author?: string;
|
|
version?: string;
|
|
};
|
|
|
|
export type ApiType = {
|
|
description?: string;
|
|
authorization?: 'apikey' | 'token';
|
|
path: string;
|
|
url: string;
|
|
query?: itemType | itemType[];
|
|
body?: itemType | itemType[];
|
|
response?: itemType | itemType[];
|
|
method: 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
} & ApiMetaData;
|
|
|
|
export type itemType = {
|
|
comment?: string;
|
|
key?: string;
|
|
type: string;
|
|
required?: boolean;
|
|
};
|