Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Perl, Android web app, AJAX, JSONby monx663 (Sexton) |
on Nov 20, 2017 at 22:49 UTC ( [id://1203850]=perlquestion: print w/replies, xml ) | Need Help?? |
monx663 has asked for the wisdom of the Perl Monks concerning the following question:
Hi all
This is not a 100% Perl question but I am Perl programmer and my question touches on Perl heavily. There is a fully functional web based CMS that is written in Perl for which I would like to make certain functionality available to an Android app being written. The requirements are not that "heavy". The Android App needs to do the following few things: * Send a username/password combination to gain access to the CMS backoffice. * Call certain URLs which will enable the app to get a list of objects (images,names, other table contents) available in the CMS's database. * Probably POST to certain URLs in order to be able to upload images and create content. My question is: What methodology/APIs should I be looking at to complete this Perl CMS/Android app "integration". I was thinking of writing an AJAX layer that would expose certain methods to the Android app, which will be calling them via HTTP requests. I was also thinking of modifying certain of the CMS's packages to perhaps implement methods for JSON based communication of textual and binary data (images). I have also heard of Mojolistic, which supposedly is intended for writing RESTful APIs but find this a bit of an overkill for my scenario. Does anybody want to offer any of his thoughts about which route to pursue?
Back to
Seekers of Perl Wisdom
|
|