-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
front-endpriority: highThis issue should be addressed with urgencyThis issue should be addressed with urgencystatus: in progressIssue is currently being worked onIssue is currently being worked ontype: enhancementImprovements to existing featuresImprovements to existing features
Description
Update Create Program According to New Endpoint
Description
The create program modal needs to be updated to match the new endpoint structure. The current implementation doesn't match the required data structure, particularly in how workouts are organized within weeks.
Changes Required
- Add new fields: level,type,weeks,intercal
- Update request payload to match endpoint schema:
{
"title": "String",
"description": "String",
"type": "BODY_BUILDING",
"level": "INTERMEDIATE",
"interval": 2,
"weeks": [
{
"workouts": [
{
"name": "Workout 1",
"exercises": [
{
"exerciseId": number,
"repetitions": number,
"sets": number
}
]
}
]
}
]
}
Expected Behavior
- Data structure matching the API endpoint requirements
Metadata
Metadata
Assignees
Labels
front-endpriority: highThis issue should be addressed with urgencyThis issue should be addressed with urgencystatus: in progressIssue is currently being worked onIssue is currently being worked ontype: enhancementImprovements to existing featuresImprovements to existing features