title: Exclude Models or properties from swagger response
body: <p>I used swagger in my apache cxf project , used @Api and @ApiOperations and @ApiParam annotations and generated a api doc for the rest services.</p>
  
  <p>But I want to exclude some of the fields like EntityTag, StatusType and MediaType etc from Models attribute or complete modules or properties attribute.</p>
  
  <p>How to do that?</p>
  
  <p>I was fetching data from db and setting it to user object and passing that user object to JAX-RS response builder. </p>
  
  <p>Below is one of my DTO Object:</p>
  
  <pre><code>  @ApiModel
    public class User{
    private String name;
     private String email;
  
  
   @ApiModelProperty(position = 1, required = true, notes = "used to display user name")
   public int getName() {
      return name;
   }
  
   public void setName(String name) {
      this.name= name;
  }
  
  @ApiModelProperty(position = 2, required = true, notes = "used to display user email")
  public int getEmail() {
      return email;
  }
  
   public void setEmail(String email) {
      this.email= email;
   }
  </code></pre>
  
  <p>Now I don't see the User object fields or properties inside the Swagger returned json format.</p>
  
  <p>my service class method response is : </p>
  
  <pre><code>    @GET
      @ApiOperation(value = "xxx", httpMethod = "GET", notes = "user details", response =  Response.class)
     public Response getUserInfo(){
          User userdto = userdaoimpl.getUserDetails();
          ResponseBuilder builder = Response.ok(user, Status.OK), MediaType.APPLICATION_JSON);
          builder.build();
   }
  
  
  &lt;bean id="swaggerConfig" class="com.wordnik.swagger.jaxrs.config.BeanConfig"&gt;
      &lt;property name="resourcePackage" value="com.services.impl" /&gt;
      &lt;property name="version" value="1.0.0" /&gt;
      &lt;property name="basePath" value="http://localhost:8080/api" /&gt;
      &lt;property name="license" value="Apache 2.0 License" /&gt;
      &lt;property name="licenseUrl"
          value="http://www.apache.org/licenses/LICENSE-2.0.html" /&gt;
      &lt;property name="scan" value="true" /&gt;
   &lt;/bean&gt;
  </code></pre>