/v1/graph/ingredients/{id}
What a price change of one ingredient touches: its suppliers, the dishes and outlets it reaches, and the open findings and pending drafts on them (owner, manager, judge; outlet scope from the membership). Needs a graph backend: 404 where core-api runs without one, 503 graph_unavailable while the graph database is not answering.
operationId getIngredientReachAuth
Member token+Tenant headerParameters
- idin pathstringrequiredpattern ^[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
Response 200
- ingredientobjectrequired
- namestringrequiredmin length 1max length 300
- unitstringrequiredmin length 1max length 20
- sourcesarray of objectrequired
- namestringrequiredmin length 1max length 300
- simulatedbooleanrequired
- relationenum (2)required
suppliesquoted
- dishesarray of objectrequired
- namestringrequiredmin length 1max length 300
- outletsarray of objectrequired
- namestringrequiredmin length 1max length 300
- availablebooleanrequired
- outletsarray of objectrequired
- namestringrequiredmin length 1max length 300
- findingsarray of objectrequired
- typestringrequiredpattern ^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$
- severityenum (4)required
lowmediumhighcritical - impact_refstring | nullrequiredpattern ^⟨snap:[0-9a-f]{8}-[0-9a-f]{4}-7[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}·(?:0|[1-9][0-9]*)·[a-z_][a-z0-9_]*⟩$
- draftsarray of objectrequired
- command_typestringrequiredpattern ^[a-z][a-z_]*(\.[a-z][a-z_]*)+\.v[1-9][0-9]*$
- graphobjectrequired
Errors
- 400Bad requestError
- 401UnauthenticatedError
- 403Not allowedError
- 404Not foundError
- 422Validation failedError
Every error body carries a code, a message and, where it applies, a reason_code. All error and reason codes.