@@ -5,6 +5,8 @@ option go_package = "github.com/erda-project/erda-proto-go/core/hepa/endpoint_ap
55import "google/api/annotations.proto" ;
66import "google/protobuf/struct.proto" ;
77import "core/hepa/hepa.proto" ;
8+ import "common/http.proto" ;
9+ import "common/openapi.proto" ;
810
911// +publish service:"hepa"
1012service EndpointApiService {
@@ -90,6 +92,23 @@ service EndpointApiService {
9092 };
9193 }
9294
95+ rpc ListInvalidEndpointApi (common .VoidRequest ) returns (ListInvalidEndpointApiResp ) {
96+ option (google .api .http ) = {
97+ get : "/api /gateway /openapi /invalid -endpoints ",
98+ };
99+ option(erda.common.openapi) = {
100+ path: "/api/gateway/openapi/invalid-endpoints",
101+ };
102+ }
103+
104+ rpc ClearInvalidEndpointApi(common.VoidRequest) returns (common.VoidResponse) {
105+ option(google.api.http) = {
106+ delete: "/api/gateway/openapi/invalid-endpoints",
107+ };
108+ option(erda.common.openapi) = {
109+ path: "/api/gateway/openapi/invalid-endpoints",
110+ };
111+ }
93112}
94113
95114message ChangeEndpointRootResponse {
@@ -129,7 +148,7 @@ message EndpointApi {
129148 string redirectType = 2 ;
130149 string redirectAddr = 3 ;
131150 string redirectPath = 4 ;
132- string redirectApp = 5 ;
151+ string redirectApp = 5 ;
133152 string redirectService = 6 ;
134153 string redirectRuntimeId = 7 ;
135154 string redirectRuntimeName = 8 ;
@@ -234,4 +253,20 @@ message GetEndpointRequest {
234253
235254message GetEndpointResponse {
236255 Endpoint data = 1 ;
256+ }
257+
258+ message ListInvalidEndpointApiResp {
259+ repeated ListInvalidEndpointApiItem list = 1 ;
260+ }
261+
262+ message ListInvalidEndpointApiItem {
263+ string invalidReason = 1 ;
264+ string type = 2 ;
265+ string projectID = 3 ;
266+ string packageID = 4 ;
267+ string packageApiID = 5 ;
268+ string upstreamApiID = 6 ;
269+ string upstreamID = 7 ;
270+ string upstreamName = 8 ;
271+ string runtimeID = 9 ;
237272}
0 commit comments