以下是WorkoutTracker-API的主要路由:
-
练习:
-
获取练习:
/exercises
-
发布练习:
POST /exercises
-
更新练习:
PUT /exercises/:id
-
删除练习:
DELETE /exercises/:id
-
程序:
-
获取程序:
/programs/:id
-
发布程序:
POST /programs
-
更新程序:
PUT /programs/:id
-
删除程序:
DELETE /programs/:id
-
程序锻炼:
-
获取程序锻炼:
/programs/:id/exercises
-
发布程序锻炼:
POST /programs/:id/exercises
-
更新程序锻炼:
PUT /programs/:id/exercises/:program_exercise_id
-
删除程序锻炼:
DELETE /programs/:id/exercises/:program_exercise_id
-
锻炼:
-
获取锻炼:
/workouts/:workout_id
-
发布锻炼:
POST /workouts/:workout_id
-
更新锻炼:
PUT /workouts/:workout_id
-
删除锻炼:
DELETE /workouts/:workout_id
-
获取锻炼程序:
GET /workouts/program/:program_id
-
其他:
-
获取程序锻炼:
/workout/:wo
暂无评论