Json-server: Is there anyway to delay the response time?

Created on 6 Oct 2017  路  2Comments  路  Source: typicode/json-server

I would like to delay the response time about 30s for testing loading case. Is it possible?

Most helpful comment

Check CLI usage, you can add --delay [ms], in your case either start with json-server --delay 30000 or create a file called json-server.json and add that option there.

All 2 comments

Check CLI usage, you can add --delay [ms], in your case either start with json-server --delay 30000 or create a file called json-server.json and add that option there.

Hi @toe-lai,
Your question is resolved before in this link:
https://github.com/typicode/json-server/issues/188

Was this page helpful?
0 / 5 - 0 ratings