Hi,
What is the best way to create a REST API with Phalcon ? I have a phalcon application and a phalcon Micro application(who content the REST web services for android application). Should I create a Multi module apps like this ? In this case the web application and the Micro module have the access to the database and it is not necessary to call the web services in the application controller to do a query in database and they have access to the same public folder.
Or should I split the micro module and the applcation ? In this case I have the micro module on a server and the application in another server. Then in my Phalcon controller I have to call the micro module to get the webservices to create / insert / delete into the database because this application doesn't have the database access. And all files created will be on the server of the micro module.
So... What is the best way ?
Thanks.