Yii Framework Forum: Yii2 advanced template the application: Every calls should be from RESTful API - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii2 advanced template the application: Every calls should be from RESTful API

#1 User is offline   Gideon Babu 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 12-April 17

Posted 15 April 2017 - 10:00 PM

I am a newbie to Yii. I have a requirement like this:

The web application should have RESTful API services to use it to start mobile application similar to a web application. The web application also displays and manipulate information through REST API only.

It shouldn't be normal MVC pattern. If I am hitting about us link or Employee link, there should be API calls and from the response, only the content should be displayed on the web application.

I am checking out the Yii2 advanced template. I have tested budiirawan's this artic and it is working good as a separate API. Are there any modules for the Yii2 advanced template to fulfill my requirement?

Please suggest me your ideas? I need to send every call from a controller to API and then back to view instead of models?

Thank you,
-Gideon
0

#2 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,184
  • Joined: 17-January 09
  • Location:Russia

Posted 17 April 2017 - 09:12 AM

You don't really need extensions for that. REST API is created using standard toolbox. UI is usually made using AngularJS or VueJS.
Yii 2.0 Development Cookbook

Enjoying Yii? Star us at github

Support me so I can work more on Yii: https://www.patreon.com/samdark
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users