1
0
mirror of https://github.com/getsops/sops.git synced 2026-02-05 21:45:26 +01:00
Files
AJ Bahnken 15dfcfafcb Vendoring update (#472)
It's been around 9 months since our last vendor update. This is also
needed for some new features being worked on for sops workspace.

Additionally, this PR regenerates the kms mocks.
2019-06-06 17:40:34 +00:00
..
2019-06-06 17:40:34 +00:00
2019-06-06 17:40:34 +00:00
2019-06-06 17:40:34 +00:00
2019-06-06 17:40:34 +00:00
2019-06-06 17:40:34 +00:00
2019-06-06 17:40:34 +00:00
2019-06-06 17:40:34 +00:00
2019-06-06 17:40:34 +00:00

One way to run the example

# Handle dependencies
$ dep init

Follow the guides from this README.md to run the server and gateway.

# Make sure you are in the correct directory: 
# $GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/examples
$ cd examples/browser
$ pwd

# Install gulp
$ npm install -g gulp-cli
$ npm install
$ gulp

# Run
$ gulp bower
$ gulp backends

Then you can use curl or a browser to test:

# List all apis
$ curl http://localhost:8080/swagger/echo_service.swagger.json

# Visit the apis
$ curl -XPOST http://localhost:8080/v1/example/echo/foo
{"id":"foo"}

$ curl  http://localhost:8080/v1/example/echo/foo/123
{"id":"foo","num":"123"}

So you have visited the apis by HTTP successfully. You can also try other apis.