How to do offline testing of JSON dependent applications?

Often I write small applications that rely on a web service that provides JSON at various points (login, configuration, request information, etc.). For user interface development / testing, I usually just store some dummy JSON files in a bundle of applications that can be read locally. Is this the most common practice, and are there any better ways to do this?

+4
source share
1 answer

Well,

If by "offline" you mean that you absolutely do not have access to the Internet, I think you have no choice. Although this will mean that you will not be able to test your web service calls.

Otherwise, if you use API calls, you can use free API servers such as http://myjson.com/api . This is a simple JSON store for your website or mobile application.

I often use it at the development stage.

Hope this can help.

+1
source

Source: https://habr.com/ru/post/1680391/


All Articles