My organization wants to create mobile application for their website
I have checked the rest API from dev docs: https://devdocs.magento.com/guides/v2.0/get-started/rest_front.html
Is it ok to use rest API for mobile? I mean how can I send my home page data to rest API? or how can I send any other custom page developed through API?
-
2Magento provides a good document for Rest APIs you can check those from yourwebsitename.com/swaggerRamkishan Suthar– Ramkishan Suthar2019年03月22日 05:10:39 +00:00Commented Mar 22, 2019 at 5:10
1 Answer 1
You can use magento REST API service for mobile app integration. ( You have to check the magento integrations document for the same where its clearly stated "Mobile applications authenticate using tokens." )
In default magento, We have web services for catalog, customer, cart and orders. You have to follow the below ways to share the data to mobile app.
Home Page / Custom Pages
Having entire page html to mobile app is not good idea. You have to share needed meta information ( banners, promotional data like new arrivals, best sellers ) as JSON data to mobile app. Mobile app needs to construct the home page/custom pages accordingly based on web service data.
-
Thanks Thamo for clearing thingsAsim Ali– Asim Ali2019年03月22日 14:45:01 +00:00Commented Mar 22, 2019 at 14:45