Question: Mahindra Finance Assignment Backend Assignment ( Java Spring Boot ) Make APIs using Spring Boot for an advisor network where users can come and book

Mahindra Finance Assignment
Backend Assignment (Java Spring Boot)
Make APIs using Spring Boot for an advisor network where users can come and
book an advisor for a call.
a. The following roles should be allowed
i. Admin
API: Add an advisor
a. Method:
i. POST
b. Authentication
i. Not needed for this assignment
c. Endpoint:
i./admin/advisor/
d. Request:
i. Advisor name
ii. Advisor Photo URL
e. Response:
i. No Response
ii. Just return 200_OK if the request is successful
iii. Return 400_BAD_REQUEST if any of the above
fields are missing
ii. User
API: Can register as a user
a. Method:
i. POST
b. Endpoint:
i./user/register/
c. Request:
i. Name
ii. Email
iii. Password (Store Password in Db as Hash)
d. Response:
i. Body:
JWT Authentication Token
User id
ii. Status
200_OK if the request is successful
400_BAD_REQUEST if any of the above
fields are missing
API: Can log in as a user
a. Method:
i. POST
b. Endpoint:
 Mahindra Finance Assignment Backend Assignment (Java Spring Boot) Make APIs using

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!