title: Post a json body with swagger
body: <p>I would like to POST a json body with Swagger, like this :</p>
  
  <pre><code>curl -H "Content-Type: application/json" -X POST -d {"username":"foobar","password":"xxxxxxxxxxxxxxxxx", "email": "foo@bar.com"}' http://localhost/user/register
  </code></pre>
  
  <p>Currently, I have this definition :</p>
  
  <pre><code>"/auth/register": {
          "post": {
              "tags": [
                "auth"
              ],
              "summary": "Create a new user account",
              "parameters": [
                  {
                      "name": "username",
                      "in": "query",
                      "description": "The username of the user",
                      "required": true,
                      "type": "string"
                  },
                  {
                      "name": "password",
                      "in": "query",
                      "description": "The password of the user",
                      "required": true,
                      "type": "string",
                      "format": "password"
                  },
                  {
                      "name": "email",
                      "in": "query",
                      "description": "The email of the user",
                      "required": true,
                      "type": "string",
                      "format": "email"
                  }
              ],
              "responses": {
                  "201": {
                      "description": "The user account has been created",
                      "schema": {
                          "$ref": "#/definitions/User"
                      }
                  },
                  "default": {
                      "description": "Unexpected error",
                      "schema": {
                          "$ref": "#/definitions/Errors"
                      }
                  }
              }
          }
      } 
  </code></pre>
  
  <p>But the data are sent in the URL. Here the generated curl provided by Swagger :</p>
  
  <pre><code>curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' 'http://localhost/user/register?username=foobar&amp;password=password&amp;email=foo%40bar.com'
  </code></pre>
  
  <p>I understand that the <code>query</code> keywork is not good, but I didn't find the way to POST a JSON body. I tried <code>formData</code> but it didn't work.</p>