This is a microservice that exposes following endpoints
Public APIs
authenticate
signUp
h2-console
Authenticated APIs
hello
getUserDetails
updateUserDetails
Clone the repo
Open in intelliJ
Build the project
Now try accessing the APIs using postman
http://localhost:8080/authenticate
Content-Type: application/json
POST
Body
{
"email": "[email protected]",
"password": "123"
}
http://localhost:8080/signUp
Content-Type: application/json
POST
Body
{
"email": "[email protected]",
"password": "123",
"name": "sajal"
}
http://localhost:8080/getUserDetails
Content-Type: application/json
GET
Body
(User won't be able to update the email)
http://localhost:8080/updateUserDetails
Content-Type: application/json
PUT
Body
{
"email": "[email protected]",
"password": "123",
"name": "sajal"
}