-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin.http
65 lines (50 loc) · 1.21 KB
/
admin.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
@baseUrl = http://127.0.0.1:800/api/admin
@token = {{login.response.body.token}}
# 系统 - 管理员登陆
# @name login
POST {{baseUrl}}/token
content-type: application/json
{
"type": "password",
"username": "admin",
"password": "123456"
}
###
#CRUD - CRUD列表
GET {{baseUrl}}/crud/product_brand
Authorization: Bearer {{token}}
###
#CRUD - CRUD读取
GET {{baseUrl}}/crud/product_brand/1
Authorization: Bearer {{token}}
###
#CRUD - CRUD更新
PUT {{baseUrl}}/crud/product_brand/1
Authorization: Bearer {{token}}
###
#REST - GET操作
GET {{baseUrl}}/rest/product_brand/act/1
Authorization: Bearer {{token}}
###
#REST - POST操作
POST {{baseUrl}}/rest/product_brand/act/1
Authorization: Bearer {{token}}
###
#系统 - 获取高级表格(ProTable)的schema描述
GET {{baseUrl}}/schema/protable/config
Authorization: Bearer {{token}}
###
#系统 - 获取表单(Formily)的schema描述
GET {{baseUrl}}/schema/formily/setting
Authorization: Bearer {{token}}
###
#系统 - 获取管理员列表
GET {{baseUrl}}/admin
Authorization: Bearer {{token}}
###
#系统 - 获取字典列表
GET {{baseUrl}}/dicts
Authorization: Bearer {{token}}
###
#系统 - 获取字典条目
GET {{baseUrl}}/dicts/field_component