danistark1 / recipesapi Goto Github PK
View Code? Open in Web Editor NEWAPI endpoints for https://github.com/PascaleStark
API endpoints for https://github.com/PascaleStark
add
$em->getConnection()->beginTransaction();
$em->getConnection()->commit();
to all saved records.
I should be able to add a comma separated tags when posting a recipe.
Add: Search api
Add validation class
Directions will be # separated, and will need to be split into an array.
Each array value will be a step.
Ex.
#Add 1 cup of water#Add 1 tsp of salt#Add 4 cups of flour
Should be parsed into
["Add 1 cup of water", "Add 1 tsp of salt", "Add 4 cups of flour"]
Recipes
Category
send random meal idea on set days
Select meals of type main-dish, get all ids, them randomly select one of the ids
Email the selected recipe with its instructions to recipients
A selected meal should not be selected again until all other meals have been selected once.
For that, all selected meals should be placed in a new table, once all the meals have been selected, the table gets pruned.
Add: Patch API
currently, when searching, we are doing a left/right wildcard match on any characters, it should be word match.
On Mobile
You Cannot scroll to featured recipes
To Reproduce
On mobile, click on add recipe, close modal, then try to scroll down to featured recipes.
Add: GET category
I need to be able to parse titles.
Add: DELETE category
Add caching
Add: DELETE recipe
Add:
API: Add image upload
Recipes categories drop-down should get the data from a BE API
On save 2 chars is is allowed and passes validation
On edit, the same recipe fails.
Add: GET:id recipe
Post a recipe
Field | Type | Required |
---|---|---|
name | String | Yes |
prep_time | time | No |
cooking_time | time | No |
category | string | Yes |
directions | text | Yes |
ingredients | text | Yes |
insert_date_time | datetime | Yes |
favorites | Integer | Yes (should be default 0) |
added_by | string | No |
calories | string | No |
cuisine | string | No |
url | string | No |
{
"name": "pizza",
"directions":"put in oven#eat",
"ingredients": "1 tsp salt#2 tsp sugar",
"category": "main_dish",
"cuisine": "italian"
}
[
{
"id": 3,
"name": "pizza",
"prepTime": null,
"cookingTime": null,
"servings": null,
"category": "main_dish",
"directions": "put in oven, eat",
"insertDateTime": "2021-04-03 14:54:10",
"favourites": 0,
"addedBy": "",
"calories": null,
"cuisine": "italian",
"ingredients": [
"1 tsp salt",
"2 tsp sugar"
],
"url": null
}
]
ex. - http://192.168.4.10:8000/recipes/where?id=1
http://localhost:8000/recipes/delete/{recipeID}
http://localhost:8000/recipes/update/1
{
"name": "pizza4",
"directions": "updated directions2",
"category": "main_dish"
}
I need to be able to get a list of categories
when adding a recipe, I have a drop-down that should have all the available categories.
Add configuration structure
Every direction step should be upper cased
You can post a recipes with spaces as title. This should be trimmed.
api endpoint to find all recipes filtered by category.
paginated results.
Details
Prevent selecting meals from same food category
Ex. Lemon Chicken Pasta & Chicken Pesto Pasta.
Possible fix
Add a sub-category to recipes_entity table
ex. category = Main Dish, sub_category = Pasta
Add: recipe POST
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.