Taste testing and analysis operations
basic
comprehensive
POST /v1/taste/analyze HTTP/1.1 Host: api.tomatopy.example.com Content-Type: application/json Accept: */* Content-Length: 78 { "dish_id": "text", "depth": "basic", "include_aroma": true, "include_texture": true }
Successful taste analysis
{ "id": "text", "sweetness": 1, "acidity": 1, "umami": 1, "aroma": { "intensity": 1, "complexity": 1, "primary_notes": [ { "name": "text", "intensity": 1 } ], "secondary_notes": [ { "name": "text", "intensity": 1 } ], "tertiary_notes": [ { "name": "text", "intensity": 1 } ] }, "texture": { "firmness": 1, "juiciness": 1, "mouthfeel": 1, "structural_integrity": 1 } }
POST /v1/taste/compare HTTP/1.1 Host: api.tomatopy.example.com Content-Type: application/json Accept: */* Content-Length: 45 { "dish_ids": [ "text" ], "metrics": [ "sweetness" ] }
Successful comparison
{ "comparison_id": "text", "rankings": { "ANY_ADDITIONAL_PROPERTY": [ { "dish_id": "text", "score": 1 } ] } }
Was this helpful?