title: How to pass a path variable through API Gateway
body: <p>This is what I currently have in my Swagger file: </p>
  
  <pre><code>"/v1/user/{username}": {
        "get": {
          "consumes": ["application/json"],
          "produces": ["application/json"],
          "parameters": [{
            "name": "username",
            "in": "path",
            "description": "Username of user",
            "required": true,
            "type": "string"
          }],
          "responses": {
            "200": {
              "description": "user retrieved",
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/definitions/User"
                }
              }
            }
          },
          "x-amazon-apigateway-integration": {
            "type": "http",
            "uri": "http://useroregon.recopspipeline.com/v1/user/{username}",
            "httpMethod": "GET",
            "responses": {
              "default": {
                "statusCode": "200",
                "responseTemplates": {
                  "application/json": "$input.json('$.body')"
                }
              }
            }
          }
        },
  </code></pre>
  
  <p>But my backend just receives "{username}" as the path variable.<br>
  Anyone know how to send the path variable along?<br>
  Tips on how to do it in a swagger json file or via the GUI would be great! </p>