Created
April 4, 2023 07:38
-
-
Save char0n/8b98dad8d31094a0a3cb88b65a667e48 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.1.0", | |
"info": { | |
"title": "API", | |
"license": { | |
"name": "Apache 2.0", | |
"url": "https://www.apache.org/licenses/LICENSE-2.0.txt" | |
}, | |
"version": "1.0" | |
}, | |
"servers": [{ | |
"url": "http://192.168.0.105:11010", | |
"description": "Generated server url" | |
}], | |
"paths": { | |
"/security/role-config/menu-tree": { | |
"get": { | |
"tags": [ | |
"角色配置管理" | |
], | |
"summary": "查询平台菜单树", | |
"operationId": "menuTree", | |
"parameters": [{ | |
"name": "code", | |
"in": "query", | |
"required": true, | |
"schema": { | |
"type": "string" | |
} | |
}], | |
"responses": { | |
"200": { | |
"description": "OK", | |
"content": { | |
"*/*": { | |
"schema": { | |
"$ref": "#/components/schemas/com.cacao.operation.security.model.PlatformMenuTreeNode" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"components": { | |
"schemas": { | |
"com.cacao.operation.security.model.PlatformMenuTreeNode": { | |
"properties": { | |
"children": { | |
"type": "array", | |
"description": "子节点", | |
"items": { | |
"$ref": "#/components/schemas/com.cacao.operation.security.model.PlatformMenuTreeNode" | |
} | |
}, | |
"resources": { | |
"type": "array", | |
"description": "菜单下挂的资源", | |
"items": { | |
"$ref": "#/components/schemas/com.cacao.operation.security.model.PlatformMenuTreeResourceNode" | |
} | |
} | |
} | |
}, | |
"com.cacao.operation.security.model.PlatformMenuTreeResourceNode": { | |
"description": "菜单下挂的资源", | |
"properties": { | |
"id": { | |
"type": "integer", | |
"format": "int64", | |
"description": "ID" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment