2 Star 0 Fork 1

linzhong/Vue3.django

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Backend_django_api.postman_collection.json 14.48 KB
一键复制 编辑 原始数据 按行查看 历史
Linzhong Zhang (CW) 提交于 2023-11-16 10:24 . feat: add template views
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768
{
"info": {
"_postman_id": "0914fa8f-7af0-4dd5-be92-bd8d89220f64",
"name": "Backend_django_api",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "User",
"item": [
{
"name": "add_user",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"user_name\": \"Coderlzz\",\r\n \"user_pwd\": \"1234567\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/user/add_user",
"host": [
"{{url}}"
],
"path": [
"user",
"add_user"
]
}
},
"response": []
},
{
"name": "del_user",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "DELETE",
"header": [],
"url": {
"raw": "{{url}}/user/del_user/3",
"host": [
"{{url}}"
],
"path": [
"user",
"del_user",
"3"
]
}
},
"response": []
},
{
"name": "update_user",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"user_pwd\": \"123456\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/user/update_user/2",
"host": [
"{{url}}"
],
"path": [
"user",
"update_user",
"2"
]
}
},
"response": []
},
{
"name": "get_user_info",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"url": {
"raw": "{{url}}/user/get_user_info/1",
"host": [
"{{url}}"
],
"path": [
"user",
"get_user_info",
"1"
]
}
},
"response": []
},
{
"name": "get_user_list",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{ \r\n \"offset\": 0,\r\n \"size\": 10,\r\n \"filter_field\": {\r\n \"enable\": 1,\r\n \"create_at\": [\"2023-10-25\", \"2023-10-27\"]\r\n }\r\n \r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/user/get_user_list",
"host": [
"{{url}}"
],
"path": [
"user",
"get_user_list"
]
}
},
"response": []
}
]
},
{
"name": "Role",
"item": [
{
"name": "add_role",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 4,\r\n \"name\": \"Role Super User\",\r\n \"intro\": \"Role Super User\",\r\n \"menu_list\": [1, 130, 131]\r\n}"
},
"url": {
"raw": "{{url}}/user/add_role",
"host": [
"{{url}}"
],
"path": [
"user",
"add_role"
]
}
},
"response": []
},
{
"name": "del_role",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "DELETE",
"header": [],
"url": {
"raw": "{{url}}/user/del_role/3",
"host": [
"{{url}}"
],
"path": [
"user",
"del_role",
"3"
]
}
},
"response": []
},
{
"name": "update_role",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"menu_list\": [1, 110, 111, 112, 113, 120, 121, 122, 123, 124]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/user/update_role/2",
"host": [
"{{url}}"
],
"path": [
"user",
"update_role",
"2"
]
}
},
"response": []
},
{
"name": "get_role_list",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{ \r\n \"offset\": 0,\r\n \"size\": 10,\r\n \"filter_field\": {\r\n \"name\": \"a\",\r\n \"create_at\": [\"2023-10-25\", \"2023-10-27\"]\r\n }\r\n \r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/user/get_role_list",
"host": [
"{{url}}"
],
"path": [
"user",
"get_role_list"
]
}
},
"response": []
}
]
},
{
"name": "Menu",
"item": [
{
"name": "add_menu",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"id\": 142,\r\n \"name\": \"general User\",\r\n \"type\": 3,\r\n \"parent_id\": 140,\r\n \"permission\": \"system:record:general\",\r\n \"sort\": \"142\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/user/add_menu",
"host": [
"{{url}}"
],
"path": [
"user",
"add_menu"
]
}
},
"response": []
},
{
"name": "del_menu",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "DELETE",
"header": [],
"url": {
"raw": "{{url}}/user/del_menu/142",
"host": [
"{{url}}"
],
"path": [
"user",
"del_menu",
"142"
]
}
},
"response": []
},
{
"name": "update_menu",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"name\": \"General User\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/user/update_menu/142",
"host": [
"{{url}}"
],
"path": [
"user",
"update_menu",
"142"
]
}
},
"response": []
},
{
"name": "get_menu_list",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "GET",
"header": [],
"body": {
"mode": "raw",
"raw": "{ \r\n \"offset\": 0,\r\n \"size\": 10,\r\n \"filter_field\": {\r\n \"enable\": 1,\r\n \"create_at\": [\"2023-10-25\", \"2023-10-27\"]\r\n }\r\n \r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/user/get_menu_list",
"host": [
"{{url}}"
],
"path": [
"user",
"get_menu_list"
]
}
},
"response": []
},
{
"name": "get_user_menu_by_role_id",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"role_id\": \"2\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/user/get_user_menu_by_role_id",
"host": [
"{{url}}"
],
"path": [
"user",
"get_user_menu_by_role_id"
]
}
},
"response": []
}
]
},
{
"name": "permission",
"item": [
{
"name": "get_permission",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"url": {
"raw": "{{url}}/user/get_permissions",
"host": [
"{{url}}"
],
"path": [
"user",
"get_permissions"
]
}
},
"response": []
},
{
"name": "add_permission",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"name\": \"Role Super User\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/user/add_permission",
"host": [
"{{url}}"
],
"path": [
"user",
"add_permission"
]
}
},
"response": []
},
{
"name": "request_permission",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{ \"permission\": \r\n {\"id\": 1, \"name\": \"Role Super User\", \"create_at\": \"2023-10-31 10:00:23\", \"updated_at\": \"2023-10-31 10:00:23\", \"requested\": false}\r\n}\r\n",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/user/request_permission",
"host": [
"{{url}}"
],
"path": [
"user",
"request_permission"
]
}
},
"response": []
},
{
"name": "get_requests",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"offset\":0,\r\n \"size\":10,\r\n \"filter_field\": {\r\n \"user_id\": \"1\"\r\n }\r\n \r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/user/get_requests",
"host": [
"{{url}}"
],
"path": [
"user",
"get_requests"
]
}
},
"response": []
},
{
"name": "approve_request",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"user_name\": \"Coderlz\",\r\n \"permission_name\": \"Role Super User\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/user/approve_request",
"host": [
"{{url}}"
],
"path": [
"user",
"approve_request"
]
}
},
"response": []
}
]
},
{
"name": "login",
"event": [
{
"listen": "test",
"script": {
"exec": [
"const res = pm.response.json()\r",
"pm.globals.set(\"token\", res.data.token)"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"user_name\": \"Coderlz\",\r\n \"user_pwd\": \"123456\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/user/login",
"host": [
"{{url}}"
],
"path": [
"user",
"login"
]
}
},
"response": []
},
{
"name": "get_record",
"request": {
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "{{token}}",
"type": "string"
}
]
},
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"offset\":0,\r\n \"size\":10,\r\n \"filter_field\": {\r\n \"user_id\": \"1\",\r\n \"request_type\": \"role\"\r\n }\r\n \r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{url}}/user/get_records",
"host": [
"{{url}}"
],
"path": [
"user",
"get_records"
]
}
},
"response": []
}
]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhanglinzhong/vue3.django.git
[email protected]:zhanglinzhong/vue3.django.git
zhanglinzhong
vue3.django
Vue3.django
master

搜索帮助