Skip to content

Cmato/carPark

Repository files navigation

Car Park

The project should emulate a real situation in a company. The company employees can apply for rental of a car. The rental is applied to a given date. Based on such application, the system will offer list of free cars and the system allows reservation of a car.

REST

Start REST:

  $ cd  carPark-rest
  $ mvn tomcat7:run

CURL commands:

List of employees:

  $ curl -i -X GET http://localhost:8080/rest/employees

Single employee:

  $ curl -i -X GET http://localhost:8080/rest/employees/{id}

Delete employee:

  $ curl -i -X DELETE http://localhost:8080/rest/employees/{id} 

Delete employee or return 409 Conflict error code with explaining message. (In sample data, only employee with id 6 can be deleted, because he has no rentals.)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •