1 Star 0 Fork 0

Fox He/springboot-security-jwt-example

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
SpringSecurity6-jwt-example.openapi.json 19.07 KB
一键复制 编辑 原始数据 按行查看 历史
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
{
"openapi": "3.1.0",
"info": {
"title": "SpringSecurity6-jwt-example",
"description": "",
"version": "1.0.0"
},
"tags": [],
"paths": {
"/api/authenticate": {
"post": {
"summary": "登录",
"x-apifox-folder": "",
"x-apifox-status": "developing",
"deprecated": false,
"description": "",
"tags": [],
"parameters": [],
"requestBody": {
"content": {
"multipart/form-data": {
"schema": {
"type": "object",
"properties": {
"username": {
"type": "string",
"example": "admin"
},
"password": {
"type": "string",
"example": "123456"
}
},
"required": [
"username",
"password"
]
}
}
}
},
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "integer"
},
"message": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"user_name": {
"type": "string"
},
"token_expiration": {
"type": "string"
},
"token": {
"type": "string"
}
},
"required": [
"user_name",
"token_expiration",
"token"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"user_name",
"token_expiration",
"token"
]
}
},
"required": [
"status",
"message",
"data"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"status",
"message",
"data"
]
},
"examples": {
"1": {
"summary": "成功示例",
"value": {
"status": 200,
"message": "登录成功",
"data": {
"user_name": "admin",
"token_expiration": "2023-03-28 13:46:35",
"token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInJvbGVzIjpbXSwibmlja25hbWUiOiIiLCJpYXQiOjE2Nzk4OTU5OTUsImV4cCI6MTY3OTk4MjM5NX0.rlz-jubhLmJJH17vsgao63TICoh_1M-ncrNUPLuF09cWASYv2QbObsE9FVbFQ8y6HP8nXEktjLww3FpxwVoa-w"
}
}
}
}
}
}
}
},
"x-run-in-apifox": "https://www.apifox.cn/web/project/2497217/apis/api-71002424-run"
}
},
"/api/refresh_token": {
"post": {
"summary": "刷新token",
"x-apifox-folder": "",
"x-apifox-status": "developing",
"deprecated": false,
"description": "",
"tags": [],
"parameters": [
{
"name": "Authorization",
"in": "header",
"description": "",
"required": true,
"example": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInJvbGVzIjpbXSwibmlja25hbWUiOiIiLCJpYXQiOjE2Nzk4OTQ0NDIsImV4cCI6MTY3OTk4MDg0Mn0.2HV0DoNEDP73Lqvnxc7PEx6gr2dxloAOZk_ELwSKezMyOQMHPosXHals-icfvig1H5fgPTKHNR1S0Tu-0wUIBA",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "integer"
},
"message": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"user_name": {
"type": "string"
},
"token_expiration": {
"type": "string"
},
"token": {
"type": "string"
}
},
"required": [
"user_name",
"token_expiration",
"token"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"user_name",
"token_expiration",
"token"
]
}
},
"required": [
"status",
"message",
"data"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"status",
"message",
"data"
]
},
"examples": {
"1": {
"summary": "成功示例",
"value": {
"status": 200,
"message": "刷新token成功",
"data": {
"user_name": "admin",
"token_expiration": "2023-03-28 13:47:07",
"token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInJvbGVzIjpbXSwibmlja25hbWUiOiIiLCJpYXQiOjE2Nzk4OTYwMjcsImV4cCI6MTY3OTk4MjQyN30.5UUG5G3F4UjeFU5y5hPHV9Giv1EqYzc1W_cTJLctT-64EoFA2IRJuIooX3zkTqU6xtDAcfNZGh9AdZ33qNo8NQ"
}
}
}
}
}
}
}
},
"x-run-in-apifox": "https://www.apifox.cn/web/project/2497217/apis/api-71002450-run"
}
},
"/api/current_user": {
"get": {
"summary": "当前用户",
"x-apifox-folder": "",
"x-apifox-status": "developing",
"deprecated": false,
"description": "",
"tags": [],
"parameters": [
{
"name": "Authorization",
"in": "header",
"description": "",
"required": true,
"example": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInJvbGVzIjpbXSwibmlja25hbWUiOiIiLCJpYXQiOjE2Nzk4OTQ1NDMsImV4cCI6MTY3OTk4MDk0M30.V8vSSXUK2TsXbYmb_zFJ7RnxroalTNW7W013JjNSwcnA5cQ8r8gb7uk2PbUlUV7zlJ-1O8lxyq6m9FfEA_jzPQ",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "integer"
},
"message": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"nickname": {
"type": "string"
},
"authorities": {
"type": "array",
"items": {
"type": "string"
}
},
"account_non_expired": {
"type": "boolean"
},
"account_non_locked": {
"type": "boolean"
},
"credentials_non_expired": {
"type": "boolean"
},
"enabled": {
"type": "boolean"
}
},
"required": [
"username",
"nickname",
"authorities",
"account_non_expired",
"account_non_locked",
"credentials_non_expired",
"enabled"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"username",
"nickname",
"authorities",
"account_non_expired",
"account_non_locked",
"credentials_non_expired",
"enabled"
]
}
},
"required": [
"status",
"message",
"data"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"status",
"message",
"data"
]
},
"examples": {
"1": {
"summary": "成功示例",
"value": {
"status": 200,
"message": "成功获取当前用户信息",
"data": {
"username": "admin",
"nickname": "",
"authorities": [],
"account_non_expired": true,
"account_non_locked": true,
"credentials_non_expired": true,
"enabled": true
}
}
}
}
}
}
}
},
"x-run-in-apifox": "https://www.apifox.cn/web/project/2497217/apis/api-71002497-run"
}
},
"/api/benchmarks/post_dev_info": {
"post": {
"summary": "设备上报测试",
"x-apifox-folder": "",
"x-apifox-status": "developing",
"deprecated": false,
"description": "",
"tags": [],
"parameters": [
{
"name": "Authorization",
"in": "header",
"description": "",
"required": true,
"example": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsInJvbGVzIjpbXSwibmlja25hbWUiOiIiLCJpYXQiOjE2Nzk4OTQ1NDMsImV4cCI6MTY3OTk4MDk0M30.V8vSSXUK2TsXbYmb_zFJ7RnxroalTNW7W013JjNSwcnA5cQ8r8gb7uk2PbUlUV7zlJ-1O8lxyq6m9FfEA_jzPQ",
"schema": {
"type": "string"
}
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"servId": {
"type": "string"
},
"severName": {
"type": "string"
},
"areaName": {
"type": "string"
},
"devName": {
"type": "string"
},
"reportTime": {
"type": "string"
},
"plate": {
"type": "string"
},
"plateColor": {
"type": "string"
},
"carColor": {
"type": "string"
},
"leaveOrEnter": {
"type": "string"
},
"carSize": {
"type": "string"
},
"area": {
"type": "string"
},
"createDate": {
"type": "string"
}
},
"required": [
"id",
"servId",
"severName",
"areaName",
"devName",
"reportTime",
"plate",
"plateColor",
"carColor",
"leaveOrEnter",
"carSize",
"area",
"createDate"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"id",
"servId",
"severName",
"areaName",
"devName",
"reportTime",
"plate",
"plateColor",
"carColor",
"leaveOrEnter",
"carSize",
"area",
"createDate"
]
},
"example": {
"id": "452FFCA6-F394-4AA1-9447-F6B839836F50",
"servId": "E0619A20-7D33-4D48-874F-45C0D9314F5E",
"severName": "汉十孝感服务区",
"areaName": "北区",
"devName": "西区卡口入口摄像机",
"reportTime": "2017-08-25 11:32",
"plate": "吉AK2222",
"plateColor": "黄色",
"carColor": "红色",
"leaveOrEnter": "进入",
"carSize": "大型车",
"area": "北区",
"createDate": "2017-08-25 11:35:00"
}
}
}
},
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "integer"
},
"message": {
"type": "string"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"servId": {
"type": "string"
},
"severName": {
"type": "string"
},
"areaName": {
"type": "string"
},
"devName": {
"type": "string"
},
"reportTime": {
"type": "string"
},
"plate": {
"type": "string"
},
"plateColor": {
"type": "string"
},
"carColor": {
"type": "string"
},
"leaveOrEnter": {
"type": "string"
},
"carSize": {
"type": "string"
},
"area": {
"type": "string"
},
"createDate": {
"type": "string"
}
},
"required": [
"id",
"servId",
"severName",
"areaName",
"devName",
"reportTime",
"plate",
"plateColor",
"carColor",
"leaveOrEnter",
"carSize",
"area",
"createDate"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"id",
"servId",
"severName",
"areaName",
"devName",
"reportTime",
"plate",
"plateColor",
"carColor",
"leaveOrEnter",
"carSize",
"area",
"createDate"
]
}
},
"required": [
"status",
"message",
"data"
],
"x-apifox-ignore-properties": [],
"x-apifox-orders": [
"status",
"message",
"data"
]
},
"examples": {
"1": {
"summary": "成功示例",
"value": {
"status": 200,
"message": "设备信息上报成功。",
"data": {
"id": "452FFCA6-F394-4AA1-9447-F6B839836F50",
"servId": "E0619A20-7D33-4D48-874F-45C0D9314F5E",
"severName": "汉十孝感服务区",
"areaName": "北区",
"devName": "西区卡口入口摄像机",
"reportTime": "2017-08-25 11:32",
"plate": "吉AK2222",
"plateColor": "黄色",
"carColor": "红色",
"leaveOrEnter": "进入",
"carSize": "大型车",
"area": "北区",
"createDate": "2017-08-25 11:35:00"
}
}
}
}
}
}
}
},
"x-run-in-apifox": "https://www.apifox.cn/web/project/2497217/apis/api-71002571-run"
}
}
},
"components": {
"schemas": {}
},
"servers": []
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fox_he/springboot-security-jwt-example.git
git@gitee.com:fox_he/springboot-security-jwt-example.git
fox_he
springboot-security-jwt-example
springboot-security-jwt-example
springboot3-security-jwt

搜索帮助

371d5123 14472233 46e8bd33 14472233