title: Swagger - Springfox - How to exclude properties from model classes only for some operations
body: <p>I would like to document the "get" and "create" operations for a <code>Resource (Integer id, String name)</code> object. When I configure Swagger with Springfox in a Spring MVC application the documentation shows:</p>
  
  <pre><code>GET /resources -&gt; Model: { "id" : 0 , "name" : "string"}
  POST /resources -&gt; Request body:  { "id" : 0 , "name" : "string"}
                  -&gt; Response 201:  { "id" : 0 , "name" : "string"}
  </code></pre>
  
  <p>The point is that the "id" parameter shouldn't be in the POST body, since it'll be created in the operation. My question is, is there a way to indicate that some property should be excluded from the documentation only in some cases?</p>