Stubbing with Python in built server
Its sometimes required that you need to have some url returning some data to finish your client server software. But you may not have the luxury of server side thing completed as it may involve some complexities.
Lets say that I have a json file like this
All I need to do is to create a folder. Create a file say called people.json
with the data above in it. In my terminal goto that location and type
python -m http.server
, launch my browser and type
http://localhost:8000/people.json and I will be having that data to stub and
complete my work.
See my result here: