Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 998 Bytes

File metadata and controls

54 lines (41 loc) · 998 Bytes

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'