mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
chore: openapi doc generator (#2644)
* chore: extract the type and comment from apis * chore: template code * feat: openapi * pref: openapi generator. send into public/openapi folder
This commit is contained in:
443
projects/app/public/openapi/index.html
Normal file
443
projects/app/public/openapi/index.html
Normal file
File diff suppressed because one or more lines are too long
@@ -4,13 +4,25 @@ import { ManagePermissionVal } from '@fastgpt/global/support/permission/constant
|
||||
import type { ApiRequestProps } from '@fastgpt/service/type/next';
|
||||
import { NextAPI } from '@/service/middleware/entry';
|
||||
import { OutLinkSchema } from '@fastgpt/global/support/outLink/type';
|
||||
export type OutLinkListQuery = {
|
||||
appId: string;
|
||||
type: string;
|
||||
|
||||
export const ApiMetadata = {
|
||||
name: '获取应用内所有 Outlink',
|
||||
author: 'Finley',
|
||||
version: '0.1.0'
|
||||
};
|
||||
|
||||
// Outlink
|
||||
export type OutLinkListQuery = {
|
||||
appId: string; // 应用 ID
|
||||
type: string; // 类型
|
||||
};
|
||||
|
||||
export type OutLinkListBody = {};
|
||||
|
||||
// 响应: 应用内全部 Outlink
|
||||
export type OutLinkListResponse = OutLinkSchema[];
|
||||
|
||||
// 查询应用内全部 Outlink
|
||||
async function handler(
|
||||
req: ApiRequestProps<OutLinkListBody, OutLinkListQuery>
|
||||
): Promise<OutLinkListResponse> {
|
||||
|
Reference in New Issue
Block a user