modulised api request to have a baseclass