Skip to content

Commit e601c4d

Browse files
committed
PR Fixes
1 parent 2b7ad57 commit e601c4d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

modules/streams/src/main/java/org/elasticsearch/rest/streams/logs/RestSetLogStreamsEnabledAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import java.io.IOException;
2121
import java.util.List;
2222

23-
import static org.elasticsearch.rest.RestRequest.Method.GET;
23+
import static org.elasticsearch.rest.RestRequest.Method.POST;
2424

2525
@ServerlessScope(Scope.PUBLIC)
2626
public class RestSetLogStreamsEnabledAction extends BaseRestHandler {
@@ -31,7 +31,7 @@ public String getName() {
3131

3232
@Override
3333
public List<Route> routes() {
34-
return List.of(new Route(GET, "/_streams/logs/_enable"), new Route(GET, "/_streams/logs/_disable"));
34+
return List.of(new Route(POST, "/_streams/logs/_enable"), new Route(POST, "/_streams/logs/_disable"));
3535
}
3636

3737
@Override

rest-api-spec/src/main/resources/rest-api-spec/api/streams.logs_disable.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Disable the Logs Streams feature for this cluster"
66
},
77
"stability": "stable",
8-
"visibility": "public",
8+
"visibility": "feature_flag",
99
"headers": {
1010
"accept": [
1111
"application/json",
@@ -17,7 +17,7 @@
1717
{
1818
"path": "/_streams/logs/_disable",
1919
"methods": [
20-
"GET"
20+
"POST"
2121
]
2222
}
2323
]

rest-api-spec/src/main/resources/rest-api-spec/api/streams.logs_enable.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Enable the Logs Streams feature for this cluster"
66
},
77
"stability": "stable",
8-
"visibility": "public",
8+
"visibility": "feature_flag",
99
"headers": {
1010
"accept": [
1111
"application/json",
@@ -17,7 +17,7 @@
1717
{
1818
"path": "/_streams/logs/_enable",
1919
"methods": [
20-
"GET"
20+
"POST"
2121
]
2222
}
2323
]

rest-api-spec/src/main/resources/rest-api-spec/api/streams.status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Return the current status of the streams feature for each streams type"
66
},
77
"stability": "stable",
8-
"visibility": "public",
8+
"visibility": "feature_flag",
99
"headers": {
1010
"accept": [
1111
"application/json"

0 commit comments

Comments
 (0)