API Endpoints

This page describes the API Endpoints available on the instance.

circle-info

API Base URL for on-premise instances: http://localhost:3000arrow-up-right unless changed in the compose file.

Customer Object

Name
Type
Description

demand

Integer

Demand value,

dueTime

Integer

Due time

number

Integer

Customer number, E.g., 1

readyTime

Integer

Ready time

serviceTime

Integer

Time taken to service the customer

xCoordinate

Integer

Location of customer on X-Axis

yCoordinate

Integer

Location of customer on Y-Axis

Vehicle Object

Name
Type
Description

capacity

Integer

Capacity of the vehicle

number

Integer

Vehicle number

Distribution Object

Name
Type
Description

customers

Customer[]

Array of customer objects

depot

Customer

Customer object for the depot

label

String

Label identifying the distribution

vehicle

Vehicle

The vehicle object

Route Object

Name
Type
Description

customerNumbers

Integer[]

Array of integers (each integer maps to a customer number)

routeNumber

Integer

Number identifying the route

Solution Object

Name
Type
Description

cost

Integer

Total cost of the solution

routes

Route[]

Array of routes

Create or update an entry

POST /api/upsert/:label

A single entry consists of the distribution and the solution, both. This route allows you to create new entries or update existing entries. Each entry is uniquely identified using its label.

Path Parameters

Name
Value

label

Unique label identifying an entry

Headers

Name
Value

Content-Type

application/json

Body

Name
Type
Description

distribution

object

The distribution object

solution

object

The solution object

description

string

(Optional) Description for the entry

Response

chevron-rightExample JSON Bodyhashtag

Last updated