Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Get the solution codes for Healthcare service application - springboot --- Required files are uploaded in the below 1. Healthcare Service - Spring Boot You

Get the solution codes for Healthcare service application - springboot --- Required files are uploaded in the below         

1. Healthcare Service - Spring Boot You have to create an API for a healthcare service. The following are the details of the API endpoints. register: (HTTP METHOD-POST) This endpoint should register the application user. On successful registration, the response should be {message=""Registration successful"") and on failure, the response should be {message="Password or username policy failed"} signin: (HTTP METHOD-POST) Users should be able to sign in through this endpoint by providing their email and password. On successful login, the response should be { message = "Authentication successful!", token = JWTtoken, id=user.ld}; and on failure, the response should be {message="Username or Password is Incorrect."} "viewprofile/{userld}": (HTTP METHOD-GET) This API should return the details of all the application users. "editprofile/{userld}": (HTTP METHOD-GET) This API should allow you to edit the details of an application user. "patients/register": (HTTP METHOD-POST) An application user should register the patient through this API. On succcessful registration, the response should be {message="Registration successful") and on failure, {message="Registration failure"} "patients/list/": (HTTP METHOD-GET) Should return a list of all the patients. "patients/view/{id}": (HTTP METHOD-GET) Should return details of the single user of that particular ID "patients/delete/{id}": (HTTP METHOD-DELETE) Should delete the patient details of that particular ID "appointment/register": (HTTP METHOD-POST) Book an appointment through this API. On succcessful booking, the response should be {message="Booking successful") and on failure, {message="Booking failure"}

Step by Step Solution

3.43 Rating (156 Votes )

There are 3 Steps involved in it

Step: 1

Here are the solution codes for the healthcare service application Java package comexampleproject import orgspringframeworkbootSpringApplication import orgspringframeworkbootautoconfigureSpringBootApp... 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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions