I am using yii2 api module structure for the api call. Sturture is like api -- common ------ controllers ------ models -- config -- modules ------ v1 ---------- controllers ---------- models -- tests -- web
In v1 folder module.php is having a controller namespace which decided to the controller folder. I have write many controller for api's. Now my api's will be accessed by three different client like clientA, clientB, clientC so i want to check which client is call my api with the parameters like ... http://domain.com/v1/controller/result?client=clientA then i want to change something for the client A or also some change for client B and C. So i want to decide in module.php which client is calling the api and then change the controller namespace also by default controller namespace is
public $controllerNamespace = 'apimodulesv1controllers';
I want to make a three folder for clientA, clientB , clientC where i extend the base controller functionlity and do some change for individually . so can you help me how to change the behaviour of api module.
