Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use -grpc-gateway_out sp that the result is in a specific folder? #1042

Closed
tegk opened this issue Sep 12, 2019 · 1 comment
Closed

Comments

@tegk
Copy link

tegk commented Sep 12, 2019

How can I specify that the generated swagger and gateway code are in a different folder than the proto file?

I tried logtostderr=true:rest but this did not work for me :-(

Thanks

generate:
	protoc -I/usr/local/include -I. \
      --go_out=plugins=grpc:. \
     proto/contract.proto
	protoc -I/usr/local/include -I. \
	  -I$(GOPATH)/src \
      -I$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
      --grpc-gateway_out=logtostderr=true,grpc_api_configuration=rest/service.yaml:. \
      proto/contract.proto
	protoc -I/usr/local/include -I. \
     -I$(GOPATH)/src \
     -I$(GOPATH)/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
     --swagger_out=logtostderr=true,grpc_api_configuration=rest/service.yaml:. \
     proto/contract.proto



@johanbrandhorst
Copy link
Collaborator

This is the kind of thing that is best explained over chat. Please join the gophers slack #grpc-gateway channel and we can discuss this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants