Hi
I have an existing Yii2 (basic template) application. We are looking to now build an API to allow communication between another non-Yii system. So I’m thinking along the lines of a REST API. What would be the best way/process to integrate whilst maintaining DRY principles.
I was thinking along the lines of create a new module to house the restful api and go from there. Is that a reasonable standard idea or is there a better way???
Finally, in this situation we need to enable authentication. Would I need to create a new RESTful USER controller within this module, or should I be making the web application USER controller restful? If so, how would that effect the web application itself?