Skip to content

Commit

Permalink
Remove translate endpoint. (#1466)
Browse files Browse the repository at this point in the history
  • Loading branch information
keyurva authored Nov 22, 2024
1 parent fec804e commit e95f7a0
Show file tree
Hide file tree
Showing 9 changed files with 848 additions and 1,286 deletions.
1 change: 0 additions & 1 deletion deploy/apigee/target_endpoints/api.template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
(proxy.pathsuffix MatchesPath "/stat/all") OR
(proxy.pathsuffix MatchesPath "/stat/series") OR
(proxy.pathsuffix MatchesPath "/stat/value") OR
(proxy.pathsuffix MatchesPath "/translate") OR
(proxy.pathsuffix MatchesPath "/v1/place/ranking") OR
(proxy.pathsuffix MatchesPath "/v1/place/related") OR
(proxy.pathsuffix MatchesPath "/v1/place/stat-vars/union") OR
Expand Down
2 changes: 0 additions & 2 deletions esp/endpoints.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ usage:
allow_unregistered_calls: true
- selector: "datacommons.Mixer.GetBioPageData"
allow_unregistered_calls: true
- selector: "datacommons.Mixer.Translate"
allow_unregistered_calls: true
- selector: "datacommons.Mixer.Search"
allow_unregistered_calls: true
- selector: "datacommons.Mixer.GetVersion"
Expand Down
1,708 changes: 848 additions & 860 deletions internal/proto/service/mixer.pb.go

Large diffs are not rendered by default.

39 changes: 0 additions & 39 deletions internal/proto/service/mixer_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

258 changes: 0 additions & 258 deletions internal/proto/translate.pb.go

This file was deleted.

7 changes: 0 additions & 7 deletions internal/server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@ import (
"google.golang.org/protobuf/encoding/protojson"
)

// Translate implements API for Mixer.Translate.
func (s *Server) Translate(ctx context.Context, in *pb.TranslateRequest) (
*pb.TranslateResponse, error,
) {
return translator.Translate(ctx, in, s.metadata)
}

// Query implements API for Mixer.Query.
func (s *Server) Query(ctx context.Context, in *pb.QueryRequest) (
*pb.QueryResponse, error,
Expand Down
Loading

0 comments on commit e95f7a0

Please sign in to comment.