forked from cap-js-community/feature-toggle-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeature-service.http
144 lines (120 loc) · 2.75 KB
/
feature-service.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
### read state
GET {{base_url}}/rest/feature/state
Authorization: Basic system system
### redis_read
POST {{base_url}}/rest/feature/redisRead
Authorization: Basic system system
Content-Type: application/json
### redis_update | reset toggles that are not configured
POST {{base_url}}/rest/feature/redisUpdate
Authorization: Basic system system
Content-Type: application/json
{
"key": "/srv/memoryStatistics/logInterval",
"value": null,
"options": {
"clearSubScopes": true,
"remoteOnly": true
}
}
### redis_update | fts 1
POST {{base_url}}/rest/feature/redisUpdate
Authorization: Basic system system
Content-Type: application/json
{
"key": "/fts/check-service-extension",
"value": true
}
### redis_update | fts 2
POST {{base_url}}/rest/feature/redisUpdate
Authorization: Basic system system
Content-Type: application/json
{
"key": "/fts/check-service-extension",
"value": false,
"scope": { "user": "[email protected]" }
}
### redis_update | memory 1
POST {{base_url}}/rest/feature/redisUpdate
Authorization: Basic system system
Content-Type: application/json
{
"key": "/memory/logInterval",
"value": 1000
}
### redis_update | memory 2
POST {{base_url}}/rest/feature/redisUpdate
Authorization: Basic system system
Content-Type: application/json
{
"key": "/memory/logInterval",
"value": 100
}
### redis_update | memory off
POST {{base_url}}/rest/feature/redisUpdate
Authorization: Basic system system
Content-Type: application/json
{
"key": "/memory/logInterval",
"value": null
}
### redis_update | check 1
POST {{base_url}}/rest/feature/redisUpdate
Authorization: Basic system system
Content-Type: application/json
{
"key": "/check/priority",
"value": 1
}
### redis_update | check 2
POST {{base_url}}/rest/feature/redisUpdate
Authorization: Basic system system
Content-Type: application/json
{
"key": "/check/priority",
"value": 10,
"scope": { "tenant": "people" }
}
### redis_update | check 3
POST {{base_url}}/rest/feature/redisUpdate
Authorization: Basic system system
Content-Type: application/json
{
"key": "/check/priority",
"value": 100,
"scope": { "user": "[email protected]" }
}
### redis_update | reset
POST {{base_url}}/rest/feature/redisUpdate
Authorization: Basic system system
Content-Type: application/json
[
{
"key": "/check/priority",
"value": null,
"options": {
"clearSubScopes": true
}
},
{
"key": "/memory/logInterval",
"value": null,
"options": {
"clearSubScopes": true
}
},
{
"key": "/fts/check-service-extension",
"value": null,
"options": {
"clearSubScopes": true
}
}
]
### redis | send command
POST {{base_url}}/rest/feature/redisSendCommand
Authorization: Basic system system
Content-Type: application/json
{
"command": ["INFO"]
}