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
POST
http://prod-cn.your-api-server.com
/settings/saveUserSettings

请求参数

Query 参数
data
string 
可选
Body 参数application/json
object {0}
示例
{
  "themeScheme": "light",
  "grayscale": false,
  "colourWeakness": false,
  "recommendColor": false,
  "themeColor": "#646cff",
  "otherColor": {
    "info": "#2080f0",
    "success": "#52c41a",
    "warning": "#faad14",
    "error": "#f5222d"
  },
  "isInfoFollowPrimary": true,
  "resetCacheStrategy": "close",
  "layout": {
    "mode": "vertical",
    "scrollMode": "content"
  },
  "page": {
    "animate": true,
    "animateMode": "fade-slide"
  },
  "header": {
    "height": 56,
    "breadcrumb": {
      "visible": true,
      "showIcon": true
    }
  },
  "tab": {
    "visible": true,
    "cache": true,
    "height": 44,
    "mode": "chrome"
  },
  "fixedHeaderAndTab": true,
  "sider": {
    "inverted": false,
    "width": 220,
    "collapsedWidth": 64,
    "mixWidth": 90,
    "mixCollapsedWidth": 64,
    "mixChildMenuWidth": 200
  },
  "footer": {
    "visible": true,
    "fixed": false,
    "height": 48,
    "right": true
  },
  "watermark": {
    "visible": false,
    "text": "SoybeanAdmin"
  },
  "tokens": {
    "light": {
      "colors": {
        "container": "rgb(255, 255, 255)",
        "layout": "rgb(247, 250, 252)",
        "inverted": "rgb(0, 20, 40)",
        "base-text": "rgb(31, 31, 31)"
      },
      "boxShadow": {
        "header": "0 1px 2px rgb(0, 21, 41, 0.08)",
        "sider": "2px 0 8px 0 rgb(29, 35, 41, 0.05)",
        "tab": "0 1px 2px rgb(0, 21, 41, 0.08)"
      },
      "radii": {
        "small": "6px",
        "medium": "8px",
        "large": "12px"
      }
    },
    "dark": {
      "colors": {
        "container": "rgb(28, 28, 28)",
        "layout": "rgb(18, 18, 18)",
        "base-text": "rgb(224, 224, 224)"
      }
    }
  }
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://prod-cn.your-api-server.com/settings/saveUserSettings?data' \
--header 'Content-Type: application/json' \
--data-raw '{
    "themeScheme": "light",
    "grayscale": false,
    "colourWeakness": false,
    "recommendColor": false,
    "themeColor": "#646cff",
    "otherColor": {
        "info": "#2080f0",
        "success": "#52c41a",
        "warning": "#faad14",
        "error": "#f5222d"
    },
    "isInfoFollowPrimary": true,
    "resetCacheStrategy": "close",
    "layout": {
        "mode": "vertical",
        "scrollMode": "content"
    },
    "page": {
        "animate": true,
        "animateMode": "fade-slide"
    },
    "header": {
        "height": 56,
        "breadcrumb": {
            "visible": true,
            "showIcon": true
        }
    },
    "tab": {
        "visible": true,
        "cache": true,
        "height": 44,
        "mode": "chrome"
    },
    "fixedHeaderAndTab": true,
    "sider": {
        "inverted": false,
        "width": 220,
        "collapsedWidth": 64,
        "mixWidth": 90,
        "mixCollapsedWidth": 64,
        "mixChildMenuWidth": 200
    },
    "footer": {
        "visible": true,
        "fixed": false,
        "height": 48,
        "right": true
    },
    "watermark": {
        "visible": false,
        "text": "SoybeanAdmin"
    },
    "tokens": {
        "light": {
            "colors": {
                "container": "rgb(255, 255, 255)",
                "layout": "rgb(247, 250, 252)",
                "inverted": "rgb(0, 20, 40)",
                "base-text": "rgb(31, 31, 31)"
            },
            "boxShadow": {
                "header": "0 1px 2px rgb(0, 21, 41, 0.08)",
                "sider": "2px 0 8px 0 rgb(29, 35, 41, 0.05)",
                "tab": "0 1px 2px rgb(0, 21, 41, 0.08)"
            },
            "radii": {
                "small": "6px",
                "medium": "8px",
                "large": "12px"
            }
        },
        "dark": {
            "colors": {
                "container": "rgb(28, 28, 28)",
                "layout": "rgb(18, 18, 18)",
                "base-text": "rgb(224, 224, 224)"
            }
        }
    }
}'

返回响应

🟢200成功
application/json
Body
data
string  | integer  | boolean  | array  | object  | number  | null 
请求的数据
必需
后端的请求结果数据
code
string 
请求编码
必需
后端请求状态的编码
msg
string 
请求消息
必需
请求的消息
示例
{
  "data": "string",
  "code": "string",
  "msg": "string"
}
上一页
获取用户配置
下一页
postApiUsersLogin
Built with