Question: 1 . SpringBoot ( Debugging ) : Vehicle API Environment - Java version: 1 . 8 - Maven version: 3 . * - Spring Boot

1. SpringBoot(Debugging): Vehicle API Environment - Java version: 1.8- Maven version: 3.*- Spring Boot version: 2.3.4.RELEASE In this project, vehicle data are provided for many countries with API endpoints for fetching specific information. Note that all the data are virtual. The following REST endpoints have been implemented POST request to / api / vehicle: - accepts a vehicle object without id and returns status code 201 on creation - If the vehicle object with id is provided, returns status code 400 GET request to / api/vehicle/{ id } : - returns the vehicle entry with the given id and status cod 200- returns status code 404 if the requested vehicle does - returns status code 400 if the requested vehicle id is invalid GET request to / api / vehicle: - returns all the vehicle entries with status code 200 There are 6 tests already written but some are failing due to bugs in the implementation of those endpoints. Find the bugs and fix them so that all tests pass. Commands - run: mvn clean spring-boot:run - install: mun clean install

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 Finance Questions!