io.kich.grocery.getCurrentList
Get the latest grocery list that has not been archived, together with the recipes attached to it. Ordered by `plannedDate` where one is set and by the order they were added where it is not.
Details · query
| Kind | query |
|---|---|
| Authority | grocery.kich.io |
| Indexed |
Checks
Validunlimited-stringdefs.main.parameters.properties.householdNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Get the latest grocery list that has not been archived, together with the recipes attached to it. Ordered by `plannedDate` where one is set and by the order they were added where it is not.",
"errors": [
{
"description": "No bearer token, or one this endpoint does not accept.",
"name": "AuthRequired"
},
{
"description": "No such household, or the credential is not scoped to it.",
"name": "HouseholdNotFound"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"list": {
"description": "Absent when the household has never made a list. `recipes` is then empty too, and that is a state to draw rather than an error.",
"ref": "io.kich.grocery.defs#groceryListView",
"type": "ref"
},
"recipes": {
"items": {
"ref": "io.kich.grocery.defs#plannedRecipe",
"type": "ref"
},
"type": "array"
}
},
"required": [
"recipes"
],
"type": "object"
}
},
"parameters": {
"properties": {
"household": {
"description": "The household whose list to read. Must be the household the credential is scoped to.",
"type": "string"
}
},
"required": [
"household"
],
"type": "params"
},
"type": "query"
}
},
"description": "The household's current shopping list and the recipes attached to it — which is what 'what are we cooking this week' means in this product. Read-only.",
"id": "io.kich.grocery.getCurrentList",
"lexicon": 1
}