This is a generic REST API for workout plans.
POST
http://localhost:8000/api/v1/authBODY
email example@email.com
password **********
POST
http://localhost:8000/api/v1/usersHEADERS
Authorization Bearer + token generated in auth route
BODY
first_name examplefirstName
last_name examplelastName
email example@email.com
password **********
GET
http://localhost:8000/api/v1/users/{id_user}HEADERS
Authorization Bearer + token generated in auth route
PUT
http://localhost:8000/api/v1/users/{id}HEADERS
Authorization Bearer + token generated in auth route
Content-Type application/json
BODY
first_name examplefirstName
last_name examplelastName
email example@email.com
password **********
DELETE
http://localhost:8000/api/v1/users/{id}HEADERS
Authorization Bearer + token generated in auth route
POST
http://localhost:8000/api/v1/workout_typesHEADERS
Authorization Bearer + token generated in auth route
BODY
name exampleName
description description example
GET
http://localhost:8000/api/v1/workout_types/{id}HEADERS
Authorization Bearer + token generated in auth route
PUT
http://localhost:8000/api/v1/workout_types/{id_workout_type}HEADERS
Authorization Bearer + token generated in auth route
BODY
name exampleName
description description example
DELETE
http://localhost:8000/api/v1/workout_types/{id}HEADERS
Authorization Bearer + token generated in auth route
POST
http://localhost:8000/api/v1/workout_plansHEADERS
Authorization Bearer + token generated in auth route
BODY
fk_workout_type workout type
fk_user User
date Date
GET
http://localhost:8000/api/v1/workout_plans/{id}HEADERS
Authorization Bearer + token generated in auth route
PUT
http://localhost:8000/api/v1/workout_plans/{id}HEADERS
Authorization Bearer + token generated in auth route
Content-Type application/json
BODY
name exampleName
email example@email.com
password **********
PUT
http://localhost:8000/api/v1/workout_types/{id}HEADERS
Authorization Bearer + token generated in auth route
BODY
fk_workout_type workout type
fk_user User
date Date
DELETE
http://localhost:8000/api/v1/workout_plans/{id}HEADERS
Authorization Bearer + token generated in auth route
