Fixing grammatical errors in endpoint generator