Giter Site home page Giter Site logo

Comments (9)

 avatar commented on May 2, 2024

I'm currently working on it, and do you have any idea about api reponse status code?
grpc-gateway/runtime#HTTPStatusFromCode returns http status code from grpc error code, but I can't get error code from doc generator.

How about defining all?

from grpc-gateway.

 avatar commented on May 2, 2024

+ Some protobuf file to declare swagger fields are required.

from grpc-gateway.

 avatar commented on May 2, 2024

One additional note.
Google discovery doc seems like a fork of swagger without error codes.

from grpc-gateway.

philips avatar philips commented on May 2, 2024

@ceram1 Can you post your current WIP branch somewhere?

from grpc-gateway.

 avatar commented on May 2, 2024

@philips Sorry for delay.

I uploaded on ceram1/grpc-gateway@3fcd9e2

It's just a backup commit, as I could not finish swagger support.

I used this command to test this, from $GOPATH/src/github.com/gengo/grpc-gateway/

go install ./protoc-gen-swagger/ && protoc -I. -I$GOPATH/src -I$GOPATH/src/github.com/gengo/grpc-gateway/third_party/googleapis  --swagger_out=. examples/a_bit_of_everything.proto 

from grpc-gateway.

gosuri avatar gosuri commented on May 2, 2024

hey @ceram1, great job on swagger spec! How's it coming along?

from grpc-gateway.

 avatar commented on May 2, 2024

@gosuri I can't do it more, but it will not be hard to build a google discovery document generator.

from grpc-gateway.

gosuri avatar gosuri commented on May 2, 2024

Gotcha! No worries :)

from grpc-gateway.

achew22 avatar achew22 commented on May 2, 2024

I think this can now be closed

from grpc-gateway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.