This repo contains grpc server and client using Rust and actix-web. It includes basic CRUD operations with MongoDB.
cargo run --bin server
cargo run --bin client
Client includes several APIs to communicate with grpc server.
- Create User
- Request
{
"name": "John Doe",
"email": "test@test.com",
"password": "password",
"age": 25
}
- Response
{
"message": "User created"
}
- Get User
- Request
{
"email": ""
}
- Response
{
"name": "",
"email": "",
"age": ,
"message": "User found"
}
- Update User
- Request
{
"name": "",
"email": "",
"age":
}
- Response
{
"message": "User updated successfully"
}
- Delete User
- Request
{
"email": ""
}
- Response
{
"message": "User deleted"
}