postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.78k stars 837 forks source link

Mock server cannot match URL with number #12452

Open konstantindt opened 8 months ago

konstantindt commented 8 months ago

Is there an existing issue for this?

Describe the Issue

Mock server Filter by URL cannot match URL that contains number as path parameter. Works fine if the path parameter contained at least 1 letter.

Steps To Reproduce

Create 4 examples:

GET {{baseUrl}}/accounts GET {{baseUrl}}/accounts/123456789010 GET {{baseUrl}}/accounts/123456789011 GET {{baseUrl}}/accounts/123456789012

with different response bodies.

Run GET e.g. {{baseUrl}}/accounts/123456789010 to get the response of the GET {{baseUrl}}/accounts example.

Screenshots or Videos

No response

Operating System

macOS

Postman Version

10.18.12

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

konstantindt commented 7 months ago

It's working fine so far if I remove {{baseUrl}} from the example path for any examples that don't match URL as expected.