Skip to content

mynalabsai/grpc_gateway_media_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gRPC-gateway for mediafiles

Example of service thar provides both HTTP API and gRPC, common logic wrapper, and allows using mediafiles.

Usage

Run

go run main.go

Check plain request

curl localhost:8080/v1/echo  -H "Content-Type: applicaton/json" -d@request_plain.json

Use macros in request

curl localhost:8080/v1/echo  -H "Content-Type: multipart/form-data" -F 'data=@request_macros.json' -F '[email protected]'

You can also send gRPC requests to localhost:9090. We use grpcurl.

grpcurl --plaintext -d @ localhost:9090  echoproto.EchoService.Echo < request_plain.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published