以下是WorkoutTracker-API的主要路由:

  1. 练习

  2. 获取练习:/exercises

  3. 发布练习:POST /exercises

  4. 更新练习:PUT /exercises/:id

  5. 删除练习:DELETE /exercises/:id

  6. 程序

  7. 获取程序:/programs/:id

  8. 发布程序:POST /programs

  9. 更新程序:PUT /programs/:id

  10. 删除程序:DELETE /programs/:id

  11. 程序锻炼

  12. 获取程序锻炼:/programs/:id/exercises

  13. 发布程序锻炼:POST /programs/:id/exercises

  14. 更新程序锻炼:PUT /programs/:id/exercises/:program_exercise_id

  15. 删除程序锻炼:DELETE /programs/:id/exercises/:program_exercise_id

  16. 锻炼

  17. 获取锻炼:/workouts/:workout_id

  18. 发布锻炼:POST /workouts/:workout_id

  19. 更新锻炼:PUT /workouts/:workout_id

  20. 删除锻炼:DELETE /workouts/:workout_id

  21. 获取锻炼程序:GET /workouts/program/:program_id

  22. 其他

  23. 获取程序锻炼:/workout/:wo