title: Swagger / springfox generating response example automatically
body: <p>Currently using springfox 2.9.2 to Swagger document an API created in Spring.
  I want to add example response in the documentation, like in this image;</p>
  
  <p><a href="https://i.stack.imgur.com/0U9VG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0U9VG.png" alt="enter image description here"></a></p>
  
  <p>my understanding is that I can do something similar to this:</p>
  
  <pre><code>@ApiResponses(value = {
      @ApiResponse(code = 200, message = "Success", 
              examples = @io.swagger.annotations.Example(
                  value = {
                      @ExampleProperty(value = "{'snapshot'：{'type': 'AAA'}}", mediaType = "application/json") 
                  }))
  </code></pre>
  
  <p>I'm placing this code snippet just above the <code>GET</code> method in this case.
  unfortunately the 2 examples above always shows : identifier expected error</p>
  
  <p>But I also see that I can do this too:</p>
  
  <pre><code>@ApiResponses(value = {
      ApiResponse(code = 200, message = "Success", response = MyModel.class,
      )
  })
  </code></pre>
  
  <p>Also I see that I can add an example with <code>@ApiOperation</code> level:</p>
  
  <pre><code>@ApiOperation(value = "Create a Account", nickname = "createAccount", notes = "Create a account", response = AccountResponse.class, tags={  })
  </code></pre>
  
  <p>My questions are:</p>
  
  <ol>
  <li><p>How can I add an example JSON response to my Swagger documentation?</p></li>
  <li><p>It would be ideal to just point Swagger/Springfox to my model/bean and have it generate the example response automatically, and automatically update with each update for the bean/model. Is this what the second code snippet above is supposed to do?</p></li>
  </ol>