Skip to content

markmacmahon/FleetMgtApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FleetMgtApi

A Simple Spring Boot Example Fleet Management API.

Installation

Install Java 8.

$ ./gradlew clean build

$ ./gradlew clean build && java -jar build/libs/FleetMgtApi-0.1.0.jar

Usage

curl -XPOST -H 'Content-Type: application/json' 'localhost:9000/fleet-calculation' -d '
{
	"scooters": [15, 10],
	"C": 12,
	"P": 5
}
'

It responds with the following JSON:

{
	"fleet_engineers": 3,
	"fleet_manager_location": 0
}

About

A Simple Spring Boot Example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages