* – commercial
REST APIs are something I am very excited about ! Right when I started to use the ‘Play Framework’ for developing web applications, I noticed the ease with which I was able to map the URL directly to my java methods. At that time I didn’t realize how Play! was mimicking the REST API or any web service for that matter.
I wanted to learn and use web services, for quite some time. I had read quite a few articles, that recommend developing UI which are based on Web Services. The whole objective of my scouring through the web, was to improve the way I did, UI Development. What I found was, Web Services give a lot of flexibility, and simplifies developing UI.
The advantage I see of using web services, is that I know what data I am getting and I am immediately thinking about how to show this information using the UI. There is a clear separation of concerns, when it comes to the User Interface and the Business Logic, and the UI developer just has to think of the data. I just love the JSON Data format, and using it with UI is just a breeze. And isn’t it great that REST Web Services deliver JSON.
The other advantage is that UI is just a part of your application, your services can be consumed by others and they don’t have to depend on your User Interface if it is not what they want. The Application is flexible in that way.