summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-11-12Add error responses for generic http methodsbackend-v1.0Tucker Evans
Also adds error for POST to individual resource
2019-11-12Add update functionality to APITucker Evans
2019-11-12Add transactions to Insert sql statementTucker Evans
Transactions allow us to rollback inserts ensuring that the database is in sync with our application.
2019-11-12Add id to ingredients so we can delete unused on updateTucker 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-12Fix change QueryRow to Exec for ingredient/step insertsTucker 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-10Add TodosTucker Evans
2019-11-10Add delete functionality for recipesTucker Evans
2019-11-10Add create recipe functionalityTucker Evans
2019-11-10Fix RecipeFromId expects only one row from databaseTucker 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-10Add correct errors for an nonexistent recipe idTucker Evans
2019-11-10Fix MakeRecipeFromIdTucker Evans
MakeRecipeFromId was creating a empty recipe because rows.Next() was not being checked.
2019-11-10Fix responses sent to clientTucker Evans
JSON is no longer output to stdout and actually sent to client
2019-11-10Add structure to JSON responsesTucker Evans
JSON responses contains a status(error) section and a data section Note: JSON is still not sent to client
2019-11-10Add basic functionality to get list of recipe idsTucker Evans
Note: Still only prints to stdout, does not respond to client
2019-11-09Add basic access recipe functionalityTucker Evans
Note: Only prints recipe to server stdout does not return to client
2019-11-09Add make Recipe w/ id & database connectionTucker Evans
2019-11-09Add Recipe Type (w/ subtypes Ingredients & Steps)Tucker Evans
2019-11-09Fix database nameTucker Evans
2019-11-09Add database connectionTucker Evans
2019-11-08Add basic http routingTucker Evans
2019-09-14Initial commitschencej