Open rorybyrne opened 4 years ago
/time 6h
(this task and the format-translation task will probably be done simultaneously)
This is an extrapolated, elaborate version of the existing API.
{
"num_colors": 5,
"num_customers": 3,
"customers": [
{
"preferred_paints_count": 1,
"preferred_paints": [
{
"color_code": 1,
"type": "matte"
}
]
},
{
"preferred_paints_count": 2,
"preferred_paints": [
{
"color_code": 1,
"type": "glossy"
},
{
"color_code": 2,
"type": "glossy"
}
]
},
{
"preferred_paints_count": 1,
"preferred_paints": [
{
"color_code": 5,
"type": "glossy"
}
]
},
]
}
{
"batches": [
{
"color_code": 0,
"type": "matte"
},
{
"color_code": 1,
"type": "glossy"
},
{
"color_code": 2,
"type": "glossy"
},
{
"color_code": 3,
"type": "glossy"
},
{
"color_code": 4,
"type": "glossy"
},
]
}
This new API should be accessible at
/v2/paint/batches