Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-12-02 | Merge branch 'master' into api_json=recipe_object | Tucker Evans | |
2019-12-02 | Fix remove Num from Step struct | Tucker Evans | |
The index of the array can be used instead. | |||
2019-12-02 | Merge pull request #10 from tuckerevans/elim | Tucker Evans | |
Elim | |||
2019-12-02 | added app routing and cook page front end | unknown | |
2019-12-02 | Merge pull request #9 from tuckerevans/backend-improvement | schencej | |
Backend improvement (Refactoring) | |||
2019-12-02 | Add variables from backend | Tucker Evans | |
2019-12-02 | Fix Steps as array in recipe | Tucker Evans | |
2019-12-02 | Fix Ingredients as array in recipe | Tucker Evans | |
2019-12-02 | Fix changes json encoding to match frontend | Tucker Evans | |
2019-11-29 | Fix Content-Type header | Tucker Evans | |
Content-Type header was not included in response because WriteHeader() was called before setting Content-Type. | |||
2019-11-29 | Merge branch 'backend-improvement' into api_json=recipe_object | Tucker Evans | |
2019-11-29 | Fix duplicated response code | Tucker Evans | |
Replace response setup/send code w/ calls to sendResponse() | |||
2019-11-28 | Add sendResponse function | Tucker Evans | |
sendResponse function implements creating and sending a APIRespones so that this code will not be rewritten for every response situation i.e. the different http methods. | |||
2019-11-28 | Fix error handling on database connect | Tucker Evans | |
Now panics when can't connect to database and splits handling of errors from Open() and Ping() as separate issues. | |||
2019-11-28 | Fix default case for http method check | Tucker Evans | |
Moves default case (Method Not Allowed) into else clause so it is not necessary to return from the previous if's --- only for checking http method, error checking if statements can/should be returning where needed. | |||
2019-11-27 | Add CORS headers to backend responsesbackend-v2.0 | Tucker Evans | |
Access-Control-Allow-Origin:* header added to API responses to allow angular to access API. Note: This allows all domains to access this API through browser javascript See <https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS> for a description of CORS | |||
2019-11-27 | Add consntructor for APIResponse | Tucker Evans | |
2019-11-25 | Added data models. | unknown | |
2019-11-22 | Add readme for backend | Tucker Evans | |
2019-11-14 | Fix simplify APIResponse struct using interface{} | Tucker Evans | |
Combines APIResponseItem and APIResponseList into one struct. Hopefully this allows for the combination of some response code (a function that sends a APIResponse that can be used by each http method) | |||
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 | |
2019-09-14 | Initial commit | schencej | |