1 Star 0 Fork 1.4K

Raya/bootshiro

forked from tomsun28/bootshiro 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
postman_test_example.json 9.17 KB
一键复制 编辑 原始数据 按行查看 历史
tomsun28 提交于 2021-03-23 22:10 . 接口调整修改
{
"info": {
"_postman_id": "d231ece4-4404-48fa-946a-9c441057e363",
"name": "sureness-tom",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "http://localhost:8081/auth/token - use admin account",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"authType\": \"1\",\n\t\"identifier\": \"admin\",\n\t\"credential\": \"admin\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8081/auth/token",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"auth",
"token"
]
}
},
"response": []
},
{
"name": "http://localhost:8081/auth/token - use user account",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"authType\": \"1\",\n\t\"identifier\": \"admin\",\n\t\"credential\": \"admin\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8081/auth/token",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"auth",
"token"
]
}
},
"response": []
},
{
"name": "http://localhost:8081/auth/token - use no noRole account",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"authType\": \"1\",\n\t\"identifier\": \"admin\",\n\t\"credential\": \"admin\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8081/auth/token",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"auth",
"token"
]
}
},
"response": []
},
{
"name": "http://localhost:8081/auth/token - use no guest account",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"authType\": \"1\",\n\t\"identifier\": \"admin\",\n\t\"credential\": \"admin\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8081/auth/token",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"auth",
"token"
]
}
},
"response": []
},
{
"name": "http://localhost:8081/role - basic- use noRole",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "noRole",
"type": "string"
},
{
"key": "username",
"value": "noRole",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8081/role/1/2",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"role",
"1",
"2"
]
}
},
"response": []
},
{
"name": "http://localhost:8081/log/account - baisc auth - use admin",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "admin",
"type": "string"
},
{
"key": "username",
"value": "admin",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8081/log/account",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"log",
"account"
]
}
},
"response": []
},
{
"name": "http://localhost:8081/role - basic auth - use guest",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "guest",
"type": "string"
},
{
"key": "username",
"value": "guest",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8081/role/1/2",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"role",
"1",
"2"
]
}
},
"response": []
},
{
"name": "http://localhost:8081/role - basic auth - use guest",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "guest",
"type": "string"
},
{
"key": "username",
"value": "guest",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"test_role\",\n\t\"code\": \"test_role\",\n\t\"status\": 1,\n\t\"description\": \"this is test role add\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8081/role",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"role"
]
}
},
"response": []
},
{
"name": "http://localhost:8081/role - basic auth - use user",
"request": {
"auth": {
"type": "basic",
"basic": [
{
"key": "password",
"value": "user",
"type": "string"
},
{
"key": "username",
"value": "user",
"type": "string"
}
]
},
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n\t\"name\": \"test_role\",\n\t\"code\": \"test_role\",\n\t\"status\": 1,\n\t\"description\": \"this is test role add\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8081/role",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"role"
]
}
},
"response": []
},
{
"name": "http://localhost:8081/role - jwt auth",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJhbGciOiJIUzUxMiIsInppcCI6IkRFRiJ9.eNocjEEOwiAQRe8y65IwCBQ4hlvjotAhVqs1DBoT492l7F5e_vtfuNYFAliUPs3aCrIuCW1nFDHlUaBVqJOLJpkIA_ArtnHd7o0X5s43egim8qayy6lCQOOUd15JHIA-zy4OUo5dlG2lFp46KDjvR0fKhfgCIU8r0-8PAAD__w.f-3klWWDpEO3uDLlx2S53DV2cYernwVEDwcC6z1JexocbZoxRKmASTOuky1qMCxy_hV8-RbuMjDmI3ASa_FQOw",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:8081/role",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"role"
]
}
},
"response": []
},
{
"name": "http://localhost:8081/role - custom auth",
"request": {
"method": "GET",
"header": [
{
"key": "username",
"type": "text",
"value": "admin"
},
{
"key": "password",
"type": "text",
"value": "admin"
}
],
"url": {
"raw": "http://localhost:8081/role",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"role"
]
}
},
"response": []
},
{
"name": "http://localhost:8081/role - custom token auth - use admin",
"request": {
"auth": {
"type": "noauth"
},
"method": "GET",
"header": [
{
"key": "Token",
"type": "text",
"value": "admin--1607013327518--36000--03b70f83b73e411d879c03853f362868"
}
],
"url": {
"raw": "http://localhost:8081/role",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"role"
]
}
},
"response": []
},
{
"name": "http://localhost:8081/auth/custom/token - use admin account",
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"authType\": \"1\",\n\t\"identifier\": \"admin\",\n\t\"credential\": \"admin\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:8081/auth/custom/token",
"protocol": "http",
"host": [
"localhost"
],
"port": "8081",
"path": [
"auth",
"custom",
"token"
]
}
},
"response": []
}
]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/firedarksouls/bootshiro.git
git@gitee.com:firedarksouls/bootshiro.git
firedarksouls
bootshiro
bootshiro
master

搜索帮助