Skip to content

ikouchiha47/grpc_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grpc_api

Unary for now

Requirements

  • golang
  • protoc (optional)
  • google.golang.org/grpc

How to run

  • go run server/main.go
  • go run server/client.go

Curl requests

  • curl localhost:8000/create_user -H 'Content-Type: application/x-www-form-urlencoded' -d 'email=k@b.c&name=kbc&password=abcd1234
  • curl localhost:8000/login_user -H 'Content-Type: application/x-www-form-urlencoded' -d 'email=k@b.c&password=abcd1234'
  • curl localhost:8000/user?id=1 -H 'Authorization: <Token>

About

Test grpc how to

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages