feat: add native meal planning signal api
This commit is contained in:
@@ -390,6 +390,36 @@ function buildPaths() {
|
||||
'/api/v1/meals/week-to-shopping-list': {
|
||||
post: op({ summary: 'Transfer weekly meal ingredients to shopping list', tag: 'Meals', stateChanging: true, requestBody: jsonBody(null) }),
|
||||
},
|
||||
'/api/v1/meal-planning/cooking-rules': {
|
||||
get: op({ summary: 'List recurring meal cook rules', tag: 'Meal Planning' }),
|
||||
put: op({ summary: 'Replace recurring meal cook rules', tag: 'Meal Planning', stateChanging: true, requestBody: jsonBody(null) }),
|
||||
},
|
||||
'/api/v1/meal-planning/recipe-signals': {
|
||||
get: op({ summary: 'List family recipe preference/capability signals', tag: 'Meal Planning' }),
|
||||
},
|
||||
'/api/v1/meal-planning/recipe-signals/{recipeId}': {
|
||||
put: op({ summary: 'Upsert family recipe preference/capability signal', tag: 'Meal Planning', params: [idParam('recipeId', 'Recipe ID')], stateChanging: true, requestBody: jsonBody(null) }),
|
||||
},
|
||||
'/api/v1/meal-planning/variation-meta': {
|
||||
get: op({ summary: 'List recipe variation metadata', tag: 'Meal Planning' }),
|
||||
},
|
||||
'/api/v1/meal-planning/variation-meta/{recipeId}': {
|
||||
put: op({ summary: 'Upsert recipe variation metadata', tag: 'Meal Planning', params: [idParam('recipeId', 'Recipe ID')], stateChanging: true, requestBody: jsonBody(null) }),
|
||||
},
|
||||
'/api/v1/meal-planning/cook-assignments': {
|
||||
get: op({ summary: 'List planned meal cook assignments', tag: 'Meal Planning' }),
|
||||
},
|
||||
'/api/v1/meal-planning/cook-assignments/{mealId}': {
|
||||
put: op({ summary: 'Upsert planned meal cook assignment', tag: 'Meal Planning', params: [idParam('mealId', 'Meal ID')], stateChanging: true, requestBody: jsonBody(null) }),
|
||||
},
|
||||
'/api/v1/meal-planning/feedback': {
|
||||
get: op({ summary: 'List meal planning feedback events', tag: 'Meal Planning' }),
|
||||
post: op({ summary: 'Record meal planning feedback event', tag: 'Meal Planning', stateChanging: true, requestBody: jsonBody(null) }),
|
||||
},
|
||||
'/api/v1/meal-planning/kids-cookbooks': {
|
||||
get: op({ summary: 'List saved kids cookbooks', tag: 'Meal Planning' }),
|
||||
post: op({ summary: 'Save kids cookbook', tag: 'Meal Planning', stateChanging: true, requestBody: jsonBody(null) }),
|
||||
},
|
||||
'/api/v1/recipes': {
|
||||
get: op({ summary: 'List recipes', tag: 'Recipes' }),
|
||||
post: op({ summary: 'Create recipe', tag: 'Recipes', stateChanging: true, requestBody: jsonBody(null) }),
|
||||
@@ -663,6 +693,7 @@ function buildOpenApiSpec(req, appVersion) {
|
||||
{ name: 'Tasks' },
|
||||
{ name: 'Shopping' },
|
||||
{ name: 'Meals' },
|
||||
{ name: 'Meal Planning' },
|
||||
{ name: 'Recipes' },
|
||||
{ name: 'Calendar' },
|
||||
{ name: 'Notes' },
|
||||
|
||||
Reference in New Issue
Block a user