Answered step by step
Verified Expert Solution
Link Copied!

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:
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:
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

How can job analysis make staffing more strategic?

Answered: 1 week ago