Browse Source

Create documentation for route to get user workouts.

Lee Morgan 1 năm trước cách đây
mục cha
commit
3945e37922
1 tập tin đã thay đổi với 13 bổ sung0 xóa
  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"
+        }]
     }
 ]