Skip to content

rrm003/grpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is Golang GRPC server with REST client.

Steps to interact with server

  • Get the docker image for app

docker pull rrm003/user-app:latest
  • Run app image

docker run --publish 8080:8080 rrm003/user-app
  1. Create User
   curl -X 'POST' \
   'http://localhost:8080/v1/user' \
   -H 'accept: application/json' \
   -H 'Content-Type: application/json' \
   -d '{
   "fname": "string",
   "age": 0,
   "city": "string",
   "phone": 0,
   "height": 0,
   "married": true
   }'
  1. Get User Details
   curl -X 'GET' \
   'http://localhost:8080/v1/user/1' \
   -H 'accept: application/json'
  1. Get All User Details
   curl -X 'GET' \
   'http://localhost:8080/v1/user' \
   -H 'accept: application/json'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published