- Inspired by https://gist.github.com/azagniotov/a4b16faf0febd12efbc6c3d7370383a6
- RESTful APIs running on
localhost:7999
- gRPC APIs running on
localhost:50052
POST
/generate
(Generate a new JWT token given the info)
key required data type description id true string N/A true string N/A name true string N/A
http code content-type response 200
application/json
{"message": "Success", "token": "Bearer your_token"}
400
,500
application/json
{"message": "Failed", "error":"Error messages"}
GET
/verify
(Verify a existing JWT token)
key value description Authorization The JWT token Starts with Bearer<space>
type jwtContent = {
id: string
mail: string
name: string
}
http code content-type response 200
application/json
{"message": "Success", "jwtContent": jwtContent
}400
application/json
{"message": "Failed", "error":"Error messages"}