rest api advanced template

Hi,

I developed a project with yii2 with advanced templates with RBCA authentication system with mysql database, in the backend operations of crud on various tables once authenticated, it works fine now. I have the need of a rest api service since I should create an app, my question is: I have to build another application with basic template as a rest api service ?, in servizo obviously there must also be the authentication such as when I in web application without session because the rest bees do not, any advice?