-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use grpc-gateway to create restful services.
* Add grpc-gateway annotations to the services and include them in the buf file * We will use grpc-gateway to create restful services accessible form the vscode extension so that we don't have to rely on grpc-web
- Loading branch information
Showing
7 changed files
with
394 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Protocol buffers | ||
|
||
We use protocol buffers as a way of defining APIs and data resources. | ||
|
||
## Developer Guide | ||
|
||
Language bindings are generated using [buf](https://buf.build/docs/introduction) | ||
|
||
``` | ||
buf generate | ||
``` | ||
|
||
In the past we've run into issues generating grpc bindings for python; | ||
see [bufbuild/buf#1344](https://github.com/bufbuild/buf/issues/1344). As of right | ||
now we aren't using grpc in python so hopefully we don't need to worry about this and | ||
if we do hopefully the issue has been resolved by now. | ||
|
||
|
||
## GRPC-Gateway | ||
|
||
We [grpc-gateway](https://grpc-ecosystem.github.io/grpc-gateway/) to generate RESTful services from our grpc services. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Generated by buf. DO NOT EDIT. | ||
version: v1 | ||
deps: | ||
- remote: buf.build | ||
owner: googleapis | ||
repository: googleapis | ||
commit: 7a6bc1e3207144b38e9066861e1de0ff | ||
digest: shake256:d646836485c34192401253703c4e7ce899c826fceec060bf4b2a62c4749bd9976dc960833e134a1f814725e1ffd60b1bb3cf0335a7e99ef0e8cec34b070ffb66 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ breaking: | |
lint: | ||
use: | ||
- DEFAULT | ||
deps: | ||
- buf.build/googleapis/googleapis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.