some changes to generate requests other than FlatpackRequest
fixed endpoint methodnames, endpoint parameters, and request entities