1 Star 0 Fork 13

zase9412/koa-swagger

forked from kaikai/koa-swagger 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
swagger.json 1.58 KB
一键复制 编辑 原始数据 按行查看 历史
kaikai 提交于 2018-07-04 14:35 . 项目提交
swagger: "2.0"
info:
version: "0.0.1"
title: "react-talkweb"
host: localhost:8881
tags:
- name: "test"
description: "测试接口"
paths:
/test/login:
post:
tags:
- "test"
summary: "登录接口"
parameters:
- name: "param"
in: "body"
description: '登录接口参数'
required: true
schema:
$ref: '#/definitions/loginParam'
responses:
200:
description: "Success"
/test/portal:
post:
tags:
- "test"
summary: "选择系统接口"
parameters:
- name: "param"
in: "body"
description: "选择系统接口参数"
required: true
schema:
$ref: '#/definitions/portalParam'
responses:
200:
description: "Success"
/test/home:
post:
tags:
- "test"
summary: "首页接口"
parameters:
- name: "param"
in: "body"
description: "首页接口参数"
required: true
schema:
$ref: '#/definitions/homeParam'
responses:
200:
description: Success
definitions:
loginParam:
properties:
username:
type: "string"
default: "admin"
password:
type: "string"
default: "test@123"
required:
- "username"
- "password"
portalParam:
properties:
id:
type: "string"
required:
- "id"
homeParam:
properties:
userid:
type: "string"
systemid:
type: "string"
required:
- "userid"
- "systemid"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/zase9412/koa-swagger.git
git@gitee.com:zase9412/koa-swagger.git
zase9412
koa-swagger
koa-swagger
master

搜索帮助