Prechádzať zdrojové kódy

Create documentation for route to get user workouts.

Lee Morgan 1 rok pred
rodič
commit
3945e37922
1 zmenil súbory, kde vykonal 13 pridanie a 0 odobranie
  1. 13 0
      documentation/data.js

+ 13 - 0
documentation/data.js

@@ -166,5 +166,18 @@ window.data = [
             type: "Workout",
             desc: "Workout object"
         }]
+    },
+    {
+        type: "route",
+        id: "getWorkouts",
+        title: "Get",
+        url: "GET /workout",
+        auth: true,
+        description: "Retrieve all of the workouts for logged in user",
+        responseBody: [{
+            name: "N/A",
+            type: "[Workout]",
+            desc: "List of workouts for the logged in user"
+        }]
     }
 ]