ExerciseDB

फ्रीमियम
द्वारा Justin | अपडेट किया गया il y a 22 jours | Health and Fitness
लोकप्रियता

9.9 / 10

लेटेंसी

415ms

सेवा का स्तर

86%

Health Check

100%

सभी चर्चाओं पर वापस जाएं

Filter equipment and target

Rapid account: Kudrlickajan
kudrlickajan
il y a 4 mois

Hello, is there any solution to combine equipments and targets call for filtering? I don’t want to call all the exercises and filter it manually. Thank you for all responses.

Rapid account: Awesomedeepu 172037
awesomedeepu172037 Commented il y a 3 mois

const handleSearch = async () => {
if (search) {
const exercisesData = await fetchData(‘https://exercisedb.p.rapidapi.com/exercises’, options);

  const searchedExercises = exercisesData.filter(
    (item) => item.name.toLowerCase().includes(search)
           || item.target.toLowerCase().includes(search)
           || item.equipment.toLowerCase().includes(search)
           || item.bodyPart.toLowerCase().includes(search)
  );

  
    console.log(exercisesData);
  setSearch('');
  setExercises(searchedExercises);
}

};

Rapid account: Justin W Fns XH T 6
justin-WFnsXH_t6 Commented il y a 4 mois

There is no mechanism currently to handle this type of request but I will look at implementing it. Thank you.

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें