Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-11-12 | Add error responses for generic http methodsbackend-v1.0 | Tucker Evans | |
Also adds error for POST to individual resource | |||
2019-11-12 | Add update functionality to API | Tucker Evans | |
2019-11-12 | Add transactions to Insert sql statement | Tucker Evans | |
Transactions allow us to rollback inserts ensuring that the database is in sync with our application. | |||
2019-11-12 | Add id to ingredients so we can delete unused on update | Tucker Evans | |
When updating ingredients if some # are remove we need to remove the same number from the database and update the rest, without an id column we don't know which ones to delete. | |||
2019-11-12 | Fix change QueryRow to Exec for ingredient/step inserts | Tucker Evans | |
Changed database schema so ingredients & steps does not have an id, and therefore can't return it so instead we just exec the insert statement without returning anything. We do have to check that there were affected rows in order to accurately update the recipe object. | |||
2019-11-10 | Add Todos | Tucker Evans | |
2019-11-10 | Add delete functionality for recipes | Tucker Evans | |
2019-11-10 | Add create recipe functionality | Tucker Evans | |
2019-11-10 | Fix RecipeFromId expects only one row from database | Tucker Evans | |
Now uses sql.QueryRow rather than sql.Query so it doesnt have to check row.Next(), just have to check that row was returned (on scan call) | |||
2019-11-10 | Add correct errors for an nonexistent recipe id | Tucker Evans | |
2019-11-10 | Fix MakeRecipeFromId | Tucker Evans | |
MakeRecipeFromId was creating a empty recipe because rows.Next() was not being checked. | |||
2019-11-10 | Fix responses sent to client | Tucker Evans | |
JSON is no longer output to stdout and actually sent to client | |||
2019-11-10 | Add structure to JSON responses | Tucker Evans | |
JSON responses contains a status(error) section and a data section Note: JSON is still not sent to client | |||
2019-11-10 | Add basic functionality to get list of recipe ids | Tucker Evans | |
Note: Still only prints to stdout, does not respond to client | |||
2019-11-09 | Add basic access recipe functionality | Tucker Evans | |
Note: Only prints recipe to server stdout does not return to client | |||
2019-11-09 | Add make Recipe w/ id & database connection | Tucker Evans | |
2019-11-09 | Add Recipe Type (w/ subtypes Ingredients & Steps) | Tucker Evans | |
2019-11-09 | Fix database name | Tucker Evans | |
2019-11-09 | Add database connection | Tucker Evans | |
2019-11-08 | Add basic http routing | Tucker Evans | |