当前位置:网站首页>第十二章 使用中的 OpenAPI 属性
第十二章 使用中的 OpenAPI 属性
2022-07-31 11:15:00 【yaoxin521123】
文章目录
第十二章 使用中的 OpenAPI 属性
本附录列出了 API
管理工具在生成 REST 服务类时使用的 OpenAPI 2.0
规范的属性。此处未列出的属性将被忽略。有几个扩展属性;它们的名称以 x-ISC
开头。
Swagger
basePath
consumes
host
produces
definitions
(请注意,API
管理工具在生成代码时不使用Schema
对象的任何属性)parameters
(for details, see “Parameter Object”)paths
(for details, see “Path Item Object”)info
(for details, see “Info Object”)swagger
(must be “2.0”)
有关这些属性的详细信息,请参阅 https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#swagger-object。
Info Object
title
description
x-ISC_RequiredResource
(访问REST
服务的任何端点所需的已定义资源及其访问模式 (resource:mode
) 的逗号分隔列表)version
有关标准属性的详细信息,请参阅 https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#info-object。
Path Item Object
$ref
get, put, and so on
(支持 OpenAPI 2.0 规范中列出的所有方法)
请注意,对于 options
方法, 不会生成存根方法供实现。相反,%CSP.REST
类会自动执行所有选项处理。
parameters
(for details, see “Parameter Object”)
有关标准属性的详细信息,请参阅 https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#pathItemObject.
Operation Object
operationId
summary
description
consumes
produces
parameters
(for details, see “Parameter Object”)x-ISC_CORS
(一个标志,指示应支持对此端点/方法组合的CORS
请求)x-ISC_RequiredResource
(访问REST
服务的此端点所需的已定义资源及其访问模式 (resource:mode
) 的逗号分隔列表)x-ISC_ServiceMethod
(在后端调用以服务此操作的类方法的名称;默认是operationId
,通常是合适的)responses
(请注意,在响应对象中,状态可能是HTTP
状态代码或“默认”)
有关标准属性的详细信息,请参阅 https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#operationObject。
Parameter Object
name
in
description
required
$ref
type
(cannot be “formData”; other types are permitted)format
allowEmptyValue
maxLength
minLength
pattern
maximum
minimum
exclusiveMaximum
exclusiveMinimum
multipleOf
collectionFormat
minItems
maxItems
uniqueItems
items
(for details, see “Items Object”)
有关这些属性的详细信息,请参阅 https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#parameter-object。
Items Object
type
format
allowEmptyValue
maxLength
minLength
pattern
maximum
minimum
exclusiveMaximum
exclusiveMinimum
multipleOf
collectionFormat
minItems
maxItems
uniqueItems
有关这些属性的详细信息,请参阅 https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#items-object。
边栏推荐
- 分布式事务——分布式事务简介、分布式事务框架 Seata(AT模式、Tcc模式、Tcc Vs AT)、分布式事务—MQ
- R 语言data.frame 中的另一行中减去一行
- MySQL 的 limit 分页查询及性能问题
- Android studio connects to MySQL and completes simple login and registration functions
- mpu9150(driverack pa简明教程)
- Use jOOQ to write vendor-agnostic SQL with JPA's native query or @Formula.
- Initial JDBC programming
- 结构化查询语言SQL-关系数据库标准语言
- Detailed tutorial on distributed transaction Seata
- 7 天能找到 Go 工作吗?学学 Go 数组和指针试试
猜你喜欢
CoCube群机器人预览→资讯剧透←
Redis缓存面临的缓存雪崩问题
The most complete phpmyadmin vulnerability summary
《MySQL高级篇》四、索引的存储结构
LeetCode 1161.最大层内元素和:层序遍历
The latest MySql installation teaching, very detailed
In half a month, MySQL has been consolidated again, and a tens of thousands of words "super hard core" article has been sorted out!
IBM SPSS Statistics 28软件安装包下载及安装教程
Distributed id solution
最全phpmyadmin漏洞汇总
随机推荐
2022/7/28
IBM SPSS Statistics 28软件安装包下载及安装教程
Insertion and deletion of doubly linked list
musl Reference Manual
实现弹框组件
IDEA configure method annotation automatic parameters
Can I find a Go job in 7 days?Learn Go with arrays and pointers
Creation of doubly linked list
PyQt5快速开发与实战 9.5 PyQtGraph在PyQt中的应用 && 9.6 Plotly在PyQt中的应用
St. Regis Takeaway Project: New dishes and dishes paged query
【JWT】JWT 整合
apisix-Getting Started
若枚举映射的值不存在,则不进行反序列化
redis-enterprise use
Curl 命令使用
Usage of exists in sql
台达PLC出现通信错误或通信超时或下载时提示机种不符的解决办法总结
无法将“node.exe”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。
mysql 索引使用与优化
【Go事】一眼看穿 Go 的集合和切片