- Source code : https://github.com/rrm003/grpc
- Docker image : https://hub.docker.com/r/rrm003/user-app
docker pull rrm003/user-app:latest
docker run --publish 8080:8080 rrm003/user-app
- Detail doumentaion for API : (https://rrm003.github.io/grpc)
- 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
}'
- Get User Details
curl -X 'GET' \
'http://localhost:8080/v1/user/1' \
-H 'accept: application/json'
- Get All User Details
curl -X 'GET' \
'http://localhost:8080/v1/user' \
-H 'accept: application/json'