tachybase_todo/packages/plugins/@tachybase/plugin-api-doc/src/swagger.ts

43 lines
831 B
TypeScript

export default {
info: {
title: 'TachyBase API - API doc plugin',
},
paths: {
'/swagger:getUrls': {
get: {
description: 'Get all api-doc destination',
tags: ['swagger'],
responses: {
200: {
description: 'successful operation',
content: {
'application/json': {
schema: {
$ref: '#/components/responses/SwaggerUrls',
},
},
},
},
},
},
},
},
components: {
responses: {
SwaggerUrls: {
type: 'array',
items: {
properties: {
name: {
type: 'string',
},
url: {
type: 'string',
},
},
},
},
},
},
};