add api config and add endpoints for teacher resource