Skip to content

lukecollier/rentalcars-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rentalcars Rest API for Technical Test Intake 2017

Build Status

Unzip

First unzip the two zip files in the target directory. The console-application.zip is for the console application and the rest-api.zip for the RESTful API.

Part 1 Console Application

To use the console application goto the project directory and type java -cp target/rentalcar-technical-test-1.0-SNAPSHOT-jar-with-dependencies com.rentalcars.app.ConsoleApplication in the console of your choice. Proof of the working console application

Part 2 API

Either run the bash script at /target/universal/com-rentalcars-rest-api-1.0-SNAPSHOT/bin/com-rentalcars-rest-api or use the .bat file at /target/universal/com-rentalcars-rest-api-1.0-SNAPSHOT/bin/com-rentalcars-rest-api.bat The server will attempt to run on port 9000 of the machine (localhost:9000).

Once the localhost is running there are 4 different url's for each of the tasks

  1. http://localhost:9000/car/sort/price - get's the vehicle list in price order Sort price working
  2. http://localhost:9000/car/summary - get's the vehicle list summary Sort price working
  3. http://localhost:9000/car/sort/rating - get's the vehicle list in rating and vehicle type order Sort price working
  4. http://localhost:9000/car/sort/score - get's the vehicle list by score order Sort price working

About

The rentalcars REST API for the technical test

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published