git clone --recurse-submodules --remote-submodules https://github.com/shovanmaity/grpc-task.git
cd grpc-task
make run
curl http://0.0.0.0:8090/api/v1/shovan/profile
{"code":16,"message":"authorization token not found","details":[]}
curl -X PUT http://0.0.0.0:8090/api/v1/shovan/profile -d '{"name":"Shovan Maity", "email":"shovan.cse91+1@gmail.com"}'
{"code":16,"message":"authorization token not found","details":[]}
curl -X POST http://localhost:8090/api/v1/registration -d '{"username":"shovan", "password":"shovan"}'
{"jwt":"JWT_TOKEN"}
curl -X POST http://localhost:8090/api/v1/login -d '{"username":"shovan", "password":"shovan"}'
{"jwt":"JWT_TOKEN"}
curl http://0.0.0.0:8090/api/v1/shovan/profile -H "authorization: Token ${JWT_TOKEN}"
{"username":"shovan", "name":"", "email":""}
curl -X PUT http://0.0.0.0:8090/api/v1/shovan/profile -H "Authorization: Token ${JWT_TOKEN}" -d '{"name":"Shovan Maity", "email":"shovan.cse91@gmail.com"}'
curl http://0.0.0.0:8090/api/v1/shovan/profile -H "Authorization: Token ${JWT_TOKEN}"
{"username":"shovan", "name":"Shovan Maity", "email":"shovan.cse91@gmail.com"}
curl -X DELETE http://localhost:8090/api/v1/logout -H "authorization: Token ${JWT_TOKEN}"
curl http://0.0.0.0:8090/api/v1/shovan/profile -H "Authorization: Token ${JWT_TOKEN}"
{"code":16, "message":"invalid session", "details":[]}
curl -X PUT http://0.0.0.0:8090/api/v1/shovan/profile -H "Authorization: Token ${JWT_TOKEN}" -d '{"name":"Shovan Maity", "email":"shovan.cse91+1@gmail.com"}'
{"code":16, "message":"invalid session", "details":[]}