Skip to content

Commit cdebb13

Browse files
Add spec for project routing CRUD REST API endpoints (elastic#139634)
1 parent 5176f2c commit cdebb13

File tree

5 files changed

+136
-0
lines changed

5 files changed

+136
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"project_routing.create": {
3+
"documentation": {
4+
"url": null,
5+
"description": "Create or update named project routing expression"
6+
},
7+
"stability": "experimental",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_project_routing/{name}",
17+
"methods": ["PUT"],
18+
"parts": {
19+
"name": {
20+
"type": "string",
21+
"description": "The name of the project routing expression"
22+
}
23+
}
24+
}
25+
]
26+
},
27+
"body": {
28+
"description": "Project routing expression to save",
29+
"required": true
30+
}
31+
}
32+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"project_routing.create_many": {
3+
"documentation": {
4+
"url": null,
5+
"description": "Create or update named project routing expressions"
6+
},
7+
"stability": "experimental",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_project_routing/",
17+
"methods": ["PUT"]
18+
}
19+
]
20+
},
21+
"body": {
22+
"description": "Project routing expressions to save",
23+
"required": true
24+
}
25+
}
26+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"project_routing.delete": {
3+
"documentation": {
4+
"url": null,
5+
"description": "Delete named project routing expression"
6+
},
7+
"stability": "experimental",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_project_routing/{name}",
17+
"methods": ["DELETE"],
18+
"parts": {
19+
"name": {
20+
"type": "string",
21+
"description": "The name of the project routing expression"
22+
}
23+
}
24+
}
25+
]
26+
}
27+
}
28+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"project_routing.get": {
3+
"documentation": {
4+
"url": null,
5+
"description": "Get named project routing expression"
6+
},
7+
"stability": "experimental",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_project_routing/{name}",
17+
"methods": ["GET"],
18+
"parts": {
19+
"name": {
20+
"type": "string",
21+
"description": "The name of the project routing expression"
22+
}
23+
}
24+
}
25+
]
26+
}
27+
}
28+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"project_routing.get_many": {
3+
"documentation": {
4+
"url": null,
5+
"description": "Get named project routing expressions"
6+
},
7+
"stability": "experimental",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_project_routing/",
17+
"methods": ["GET"]
18+
}
19+
]
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)