monx663 has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl, Android web app, AJAX, JSON
by LanX (Saint) on Nov 20, 2017 at 23:30 UTC | |
by monx663 (Sexton) on Nov 21, 2017 at 11:50 UTC | |
by LanX (Saint) on Nov 21, 2017 at 12:01 UTC | |
by monx663 (Sexton) on Nov 21, 2017 at 12:54 UTC | |
by LanX (Saint) on Nov 21, 2017 at 13:35 UTC | |
| |
| A reply falls below the community's threshold of quality. You may see it by logging in. | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |