Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update create program according to new endpoint #297

Open
DenizBilgeAkkoc opened this issue Dec 15, 2024 · 0 comments
Open

update create program according to new endpoint #297

DenizBilgeAkkoc opened this issue Dec 15, 2024 · 0 comments
Assignees
Labels
front-end priority: high This issue should be addressed with urgency status: in progress Issue is currently being worked on type: enhancement Improvements to existing features

Comments

@DenizBilgeAkkoc
Copy link
Contributor

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
@DenizBilgeAkkoc DenizBilgeAkkoc added type: enhancement Improvements to existing features priority: high This issue should be addressed with urgency status: in progress Issue is currently being worked on front-end labels Dec 15, 2024
@DenizBilgeAkkoc DenizBilgeAkkoc self-assigned this Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
front-end priority: high This issue should be addressed with urgency status: in progress Issue is currently being worked on type: enhancement Improvements to existing features
Projects
None yet
Development

No branches or pull requests

1 participant