From 06ca2a63708c5c7a734836592193d8f2cac60285 Mon Sep 17 00:00:00 2001 From: Gerard Paris Date: Mon, 6 Jun 2016 21:53:29 -0300 Subject: [PATCH 1/2] Extra slash makes test to fail. Removing ending slash. --- .../Solution Code/endpoints_project3_solution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lesson_3/05_Serializing data from the database/Solution Code/endpoints_project3_solution.py b/Lesson_3/05_Serializing data from the database/Solution Code/endpoints_project3_solution.py index a44f26a..dbf0ed2 100755 --- a/Lesson_3/05_Serializing data from the database/Solution Code/endpoints_project3_solution.py +++ b/Lesson_3/05_Serializing data from the database/Solution Code/endpoints_project3_solution.py @@ -18,7 +18,7 @@ #Make an app.route() decorator here @app.route("/") -@app.route("/puppies/", methods = ['GET', 'POST']) +@app.route("/puppies", methods = ['GET', 'POST']) def puppiesFunction(): if request.method == 'GET': #Call the method to Get all of the puppies From 0ec843d8a4f611e57887e36bbe23fe6fc06adbe9 Mon Sep 17 00:00:00 2001 From: Gerard Paris Date: Mon, 6 Jun 2016 21:58:55 -0300 Subject: [PATCH 2/2] Extra slash makes test to fail. Removing ending slash from starter code also. --- .../Starter Code/endpointsproject3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lesson_3/05_Serializing data from the database/Starter Code/endpointsproject3.py b/Lesson_3/05_Serializing data from the database/Starter Code/endpointsproject3.py index a44f26a..dbf0ed2 100644 --- a/Lesson_3/05_Serializing data from the database/Starter Code/endpointsproject3.py +++ b/Lesson_3/05_Serializing data from the database/Starter Code/endpointsproject3.py @@ -18,7 +18,7 @@ #Make an app.route() decorator here @app.route("/") -@app.route("/puppies/", methods = ['GET', 'POST']) +@app.route("/puppies", methods = ['GET', 'POST']) def puppiesFunction(): if request.method == 'GET': #Call the method to Get all of the puppies