E
E
excalibur2011-09-01 14:55:45
API
excalibur, 2011-09-01 14:55:45

REST-like API for a site with the ability to launch applications only from the admin panel

So there is a portal. It was decided to outsource some of the tasks, but the source codes will not be transferred to anyone. Therefore, there will be an API for third-party applications that will perform the necessary work.

One such application would be a website translator that would use the Google Translator API.
For example, data will be retrieved from the database using the link mydomain.com/api/catalog.getItemList.json . Further, the received data is translated and returned via the API back to the site and saved.

Now we need to figure out how to implement the ability to run such applications only by the portal administrator, i.e. from the administrative part (i.e. suspend the ability of the application developer to execute the application). I would like to hear your opinions on this matter.

PS I use Zend Framework.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
png, 2011-09-04
@png

And who is the initiator of the interaction? Admin? Or a third party service?
If the admin panel, then why do you need REST? Maybe the SOAP/XMLRPC architecture is more suitable for you?
the translator application is a SOAP server
; your admin panel is a SOAP client
. You can limit the launch of this or that functionality by banal authorization.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question