soybean-admin-mock
  1. 前端路由
soybean-admin-mock
  • 🦊一分钟,了解 Apifox !
  • Auth
    • 用户名+密码登录
      POST
    • 获取用户信息
      GET
    • 刷新token
      POST
    • 自定义后端错误
      GET
  • 前端路由
    • 获取用户路由数据
      GET
    • 路由是否存在
      GET
    • 获取固定的路由数据(不需要权限)
      GET
    • 获取react用户路由
      GET
  • 调试
    • debug
      GET
    • debug post
      POST
  • 系统管理
    • 系统管理 - 获取角色列表
      GET
    • 系统管理 - 获取用户列表
      GET
    • 系统管理 - 获取用户列表(废弃)
      GET
    • 获取所有角色
      GET
    • 获取菜单列表
      GET
    • 系统管理 - 获取菜单列表
      GET
    • 获取所有页面组件
      GET
    • 获取菜单树
      GET
  • 项目配置
    • 获取用户配置
      GET
    • 保存用户配置
      POST
  • 用户
    • postApiUsersLogin
      POST
    • postApiUsersRegister
      POST
    • getApiUsersProfile
      GET
    • putApiUsersPassword
      PUT
    • postApiUsersLogout
      POST
  • 角色
    • getApiRoles
    • postApiRoles
    • getApiRolesById
    • putApiRolesById
    • deleteApiRolesById
  • 权限
    • getApiPermissions
    • postApiPermissions
    • getApiPermissionsById
    • putApiPermissionsById
    • deleteApiPermissionsById
  • 菜单
    • getApiMenusUser
    • getApiMenus
    • postApiMenus
    • getApiMenusById
    • putApiMenusById
    • deleteApiMenusById
  • 文件
    • postApiFilesUpload
    • getApiFilesById
    • deleteApiFilesById
    • getApiFilesUser
  1. 前端路由

获取用户路由数据

正式环境
http://prod-cn.your-api-server.com
正式环境
http://prod-cn.your-api-server.com
GET
http://prod-cn.your-api-server.com
/route/getUserRoutes

请求参数

无

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://prod-cn.your-api-server.com/route/getUserRoutes'

返回响应

🟢200成功
application/json
Body
data
object 
请求的数据
必需
后端的请求结果数据
routes
array[object (菜单路由) {5}] 
菜单路由数据
必需
home
string 
首页路由
必需
根路由重定向的路由
code
string 
请求编码
必需
后端请求状态的编码
msg
string 
请求消息
必需
请求的消息
示例
{
    "data": {
        "routes": [
            {
                "name": "string",
                "path": "string",
                "component": "string",
                "meta": {
                    "title": "string",
                    "i18nKey": "string",
                    "order": 0,
                    "keepAlive": true,
                    "constant": true,
                    "icon": "string",
                    "localIcon": "string",
                    "href": "string",
                    "hideInMenu": true,
                    "activeMenu": "string",
                    "multiTab": true,
                    "fixedIndexInTab": 0,
                    "query": [
                        {
                            "key": "string",
                            "value": "string"
                        }
                    ],
                    "buttons": [
                        {
                            "desc": "string",
                            "code": "string"
                        }
                    ]
                },
                "children": [
                    {}
                ]
            }
        ],
        "home": "string"
    },
    "code": "string",
    "msg": "string"
}
修改于 2024-03-24 07:54:25
上一页
自定义后端错误
下一页
路由是否存在
Built with