added endpoint to add appointment