added missing option to define the rest response format using a variable in the request