Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In Service folder, create PostApi class what is extended from AbstractResourceApi class and implements MobileAppSettingInterface interface.

All required methods need to be implemented will appear (???). ThenAt this time, we will implement two functions main methods of PostApi class

  • Method PostApi::findAll() is to get all posts. 
  • Method PostApi::getAppSetting() is to register settings of the Post app to the Native Mobile App. Minimal code show as below:

...


We have finished implementing two primary classes of Posts app. Now we need to register Posts app to the Phpfox system

...