api-mountebank

module
v0.0.0-...-10dff14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2023 License: MIT

README

mountebank-sidecar

Sidecar Restful Api in charge to establish a standard interface fo Mountebank

During testing Commands
curl -sS -H "Content-Type: application/json"\
         -H "Accept: application/json"\
         -X GET http://localhost:3000/ | jq .
Display Response Headers
curl -vsS -H "Content-Type: application/json" \
          -H "Accept: application/json"\
          -X GET http://localhost:3000/ | jq .
Kubernetes testing
curl -sS -H "Content-Type: application/json" \
          -H "Accept: application/json"\
          -X GET http://mountebank.local.io/ | jq .
curl -sS -H "Content-Type: application/json" \
          -H "Accept: application/json"\
          -X GET http://mountebank.local.io/planets | jq .
curl -sS -H "Content-Type: application/json" \
          -H "Accept: application/json"\
          -X GET http://mountebank.local.io/planet/jupiter | jq .

Working with gRPC

Generate gRPC Go code from Protobuf files

Double check the following link for more information: Generate gRPC Code

protoc --go_out=pkg/ --go_opt=paths=source_relative \
       --go-grpc_out=pkg/ --go-grpc_opt=paths=source_relative \
       proto/*.proto

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL