He Had Two Broken Feet

Online dating is like the Amazon for things you don’t want; so much bad right at your fingertips, it should be illegal, really. Nearly a decade of it and my stories are countless; from the boyfriend…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Client side backend for Apps

Backend is backbone for most of the mobile applications out there in market. In order to make the UI data driven application needs APIs. There are times when as an application developer we want to test our application without waiting for backend to give apis. This is where we can create our own api stubs locally.

We can do that with tools present online but most of them has problem with updating of data. If you want to add another property or just change the value of property. Every time you do that, it will create a new url for you and you would not want to change the url on app side again and again.

4. Now we are ready , Create a kotlin file, inside main function do this

6. In case you want to change the response, modify it in .kt file. Make sure you close the old connection before starting a new one.

For Android projects, this can be done from inside projects as well, its only about adding dependencies, in that case your device would be your server as well as your client.

Lastly, Thank you for reading the Article, Any Questions and suggestions are most welcome, Also if you have got anything out of the article, Please clap and follow. See you soon. Happy Coding

Add a comment

Related posts:

6 Little Tricks Revealed to Streamline Meal Planning and Achieve the Best Results

Do you think meal planning is too complicated? Takes too much time? Works only for special occasions? Meal planning CAN work for you if you make it so! Effectively streamlining the process to fit…

List of problems for future research in Cryptocurrency Exchange

Just as the code cannot be 100% bug-free, so does the Cryptocurrency Exchange. Down the funnel, an exchange platform is nothing but an online software. A software used for trading the…

Everyday UX Delights and Horrors

Wealthfront is an investment tool, you can set different risk tolerance score for your investment. I have a pretty high risk tolerance score to maximize my gain. One day when the stock market tanked…