title: Swagger 'GET' request always returns as text/html Accept type on response and NOT application/json
body: <p>I have a swagger tag document using the Swagger UI that always returns text/html but it should return application/json.  The POST requests and every other type returns application/json but this particular GET request does not.  The service end point code is correct.  And if I change the request to POST it does return as application/json.   So it is just type GET within swagger which does not return the correct type.  Any thoughts how to correct the call within the UI to use the application/json?</p>
  
  <p>This is swagger version 2.1.4 that was downloaded recently from the swagger site.</p>
  
  <pre><code>"/bankName": {
      "get": {
          "summary": "Bank Name Search",
          "description": "Bank Name Search, input routing number to return bank name",                
          "consumes": [    
              "application/json"
          ],    
          "produces": [
              "application/json"
          ],                                 
          "parameters": [
              {
                  "in": "query",                          
                  "name": "routingNumber",
                  "description": "Input Bank Routing Number",
                  "required": true,   
                  "type": "string",                           
              }
          ],
          "responses": {
              "200": {
                  "description": "An array",
                  "schema": {
                      "type": "object",
                      "properties": {
                          "errorInfo": { 
                              "$ref": "#/definitions/ErrorInfo"                   
                          },
                          "bankName": {
                              "type": "string",                                   
                          }
                      }
                 }                        
              },
              "400": {
                  "description": "Invalid Request Input supplied"                         
              },                  
              "500": {
                  "description": "General Unexpected Error"
              }                       
          }
      }
  }  
  </code></pre>
  
  <blockquote>
    <p>Accept:application/json</p>
    
    <p>Accept-Encoding:gzip, deflate, sdch</p>
    
    <p>Accept-Language:en-US,en;q=0.8</p>
    
    <p>Cache-Control:no-cache</p>
    
    <p>Connection:keep-alive</p>
    
    <p>Host:localhost:9086</p>
    
    <p>Origin:<a href="http://localhost:9086" rel="noreferrer">http://localhost:9086</a></p>
    
    <p>Pragma:no-cache</p>
    
    <p>Referer:<a href="http://localhost:9086/swagger/index.html" rel="noreferrer">http://localhost:9086/swagger/index.html</a></p>
  </blockquote>
  
  <p>Here is the Java code Spring Restful definition:</p>
  
  <pre><code>@RequestMapping(value="bankName",
      method=RequestMethod.GET,
      produces=MediaType.APPLICATION_JSON_VALUE)
  </code></pre>