Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: use POST for custom methods (#13299)

Danny Xufc9d931ca2cd
diff --git a/frontend/src/types/proto/v1/anomaly_service.ts b/frontend/src/types/proto/v1/anomaly_service.ts
index a80956a54d..a148a7b1cb 100644
--- a/frontend/src/types/proto/v1/anomaly_service.ts
+++ b/frontend/src/types/proto/v1/anomaly_service.ts
@@ -820,7 +820,7 @@ export const AnomalyServiceDefinition = {
578365826: [
new Uint8Array([
22,
- 18,
+ 34,
20,
47,
118,
diff --git a/frontend/src/types/proto/v1/issue_service.ts b/frontend/src/types/proto/v1/issue_service.ts
index 64b0bf0397..0c4b83b5fe 100644
--- a/frontend/src/types/proto/v1/issue_service.ts
+++ b/frontend/src/types/proto/v1/issue_service.ts
@@ -4364,7 +4364,7 @@ export const IssueServiceDefinition = {
578365826: [
new Uint8Array([
39,
- 18,
+ 34,
37,
47,
118,
diff --git a/frontend/src/types/proto/v1/plan_service.ts b/frontend/src/types/proto/v1/plan_service.ts
index ec997f3717..5ad0ca34f7 100644
--- a/frontend/src/types/proto/v1/plan_service.ts
+++ b/frontend/src/types/proto/v1/plan_service.ts
@@ -3683,7 +3683,7 @@ export const PlanServiceDefinition = {
578365826: [
new Uint8Array([
38,
- 18,
+ 34,
36,
47,
118,
diff --git a/frontend/src/types/proto/v1/project_service.ts b/frontend/src/types/proto/v1/project_service.ts
index 9590a2465f..928938ab1a 100644
--- a/frontend/src/types/proto/v1/project_service.ts
+++ b/frontend/src/types/proto/v1/project_service.ts
@@ -3062,7 +3062,7 @@ export const ProjectServiceDefinition = {
578365826: [
new Uint8Array([
21,
- 18,
+ 34,
19,
47,
118,
diff --git a/frontend/src/types/proto/v1/sql_service.ts b/frontend/src/types/proto/v1/sql_service.ts
index bafd09f641..fdc259b7d0 100644
--- a/frontend/src/types/proto/v1/sql_service.ts
+++ b/frontend/src/types/proto/v1/sql_service.ts
@@ -3526,7 +3526,7 @@ export const SQLServiceDefinition = {
578365826: [
new Uint8Array([
27,
- 18,
+ 34,
25,
47,
118,
diff --git a/frontend/src/types/proto/v1/worksheet_service.ts b/frontend/src/types/proto/v1/worksheet_service.ts
index e1ec4559e7..fef5b83952 100644
--- a/frontend/src/types/proto/v1/worksheet_service.ts
+++ b/frontend/src/types/proto/v1/worksheet_service.ts
@@ -1134,7 +1134,7 @@ export const WorksheetServiceDefinition = {
578365826: [
new Uint8Array([
23,
- 18,
+ 34,
21,
47,
118,
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index 9582f8ffb0..64212e231c 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -120,7 +120,7 @@ paths:
schema:
$ref: '#/components/schemas/Status'
/v1/anomalies:search:
- get:
+ post:
tags:
- AnomalyService
operationId: AnomalyService_SearchAnomalies
@@ -4916,7 +4916,7 @@ paths:
schema:
$ref: '#/components/schemas/Status'
/v1/projects/{project}/issues:search:
- get:
+ post:
tags:
- IssueService
description: Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query.
@@ -5253,7 +5253,7 @@ paths:
schema:
$ref: '#/components/schemas/Status'
/v1/projects/{project}/plans:search:
- get:
+ post:
tags:
- PlanService
description: Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query.
@@ -6526,7 +6526,7 @@ paths:
schema:
$ref: '#/components/schemas/Status'
/v1/projects:search:
- get:
+ post:
tags:
- ProjectService
operationId: ProjectService_SearchProjects
@@ -6550,7 +6550,7 @@ paths:
schema:
$ref: '#/components/schemas/Status'
/v1/queryHistories:search:
- get:
+ post:
tags:
- SQLService
description: SearchQueryHistories searches query histories for the caller.
@@ -7882,7 +7882,7 @@ paths:
schema:
$ref: '#/components/schemas/Status'
/v1/worksheets:search:
- get:
+ post:
tags:
- WorksheetService
description: |-
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index d889c27765..cc279a9a4f 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -3703,7 +3703,7 @@ e.g. the database schema had been changed without bytebase migration.</p></td>
<tr>
<td>SearchAnomalies</td>
- <td>GET</td>
+ <td>POST</td>
<td>/v1/anomalies:search</td>
<td></td>
</tr>
@@ -17115,7 +17115,7 @@ The access is based on approval flow.</p></td>
<tr>
<td>SearchIssues</td>
- <td>GET</td>
+ <td>POST</td>
<td>/v1/{parent=projects/*}/issues:search</td>
<td></td>
</tr>
@@ -20015,7 +20015,7 @@ The plan creator and the user with bb.plans.update permission on the project can
<tr>
<td>SearchPlans</td>
- <td>GET</td>
+ <td>POST</td>
<td>/v1/{parent=projects/*}/plans:search</td>
<td></td>
</tr>
@@ -21477,7 +21477,7 @@ TYPE_SQL_EDITOR_QUERY represents executing query in SQL Editor.</p></td>
<tr>
<td>SearchProjects</td>
- <td>GET</td>
+ <td>POST</td>
<td>/v1/projects:search</td>
<td></td>
</tr>
@@ -29103,7 +29103,7 @@ to retrieve the next page of history. </p></td>
<tr>
<td>SearchQueryHistories</td>
- <td>GET</td>
+ <td>POST</td>
<td>/v1/queryHistories:search</td>
<td></td>
</tr>
@@ -30713,7 +30713,7 @@ The access is the same as UpdateWorksheet method.</p></td>
<tr>
<td>SearchWorksheets</td>
- <td>GET</td>
+ <td>POST</td>
<td>/v1/worksheets:search</td>
<td></td>
</tr>
diff --git a/proto/generated-go/v1/anomaly_service.pb.go b/proto/generated-go/v1/anomaly_service.pb.go
index 3262d48c38..c6fde542a7 100644
--- a/proto/generated-go/v1/anomaly_service.pb.go
+++ b/proto/generated-go/v1/anomaly_service.pb.go
@@ -698,7 +698,7 @@ var file_v1_anomaly_service_proto_rawDesc = []byte{
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x6e, 0x6f,
0x6d, 0x61, 0x6c, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x20,
- 0x90, 0xea, 0x30, 0x02, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x12, 0x14, 0x2f, 0x76, 0x31, 0x2f,
+ 0x90, 0xea, 0x30, 0x02, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x22, 0x14, 0x2f, 0x76, 0x31, 0x2f,
0x61, 0x6e, 0x6f, 0x6d, 0x61, 0x6c, 0x69, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68,
0x42, 0x11, 0x5a, 0x0f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f,
0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
diff --git a/proto/generated-go/v1/anomaly_service.pb.gw.go b/proto/generated-go/v1/anomaly_service.pb.gw.go
index 6917538a5b..1ac7e4b0a6 100644
--- a/proto/generated-go/v1/anomaly_service.pb.gw.go
+++ b/proto/generated-go/v1/anomaly_service.pb.gw.go
@@ -74,7 +74,7 @@ func local_request_AnomalyService_SearchAnomalies_0(ctx context.Context, marshal
// GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterAnomalyServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AnomalyServiceServer) error {
- mux.Handle("GET", pattern_AnomalyService_SearchAnomalies_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_AnomalyService_SearchAnomalies_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
@@ -140,7 +140,7 @@ func RegisterAnomalyServiceHandler(ctx context.Context, mux *runtime.ServeMux, c
// "AnomalyServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterAnomalyServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AnomalyServiceClient) error {
- mux.Handle("GET", pattern_AnomalyService_SearchAnomalies_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_AnomalyService_SearchAnomalies_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
diff --git a/proto/generated-go/v1/issue_service.pb.go b/proto/generated-go/v1/issue_service.pb.go
index 2a4531b953..423027a8ce 100644
--- a/proto/generated-go/v1/issue_service.pb.go
+++ b/proto/generated-go/v1/issue_service.pb.go
@@ -3244,7 +3244,7 @@ var file_v1_issue_service_proto_rawDesc = []byte{
0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68,
0x49, 0x73, 0x73, 0x75, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42,
0x8a, 0xea, 0x30, 0x0d, 0x62, 0x62, 0x2e, 0x69, 0x73, 0x73, 0x75, 0x65, 0x73, 0x2e, 0x67, 0x65,
- 0x74, 0x90, 0xea, 0x30, 0x02, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x12, 0x25, 0x2f, 0x76, 0x31,
+ 0x74, 0x90, 0xea, 0x30, 0x02, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x22, 0x25, 0x2f, 0x76, 0x31,
0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72,
0x63, 0x68, 0x12, 0xa3, 0x01, 0x0a, 0x0b, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x73, 0x73,
diff --git a/proto/generated-go/v1/issue_service.pb.gw.go b/proto/generated-go/v1/issue_service.pb.gw.go
index c76e92d20b..131dcb3651 100644
--- a/proto/generated-go/v1/issue_service.pb.gw.go
+++ b/proto/generated-go/v1/issue_service.pb.gw.go
@@ -953,7 +953,7 @@ func RegisterIssueServiceHandlerServer(ctx context.Context, mux *runtime.ServeMu
})
- mux.Handle("GET", pattern_IssueService_SearchIssues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_IssueService_SearchIssues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
@@ -1285,7 +1285,7 @@ func RegisterIssueServiceHandlerClient(ctx context.Context, mux *runtime.ServeMu
})
- mux.Handle("GET", pattern_IssueService_SearchIssues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_IssueService_SearchIssues_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
diff --git a/proto/generated-go/v1/plan_service.pb.go b/proto/generated-go/v1/plan_service.pb.go
index 6e64a262c6..f5384a35c9 100644
--- a/proto/generated-go/v1/plan_service.pb.go
+++ b/proto/generated-go/v1/plan_service.pb.go
@@ -2524,7 +2524,7 @@ var file_v1_plan_service_proto_rawDesc = []byte{
0x68, 0x50, 0x6c, 0x61, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x49,
0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x8a, 0xea, 0x30, 0x0c, 0x62, 0x62, 0x2e,
0x70, 0x6c, 0x61, 0x6e, 0x73, 0x2e, 0x67, 0x65, 0x74, 0x90, 0xea, 0x30, 0x02, 0x82, 0xd3, 0xe4,
- 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
+ 0x93, 0x02, 0x26, 0x22, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x6c, 0x61,
0x6e, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x91, 0x01, 0x0a, 0x0a, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x61, 0x6e, 0x12, 0x1e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
diff --git a/proto/generated-go/v1/plan_service.pb.gw.go b/proto/generated-go/v1/plan_service.pb.gw.go
index ee9dffac5d..748f08ed5e 100644
--- a/proto/generated-go/v1/plan_service.pb.gw.go
+++ b/proto/generated-go/v1/plan_service.pb.gw.go
@@ -630,7 +630,7 @@ func RegisterPlanServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux
})
- mux.Handle("GET", pattern_PlanService_SearchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_PlanService_SearchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
@@ -865,7 +865,7 @@ func RegisterPlanServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux
})
- mux.Handle("GET", pattern_PlanService_SearchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_PlanService_SearchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
diff --git a/proto/generated-go/v1/project_service.pb.go b/proto/generated-go/v1/project_service.pb.go
index 88caf6322a..37c3bc6d02 100644
--- a/proto/generated-go/v1/project_service.pb.go
+++ b/proto/generated-go/v1/project_service.pb.go
@@ -2362,7 +2362,7 @@ var file_v1_project_service_proto_rawDesc = []byte{
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x50, 0x72, 0x6f,
0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0xda,
- 0x41, 0x00, 0x90, 0xea, 0x30, 0x02, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x12, 0x13, 0x2f, 0x76,
+ 0x41, 0x00, 0x90, 0xea, 0x30, 0x02, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x15, 0x22, 0x13, 0x2f, 0x76,
0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63,
0x68, 0x12, 0x84, 0x01, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a,
0x65, 0x63, 0x74, 0x12, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76,
diff --git a/proto/generated-go/v1/project_service.pb.gw.go b/proto/generated-go/v1/project_service.pb.gw.go
index 20b1ec30c5..e9b29bfb34 100644
--- a/proto/generated-go/v1/project_service.pb.gw.go
+++ b/proto/generated-go/v1/project_service.pb.gw.go
@@ -1020,7 +1020,7 @@ func RegisterProjectServiceHandlerServer(ctx context.Context, mux *runtime.Serve
})
- mux.Handle("GET", pattern_ProjectService_SearchProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_ProjectService_SearchProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
@@ -1455,7 +1455,7 @@ func RegisterProjectServiceHandlerClient(ctx context.Context, mux *runtime.Serve
})
- mux.Handle("GET", pattern_ProjectService_SearchProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_ProjectService_SearchProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
diff --git a/proto/generated-go/v1/sql_service.pb.go b/proto/generated-go/v1/sql_service.pb.go
index 6bfb94d0f8..a406ee7c70 100644
--- a/proto/generated-go/v1/sql_service.pb.go
+++ b/proto/generated-go/v1/sql_service.pb.go
@@ -2545,7 +2545,7 @@ var file_v1_sql_service_proto_rawDesc = []byte{
0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x51,
0x75, 0x65, 0x72, 0x79, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x90, 0xea, 0x30, 0x02, 0x82, 0xd3, 0xe4, 0x93, 0x02,
- 0x1b, 0x12, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x48, 0x69, 0x73, 0x74,
+ 0x1b, 0x22, 0x19, 0x2f, 0x76, 0x31, 0x2f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x48, 0x69, 0x73, 0x74,
0x6f, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0xe4, 0x01, 0x0a,
0x06, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x1a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75,
diff --git a/proto/generated-go/v1/sql_service.pb.gw.go b/proto/generated-go/v1/sql_service.pb.gw.go
index af6c7ff70c..af06318566 100644
--- a/proto/generated-go/v1/sql_service.pb.gw.go
+++ b/proto/generated-go/v1/sql_service.pb.gw.go
@@ -749,7 +749,7 @@ func RegisterSQLServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux,
return
})
- mux.Handle("GET", pattern_SQLService_SearchQueryHistories_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_SQLService_SearchQueryHistories_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
@@ -1128,7 +1128,7 @@ func RegisterSQLServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux,
})
- mux.Handle("GET", pattern_SQLService_SearchQueryHistories_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_SQLService_SearchQueryHistories_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
diff --git a/proto/generated-go/v1/worksheet_service.pb.go b/proto/generated-go/v1/worksheet_service.pb.go
index c6082596aa..6f30a040dd 100644
--- a/proto/generated-go/v1/worksheet_service.pb.go
+++ b/proto/generated-go/v1/worksheet_service.pb.go
@@ -825,7 +825,7 @@ var file_v1_worksheet_service_proto_rawDesc = []byte{
0x74, 0x1a, 0x25, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x73,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x21, 0x90, 0xea, 0x30, 0x02, 0x82, 0xd3,
- 0xe4, 0x93, 0x02, 0x17, 0x12, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68,
+ 0xe4, 0x93, 0x02, 0x17, 0x22, 0x15, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x68,
0x65, 0x65, 0x74, 0x73, 0x3a, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0xa0, 0x01, 0x0a, 0x0f,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x68, 0x65, 0x65, 0x74, 0x12,
0x23, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70,
diff --git a/proto/generated-go/v1/worksheet_service.pb.gw.go b/proto/generated-go/v1/worksheet_service.pb.gw.go
index 1e775121c3..53d58d4e3f 100644
--- a/proto/generated-go/v1/worksheet_service.pb.gw.go
+++ b/proto/generated-go/v1/worksheet_service.pb.gw.go
@@ -454,7 +454,7 @@ func RegisterWorksheetServiceHandlerServer(ctx context.Context, mux *runtime.Ser
})
- mux.Handle("GET", pattern_WorksheetService_SearchWorksheets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_WorksheetService_SearchWorksheets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
@@ -639,7 +639,7 @@ func RegisterWorksheetServiceHandlerClient(ctx context.Context, mux *runtime.Ser
})
- mux.Handle("GET", pattern_WorksheetService_SearchWorksheets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ mux.Handle("POST", pattern_WorksheetService_SearchWorksheets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
diff --git a/proto/v1/anomaly_service.proto b/proto/v1/anomaly_service.proto
index 8048f0838b..765b9365d8 100644
--- a/proto/v1/anomaly_service.proto
+++ b/proto/v1/anomaly_service.proto
@@ -11,7 +11,7 @@ option go_package = "generated-go/v1";
service AnomalyService {
rpc SearchAnomalies(SearchAnomaliesRequest) returns (SearchAnomaliesResponse) {
- option (google.api.http) = {get: "/v1/anomalies:search"};
+ option (google.api.http) = {post: "/v1/anomalies:search"};
option (bytebase.v1.auth_method) = CUSTOM;
}
}
diff --git a/proto/v1/issue_service.proto b/proto/v1/issue_service.proto
index 4e84f88c0e..23f8d457ae 100644
--- a/proto/v1/issue_service.proto
+++ b/proto/v1/issue_service.proto
@@ -42,7 +42,7 @@ service IssueService {
// Search for issues that the caller has the bb.issues.get permission on and also satisfy the specified filter & query.
rpc SearchIssues(SearchIssuesRequest) returns (SearchIssuesResponse) {
- option (google.api.http) = {get: "/v1/{parent=projects/*}/issues:search"};
+ option (google.api.http) = {post: "/v1/{parent=projects/*}/issues:search"};
option (bytebase.v1.permission) = "bb.issues.get";
option (bytebase.v1.auth_method) = CUSTOM;
}
diff --git a/proto/v1/plan_service.proto b/proto/v1/plan_service.proto
index a9d895bd63..a237f0b0a0 100644
--- a/proto/v1/plan_service.proto
+++ b/proto/v1/plan_service.proto
@@ -31,7 +31,7 @@ service PlanService {
// Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query.
rpc SearchPlans(SearchPlansRequest) returns (SearchPlansResponse) {
- option (google.api.http) = {get: "/v1/{parent=projects/*}/plans:search"};
+ option (google.api.http) = {post: "/v1/{parent=projects/*}/plans:search"};
option (google.api.method_signature) = "parent";
option (bytebase.v1.permission) = "bb.plans.get";
option (bytebase.v1.auth_method) = CUSTOM;
diff --git a/proto/v1/project_service.proto b/proto/v1/project_service.proto
index 71720ccf58..713fb0392d 100644
--- a/proto/v1/project_service.proto
+++ b/proto/v1/project_service.proto
@@ -30,7 +30,7 @@ service ProjectService {
}
rpc SearchProjects(SearchProjectsRequest) returns (SearchProjectsResponse) {
- option (google.api.http) = {get: "/v1/projects:search"};
+ option (google.api.http) = {post: "/v1/projects:search"};
option (google.api.method_signature) = "";
option (bytebase.v1.auth_method) = CUSTOM;
// TODO(d): secure it.
diff --git a/proto/v1/sql_service.proto b/proto/v1/sql_service.proto
index a6a3842be6..98537c29bd 100644
--- a/proto/v1/sql_service.proto
+++ b/proto/v1/sql_service.proto
@@ -41,6 +41,7 @@ service SQLService {
}
rpc AdminExecute(stream AdminExecuteRequest) returns (stream AdminExecuteResponse) {
+ // GRPC streaming / websocket requires GET method instead of POST.
option (google.api.http) = {get: "/v1:adminExecute"};
option (bytebase.v1.permission) = "bb.instances.adminExecute";
option (bytebase.v1.auth_method) = IAM;
@@ -49,7 +50,7 @@ service SQLService {
// SearchQueryHistories searches query histories for the caller.
rpc SearchQueryHistories(SearchQueryHistoriesRequest) returns (SearchQueryHistoriesResponse) {
- option (google.api.http) = {get: "/v1/queryHistories:search"};
+ option (google.api.http) = {post: "/v1/queryHistories:search"};
option (bytebase.v1.auth_method) = CUSTOM;
}
diff --git a/proto/v1/worksheet_service.proto b/proto/v1/worksheet_service.proto
index d76c0af3a4..3e24f7582d 100644
--- a/proto/v1/worksheet_service.proto
+++ b/proto/v1/worksheet_service.proto
@@ -38,7 +38,7 @@ service WorksheetService {
// This is used for finding my worksheets or worksheets shared by other people.
// The sheet accessibility is the same as GetWorksheet().
rpc SearchWorksheets(SearchWorksheetsRequest) returns (SearchWorksheetsResponse) {
- option (google.api.http) = {get: "/v1/worksheets:search"};
+ option (google.api.http) = {post: "/v1/worksheets:search"};
option (bytebase.v1.auth_method) = CUSTOM;
}