command
module
Version:
v0.0.0-...-fde96c3
Opens a new window with list of versions in this module.
Published: Nov 11, 2024
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
grpc-with-http
This repo demonstrates how to setup a gRPC service with a HTTP gateway, forked from a boilerplate repo https://github.com/johanbrandhorst/grpc-gateway-boilerplate.
Setup
make generate
Running
$ go run main.go
The HTTP endpoint is served on https://0.0.0.0:10000.
A Swagger UI is served on https://0.0.0.0:11000/.
Requests
POST:
curl -X 'POST' \
'https://localhost:11000/api/v1/users' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{}'
GET:
curl -X 'GET' \
'https://localhost:11000/api/v1/users' \
-H 'accept: application/json'
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.