service for paint factory owners to minimize the cost of paint production
Method and Path | Description | ||
---|---|---|---|
GET | /_internal_/healthcheck | GET health of service |
Method and Path | Description | ||
---|---|---|---|
POST | /v2/optimize | POST minimum cost paint batch optimizer request |
available paint sheens
Name | Value | Description |
---|---|---|
Matte | M | matte sheen costs more than gloss |
Gloss | G | gloss sheen costs less than matte |
health of the service
Name | Value | Description |
---|---|---|
ok | ok | represents the service is live and accepting traffic |
Interfaces: None
range of customers preferences to choose from
Field | Type | Required? | Default | Description |
---|---|---|---|---|
paints | [paint] | Yes | - | paints the customer would be satisfied with
Minimum: 1 |
Interfaces: None
health of the service
Field | Type | Required? | Default | Description |
---|---|---|---|---|
status | status | Yes | - | the health status of the service
|
Interfaces: None
paint batch optimizer request
Field | Type | Required? | Default | Description |
---|---|---|---|---|
colors | integer | Yes | - | number of different colours demanded by paint factory
Minimum: 1 |
customers | integer | Yes | - | number of customers
Minimum: 1 |
demands | [demand] | Yes | - | customers paint demands
|
Interfaces: None
paint and its sheen
Field | Type | Required? | Default | Description |
---|---|---|---|---|
id | integer | Yes | - | paint identifier
Minimum: 1 |
sheen | sheen | Yes | - | sheen of the paint
|
Interfaces: None
A simple human-readable error
Field | Type | Required? | Default | Description |
---|---|---|---|---|
text | string | Yes | - |
|