How to build REST API compatible with mobile and web applications

Most contemporary mobile applications have the same version accessible from the web browser. Both of them need connectivity with an external server to store the data, make them accessible, and synchronised on all user’s platforms and devices. It sounds reasonable to have just one backend for all of the platforms. It means that the app will give consistent user experience everywhere and also it is easier and cheaper to write just one version of code instead of creating and maintaining them separately.

Because most of the time in my career while starting to work on a mobile app I was cooperating with developers specialised in web development. I assume it is a very common situation. The questions, obstacles, and things that I had to explain to these developers were surprisingly identical. Because of this commonality, I decided to write this blog post and explain why and where are the differences and how to build API that will be constructed to work well with both mobile and web applications.

Continue reading “How to build REST API compatible with mobile and web applications”