Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started