How to send json to client for verification?
-
I want to send a json file to the client (from the client) - to test the function. How best to implement this? I raised a separate container with a unit test for a similar task on the back-end. What to do at the front is not very obvious
-
Write or host a mock server. For example, https://github.com/typicode/json-server From your code (from the client) you will refer to it. It will send you json whatever you say.
-
You can use POSTMAN to send any requests from the client