当前位置:网站首页>第十二章 使用中的 OpenAPI 属性
第十二章 使用中的 OpenAPI 属性
2022-07-31 11:15:00 【yaoxin521123】
文章目录
第十二章 使用中的 OpenAPI 属性
本附录列出了 API 管理工具在生成 REST 服务类时使用的 OpenAPI 2.0 规范的属性。此处未列出的属性将被忽略。有几个扩展属性;它们的名称以 x-ISC 开头。
Swagger
basePathconsumeshostproducesdefinitions(请注意,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
titledescriptionx-ISC_RequiredResource(访问REST服务的任何端点所需的已定义资源及其访问模式 (resource:mode) 的逗号分隔列表)version
有关标准属性的详细信息,请参阅 https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#info-object。
Path Item Object
$refget, 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
operationIdsummarydescriptionconsumesproducesparameters(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
nameindescriptionrequired$reftype(cannot be “formData”; other types are permitted)formatallowEmptyValuemaxLengthminLengthpatternmaximumminimumexclusiveMaximumexclusiveMinimummultipleOfcollectionFormatminItemsmaxItemsuniqueItemsitems(for details, see “Items Object”)
有关这些属性的详细信息,请参阅 https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#parameter-object。
Items Object
typeformatallowEmptyValuemaxLengthminLengthpatternmaximumminimumexclusiveMaximumexclusiveMinimummultipleOfcollectionFormatminItemsmaxItemsuniqueItems
有关这些属性的详细信息,请参阅 https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#items-object。
边栏推荐
猜你喜欢

准确率(Accuracy)、精度(Precision)、召回率(Recall)和 mAP 的图解

St. Regis Takeaway Project: New dishes and dishes paged query
![AtCoder—E - Σ[k=0..10^100]floor(X/10^k](/img/be/82cfab00950c1f28d426e76a792906.png)
AtCoder—E - Σ[k=0..10^100]floor(X/10^k

Experience innovation and iteration through the development of lucky draw mini-programs

web安全入门-黑苹果MAC系统安装

After class, watching the documentation and walking back to the lab, I picked up the forgotten SQL operators again

一文带你了解redux的工作流程——actionreducerstore

Docker安装canal、mysql进行简单测试与实现redis和mysql缓存一致性

A Method for Ensuring Data Consistency of Multi-Party Subsystems

AWS Amazon cloud account registration, free application for 12 months Amazon cloud server detailed tutorial
随机推荐
Docker搭建Mysql主从复制
SQL力扣刷题七
Redis缓存面临的缓存击穿问题
力扣shell刷题
strings包详细文档+示例
结构化查询语言SQL-关系数据库标准语言
SQL - Left join, Right join, Inner join
IBM SPSS Statistics 28软件安装包下载及安装教程
掌握SSR
Distributed Transactions - Introduction to Distributed Transactions, Distributed Transaction Framework Seata (AT Mode, Tcc Mode, Tcc Vs AT), Distributed Transactions - MQ
MySQL 的几种碎片整理方案总结(解决delete大量数据后空间不释放的问题)
3D激光SLAM:LeGO-LOAM论文解读---点云分割部分
SQL study notes - REGEXP operator
线程池 ThreadPoolExecutor 详解
众多mock工具,这一次我选对了
SQLSERVER merges subquery data into one field
mysql automatically adds creation time and update time
In half a month, MySQL has been consolidated again, and a tens of thousands of words "super hard core" article has been sorted out!
Read through the interface to call the artifact RestTemplate
[Go Affair] See through Go's collections and slices at a glance