forked from 3scale/APIcast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapicast-policy.json
More file actions
32 lines (32 loc) · 825 Bytes
/
apicast-policy.json
File metadata and controls
32 lines (32 loc) · 825 Bytes
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
{
"$schema": "http://apicast.io/policy-v1/schema",
"name": "Ngx example policy",
"summary": "Sets request headers",
"description":
["This policy is meant to be just an example.",
"It sets request headers based on the configuration.",
"And prints a log entry for each header set. " ],
"version": "1.0.0",
"configuration": {
"type": "object",
"properties": {
"set_header": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "HTTP header name"
},
"value": {
"type": "string",
"description": "HTTP header value"
}
},
"required": ["name", "value"]
}
}
}
}
}