title: URL Path Pattern Matching in WireMocks (pattern matching)
body: <p>I am using wiremock for REST API testing and I am facing the below problem.
  I have the following 2 json requests created. </p>
  
  <p>REQUEST 1: </p>
  
  <pre><code>{
    "request": {
      "method": "GET",
      "urlPattern": "/api/v1/user/2158634832/ishop.*",
      "headers": {
        "Accept": {
          "contains": "application/json"
        },
        "X-RequestId": {
          "matches": ".*"
        },
        "X-SecurityToken": {
          "matches": "valid_secure_token"
        }
      }
    },
    "response": {
      "status": 200,
      "jsonBody": {
        "user": {
          "ID": "5cc1b131-8858-4870-a7ce-fd37aa805ebf",
          "info": [
            {
              "kid": "2f0ad36a-9f23-427c-9a15-16d240385b87",
              "cid": 10962435,
              "pid": "V",
              "contactid": 11812026,
              "created": "2017-04-26T00:08:25.926",
              "lastModified": "2017-04-27T00:01:45.047",
            }
          ]
        }
      },
      "headers": {
        "Content-Type": "application/json"
      }
    }
  }
  </code></pre>
  
  <p>My Get Request for the above wiremock looks something like this </p>
  
  <pre><code>**/api/v1/user/2158634832/ishop?ID=9879cfde-e353-4722-a91e-f22d29d8195c**
  </code></pre>
  
  <p>Request 2 :</p>
  
  <pre><code>{
    "request": {
      "method": "GET",
      "urlPattern": "/api/v1/user/2158634832/ishop/status.*",
      "headers": {
        "Accept": {
          "contains": "application/json"
        },
        "X-RequestId": {
          "matches": ".*"
        },
        "X-SecurityToken": {
          "matches": "valid_secure_token"
        }
      }
    },
    "response": {
      "status": 200,
      "jsonBody": {
        "userstatus": {
          "id": "5cc1b131-8858-4870-a7ce-fd37aa805ebf",
          "type": "ishop",
          "status" : "active",
          "lastModifiedTime": "2017-04-27T00:01:45.047",
          "allowedChange": "true"
        }
      },
      "headers": {
        "Content-Type": "application/json"
      }
    }
  }
  </code></pre>
  
  <p>my Get request for the above looks something like this </p>
  
  <p><strong><code>/api/v1/user/2158634832/ishop/status?ID=9879cfde-e353-4722-a91e-f22d29d8195c</code></strong></p>
  
  <p>the problem here is that at times due to the similar URL Pattern for Request 1 and Request 2 what is happening is at times </p>
  
  <p>When I submit a request for Request 1, I am getting the response which is of Request 2. </p>
  
  <p>Can anyone suggest me a workaround how can i fix this ? I am hoping something to do with matches and urlPattern and somehow i can eleminate the status call in the first request i can do it, but not sure how.</p>
  
  <p>any suggestions ?</p>