GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pythonHuang/swaggerui

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
css
css
 
 
fonts
fonts
 
 
images
images
 
 
json
json
 
 
lang
lang
 
 
lib
lib
 
 
_index.jsp
_index.jsp
 
 
index.html
index.html
 
 
o2c.html
o2c.html
 
 
readme.txt
readme.txt
 
 
swagger-ext.js
swagger-ext.js
 
 
swagger-ui-ext.js
swagger-ui-ext.js
 
 
swagger-ui.js
swagger-ui.js
 
 
swagger-ui.min.js
swagger-ui.min.js
 
 

Repository files navigation

ie下进行调试
1、请求json url并解析由SwaggerClient.prototype.build处理,经过SwaggerHttp.prototype.execute处理http请求获取文档json
2、json解析由swagger-ui.js中的Resolver.prototype.resolve = function (spec, arg1, arg2, arg3)开始
3、接口排序和渲染入库由SwaggerUi.Views.MainView处理
4、接口的解析从var Operation开始
5、对象的解析从var Model开始
其中,默认响应的Model Schema部分由Model.prototype.createJSONSample解析
               Model 部分由Model.prototype.getMockSignature解析
4、渲染由SwaggerUi.Views.OperationView中的render处理
5、执行在线测试由Operation.prototype.execute执行,参数拼接在Operation.prototype.urlify中处理
6、接口分组渲染SwaggerUi.Views.MainView.render中执行,在SwaggerClient.prototype.buildFromSpec初始化分组信息

扩展部分
默认响应改造
1、SchemaMarkup.schemaToJSON新增对类型为cust_json和复合类型的处理,同时Model Schema展示新增类型和描述信息
2、SchemaMarkup.schemaToHTML新增对类型为cust_json和复合类型的处理,同时Model Schema展示新增类型和描述信息

其他响应改造
1、SwaggerUi.Views.OperationView.render新增对类型为cust_json和复合类型的处理
2、SwaggerUi.Views.StatusCodeView.render新增对cust_json和复合类型的处理

请求改造
1、var Operation新增对类型为cust_json的处理,具体位置如下
param.signature = this.getModelSignature(innerType, this.models).toString();
param.sampleJSON = this.getModelSampleJSON(innerType, this.models);

在线执行
1、请求协议默认采用方法定义的,然后才使用文档级别
   Operation.prototype.urlify中对请求url拼接改造

2、请求url拼接,处理多个"?"bug
   Operation.prototype.urlify
   
国际化支持

注意事项:
1、模块名称不能与文档的第一级元素key相同,否则可能出现"Cannot assign to read only property 'help' of XXXXX"


About

swaggerui-topaz.vercel.app

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.