Skip to content

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

Closed
@tegk

Description

@tegk

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



Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions