Questions tagged [postman-mock-api-server]

7 questions
4
votes
2 answers

How do I configure my Postman mock server response to return a date always two days in the past?

In my Postman Mock Server, I have set up a GET request to return JSON, in which the following is returned “due_date":"2021-10-10" What I would like is to adjust the response so that the date is returned is two days in the past. So if today is…
Dave
  • 15,639
  • 133
  • 442
  • 830
1
vote
1 answer

How to handle multiple mock response templates while designing a simple Mobile mock API testing system

There's an app that's in iOS, Android and Windows and that has plenty of web services and each web service has different response templates based on the input. So basically we'd like to run different mock scenarios for testing in mobile app so we…
King
  • 3,457
  • 3
  • 12
  • 22
1
vote
1 answer

Postman Mock API Server - how to make it private after I already created the collection and made it public

As in the title. I have scoured the Postman documentation and went through different nooks and crannies in Postman desktop app but I am unable to make my mock api server private. I have generated a Postman API Key and I am passing it with all the…
codeepic
  • 3,723
  • 7
  • 36
  • 57
0
votes
1 answer

How to add path variables to fetch api in Javascript?

Im using mockapi for a very simple project. In order to change data, i have to send PUT request. I can send the request using PostMan like in the pictures below. And everything works perfect. But i don't know where to add path variables in fetch api…
0
votes
0 answers

Cannot read properties of undefined (reading 'post') Axios Vuex

I need to post some form data to a mockapi endpoint, using Axios and Vuex. I'm using Vue Cli v2, and Vuex 3. The store.js action postUsuarioAxios() seems to be receiving the object with the form data just fine, but when I try to execute…
0
votes
0 answers

problem with testing Mock api giving me error null is not a subtype of bool

i try to test a mock API it give me an error (null is not a subtype of bool)enter image description here enter image description here
0
votes
1 answer

Can we mask postman mock server url

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…
var a
  • 39
  • 9