浏览代码

:memo: add swagger editor support

Jeremy Zheng 3 年之前
父节点
当前提交
d78b9e77ab
共有 2 个文件被更改,包括 9 次插入1 次删除
  1. 9 0
      openapi/README.md
  2. 0 1
      openapi/src/main.tsx

+ 9 - 0
openapi/README.md

@@ -5,6 +5,15 @@ yarn install
 yarn run dev
 ```
 
+- Editor
+
+  ```bash
+  git clone https://github.com/swagger-api/swagger-editor.git
+  cd swagger-editor
+  npm install
+  npm run dev # http://localhost:3200
+  ```
+
 ## Documents
 
 - [OpenAPI Guide](https://swagger.io/docs/specification/basic-structure/)

+ 0 - 1
openapi/src/main.tsx

@@ -1,4 +1,3 @@
-import React from "react";
 import ReactDOM from "react-dom/client";
 
 import App from "./App";