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:
iadminadvisor
d Request:
i Advisor name
ii Advisor Photo URL
e Response:
i No Response
ii Just return OK if the request is successful
iii. Return BADREQUEST if any of the above
fields are missing
ii User
API: Can register as a user
a Method:
i POST
b Endpoint:
iuserregister
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
OK if the request is successful
BADREQUEST if any of the above
fields are missing
API: Can log in as a user
a Method:
i POST
b Endpoint:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
