导图社区 swagger规范
这是一篇关于swagger规范的思维导图,parameters(参数)、responses(返回体)、requestBody。
社区模板帮助中心,点此进入>>
论语孔子简单思维导图
《傅雷家书》思维导图
《童年》读书笔记
《茶馆》思维导图
《朝花夕拾》篇目思维导图
《昆虫记》思维导图
《安徒生童话》思维导图
《鲁滨逊漂流记》读书笔记
《这样读书就够了》读书笔记
妈妈必读:一张0-1岁孩子认知发展的精确时间表
swagger规范
openapi
Info
title
description
version
Servers
-url:
Paths
/actions
get/post
tags(分类)
分类url
summary(描述)
security(是否有token)
parameters(参数)
_$ref:#/components/parameters/table'
查询路径中的字符串格式
!!!看不懂
查询字符串参数不得包含在路径中。它们应该被定义为查询参数
responses(返回体)
200
content
application/json
media type
schema
type
properties
$ref: '#/components/schemas/basic_error'
可以理解为一个表,type表示是表,properties可以理解为列值 
example:
items
images
401
404
500
requestBody
post,put,patch请求
description: Optional description in *Markdown*
支持Markdown
required
可选
propertines
encoding
color
bar
baz
externalDocs
用于引用包含附加文档的外部资源
url
deprecated:true
弃用的操作
/users/{id}
get
operationId:getUserById
parameters
-name:id
in:path
discription
required:true
schema:
format
responses
----
components
Compnents
Schemas
Employee
Parameters
ScuritySchems
apikeyAuth
in
name
requestbodies