rename endpoints
remove response as json duplication with utility function