/api/user/<user_id>/profile
, where some portion of the URL string is variable. We cannot expect one to create multiple APIs with all the possible matching URL.
This is can be achieved by adding RegEx sequence in your API request URL.{...}
. Mocklets system will auto detect the RegEx placeholder and validate it against the incoming request URL.https://api.mocklets.com/mock67795/user/{...}/profile
is a valid candidate for requests like https://api.mocklets.com/mock67795/user/123456/profile
orhttps://api.mocklets.com/mock67795/user/c81d4e2e-bcf2-11e6-869b-7df9253/profile
.{...}
in its place and later while making request to that API, replace {...}
with actual text. Alphabets a-z A-Z
Numbers 0-9
Symbols _ - = + . @