added '/generate' to initial endpoint URI