paint-batch-optimizer 1.1.0

service for paint factory owners to minimize the cost of paint production

Resources

healthcheck

Operations

Method and Path Description
GET /_internal_/healthcheck

GET health of service

optimizeRequest

Operations

Method and Path Description
POST /v2/optimize

POST minimum cost paint batch optimizer request

Headers

No headers

Imports

No imports

Enums

sheen

available paint sheens

Name Value Description
Matte M

matte sheen costs more than gloss

Gloss G

gloss sheen costs less than matte

status

health of the service

Name Value Description
ok ok

represents the service is live and accepting traffic

Interfaces

No interfaces

Models

demand

Example Json: Minimal | Full

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
Maximum: 2000

healthcheck

Example Json: Minimal | Full

Interfaces: None

health of the service

Field Type Required? Default Description
status status Yes -

the health status of the service

optimizeRequest

Example Json: Minimal | Full

Interfaces: None

paint batch optimizer request

Field Type Required? Default Description
colors integer Yes -

number of different colours demanded by paint factory

Minimum: 1
Maximum: 2000

customers integer Yes -

number of customers

Minimum: 1
Maximum: 2000

demands [demand] Yes -

customers paint demands

paint

Example Json: Minimal | Full

Interfaces: None

paint and its sheen

Field Type Required? Default Description
id integer Yes -

paint identifier

Minimum: 1
Maximum: 2000

sheen sheen Yes -

sheen of the paint

readableError

Example Json: Minimal | Full

Interfaces: None

A simple human-readable error

Field Type Required? Default Description
text string Yes -

Unions

No unions

Annotations

No annotations