Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 929 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 929 Bytes

Open Api Tool

功能

讀取 open-api,轉換成 excel 文件

使用方式

服務啟動後,可進入 swagger 頁面

http://localhost:8080/swagger-ui/index.html#/

image

  • templateType: 輸出的模板種類
  • openApi: 上傳 open api 3.0 的文字檔 (支援 json, yaml 格式)

範例檔案:resources/templates/test_files/open-api.json

image

執行後,產生的 excel 如下

image

excel 模板調整

excel 模板使用 JXLS 實作,可以自行調整成所需的格式

https://jxls.sourceforge.net/

模板位置: resources/templates

image