Can we mask postman mock server url

272 Views Asked by At

I have mocked my API's using postman mock server I want to mask the url of mock server ex : my current url kj3433434n34kjrh98434kjn.mock.pstmn.io TO examplename this name i want to mock i have explored in google but no helpful article found. please help me

Edited : my current url : https://kj3433434n34kjrh98434kjn.mock.pstmn.io/test/api expecting url : https://examplename/test/api

1

There are 1 best solutions below

5
On

If I understand you correctly, you can create an environment variable and add the Mock URL value to examplename.

This can then be referenced in the request using the {{examplename}} syntax.

Postman