Changing the format of the responses for the get templates call and the get template call