Tomato acquisition and manipulation operations
San Marzano
Roma
Cherry
Heirloom
Beefsteak
POST /v1/tomato/acquire HTTP/1.1 Host: api.tomatopy.example.com Content-Type: application/json Accept: */* Content-Length: 49 { "variety": "San Marzano", "ripeness": 1, "weight": 1 }
Successful acquisition
[ { "id": "text", "variety": "text", "ripeness": 1, "weight": 1, "properties": { "ANY_ADDITIONAL_PROPERTY": "anything" } } ]
dice
slice
chop
mince
julienne
fine
small
medium
large
chunk
uniform
rough
coarse
POST /v1/tomato/slice HTTP/1.1 Host: api.tomatopy.example.com Content-Type: application/json Accept: */* Content-Length: 77 { "tomato_ids": [ "text" ], "method": "dice", "size": "fine", "consistency": "uniform" }
Successful slicing operation
[ { "id": "text", "method": "text", "size": "text", "consistency": "text", "pieces": [ { "id": "text", "size": 1, "weight": 1 } ] } ]
POST /v1/tomato/squeeze HTTP/1.1 Host: api.tomatopy.example.com Content-Type: application/json Accept: */* Content-Length: 36 { "tomato_ids": [ "text" ], "pressure": 1 }
Successful juice extraction
{ "id": "text", "volume": 1, "concentration": 1, "properties": { "ANY_ADDITIONAL_PROPERTY": "anything" } }
Was this helpful?