added endpoint to resource mapping