Use existing Spring MVC for mobile app

I have a web application using Spring MVC. We are now planning to develop mobile apps using ionic framework (for Android and iOS apps). For server side development, the following are my doubts.

1) Is it possible to reuse existing Spring MVC to be used from mobile apps as well? (Most of the calls return json since our web app client side is js knockout).

2) Or do I need to use the Scala play framework? This is completely new to me and will need a training period while this development is urgent.

3) If I use Restful apis and reuse existing service classes, what if I don't need to send the full bo (like json) but need to ignore or add some more fields?

4) Current Spring MVC is protected by Spring MVC. How can I get security info if I am using Spring MVC or any REstful services?

5) Which Restful webservice library is recommended?

thank

0


source to share


1 answer


If I understand correctly, you are saying that you already have an application that basically serves a compliant API and outputs json. In that case, you just don't have to look further - just use this as your server (add the additional API functionality you need and reuse whatever you already have).



You can use Angular $ resource to interact with RESTful server datasources from within Ionic.

+1


source







All Articles