-
Notifications
You must be signed in to change notification settings - Fork 171
Expand file tree
/
Copy pathapicast-policy.json
More file actions
47 lines (47 loc) · 1.19 KB
/
apicast-policy.json
File metadata and controls
47 lines (47 loc) · 1.19 KB
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
{
"$schema": "http://apicast.io/policy-v1.1/schema",
"name": "HTTP Status Code Overwrite",
"summary": "Modify the HTTP status code returned by the upstream",
"description": [
"Configures a 1-1 mapping for upstream's http codes."
],
"version": "builtin",
"configuration": {
"type": "object",
"definitions": {
"codes": {
"description": "List of codes to overwrite",
"type": "array",
"items": {
"type": "object",
"required": [
"upstream",
"apicast"
],
"properties": {
"upstream": {
"description": "Upstream HTTP code to replace",
"title": "Upstream",
"type": "integer",
"minimum": 100,
"maximum": 600
},
"apicast": {
"title": "Return HTTP code",
"description": "HTTP code to return",
"type": "integer",
"minimum": 100,
"maximum": 600
}
}
}
}
},
"properties": {
"http_statuses": {
"title": "HTTP status codes map",
"$ref": "#/definitions/codes"
}
}
}
}