/babysitter

submission for a demo api

Primary LanguageJava

Babysitter Problem

Prerequisites

  • Maven (optional)
  • Java 8 or later
  • JAVA_HOME environment variable set

Run Tests

mvn clean test or mvnw clean test

Run Service

mvn clean spring-boot:run or mvnw clean spring-boot:run

Using curl or some http client send a request to localhost:8080/total with the following schema

{
	"start": "2019-02-22T01:00:29.836",
	"end": "2019-02-22T04:00:29.836",
	"ranges": [
		{
			"name": "familyA",
			"type": "before",
			"before": "2019-02-22T02:02:55.836",
			"rate": 14
		}
	]
}