title: Swagger integration into Dropwizard
body: <p>I am fairly new to drop wizard (dropwizard.io) &amp; just completed their tutorial. I would like to integrate Swagger (swagger.io) into this sample app.
  I found:</p>
  
  <ul>
  <li>github.com/federecio/dropwizard-swagger-sample-app</li>
  <li>github.com/federecio/dropwizard-swagger</li>
  </ul>
  
  <p>The generated JSON seems to be quite similar, however I cannot expand the REST resources to see their respective operations.
  The only difference I noted was that the example code of the swagger integration uses SERVER whereas the official drop wizard example is using APPLICATION</p>
  
  <p>Here an Image (i.stack.imgur.com/QzhPa.png)</p>
  
  <p>Please could you tell me what is wrong in my approach.
  Thank you very much. Here is the code to my approach: <a href="https://github.com/geoHeil/dropwizardSwaggerIntegrationNotWorking" rel="nofollow">https://github.com/geoHeil/dropwizardSwaggerIntegrationNotWorking</a></p>
  
  <p>Edit:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>for api - docs {
    "apiVersion": "0.0",
    "swaggerVersion": "1.2",
    "apis": [{
      "path": "/sample"
    }, {
      "path": "/hello-world",
      "description": "Operations about greetings"
    }]
  }
  
  
  for sample {
    "apiVersion": "0.0",
    "swaggerVersion": "1.2",
    "basePath": "http://geoHeil.local:8080",
    "resourcePath": "/sample",
    "apis": [{
      "path": "/sample",
      "operations": [{
        "method": "GET",
        "summary": "Sample endpoint",
        "notes": "",
        "type": "void",
        "nickname": "get",
        "authorizations": {},
        "parameters": []
      }]
    }, {
      "path": "/sample/hello-with-path-param/{name}",
      "operations": [{
        "method": "GET",
        "summary": "Sample endpoint with path param",
        "notes": "",
        "type": "void",
        "nickname": "getWithPathParam",
        "authorizations": {},
        "parameters": [{
          "name": "name",
          "required": true,
          "type": "string",
          "paramType": "path"
        }]
      }]
    }, {
      "path": "/sample/hello-with-query-param",
      "operations": [{
        "method": "GET",
        "summary": "Sample endpoint with query param",
        "notes": "",
        "type": "void",
        "nickname": "getWithQueryParam",
        "authorizations": {},
        "parameters": [{
          "name": "name",
          "required": false,
          "type": "string",
          "paramType": "query"
        }]
      }]
    }]
  }
  
  for hello - world {
    "apiVersion": "0.0",
    "swaggerVersion": "1.2",
    "basePath": "http://geoHeil.local:8080",
    "resourcePath": "/hello-world",
    "apis": [{
      "path": "/hello-world",
      "operations": [{
        "method": "GET",
        "summary": "Greetings endpoint",
        "notes": "",
        "type": "void",
        "nickname": "sayHello",
        "authorizations": {},
        "parameters": [{
          "name": "name",
          "required": false,
          "items": {
            "type": "string"
          },
          "paramType": "query"
        }]
      }]
    }]
  }</code></pre>
  </div>
  </div>
  </p>