- write a Spring Boot application with the necessary dependencies that:
- has an entity called
Car
with the following columns:- an
id
- a
modelName
- a
type
- an
- has a dedicated repository for the
Car
- has a dedicated controller for the
Car
that:- is mapped on
cars
- executes the following CRUD operations:
- create a new
Car
- return a list of all the
Car
s - return a single
Car
- if theid
is not in the db (useexistsById()
), returns an emptyCar
- updates the
type
of a specificCar
, identified byid
and passing a query param - if not present in the db, returns an emptyCar
- deletes a specific
Car
- if absent, the response will have aConflict
HTTP status - deletes all the
Car
s in the db
- create a new
- is mapped on
- has an entity called
- test the endpoints using
Postman
for:- creating 2 different cars
- retrieving all the cars
- retrieving a car by the
id
- trying to retrieve an absent car
- updates the
type
of a specificCar
- trying to update an absent car
- deleting a specific
Car
- trying to delete an absent
Car
- deleting all the db
- note for reviewers: view
CarCRUD.postman_collection.json
in the root folder for all thePostman
calls
-
Notifications
You must be signed in to change notification settings - Fork 0
Chris-pgl/CRUD2
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published