basic API for exercise resource