Hi, would it be possible to embed trainigs
in /members
endpoint? In a similar way as /members?embed=activePackages
?
Why we need it:
For some machines our members must undergo safety training (BOZP). This training should be periodically renewed (by law). So we need a list of members, whose training will “expire” shortly, so we can notify them.
Right now we have to call /members?trainingCourses=##
and then cycle thru every member, call /members/###/?embed=trainings
and check member._embedded.trainings.date
. Which is inefficient an with hundreds of trained members takes a long time.
Many thanks from Fablab Brno.