2

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?

Muhammad Anas
1,4673 gold badges13 silver badges33 bronze badges
asked Mar 22, 2019 at 4:34
1
  • 2
    Magento provides a good document for Rest APIs you can check those from yourwebsitename.com/swagger Commented Mar 22, 2019 at 5:10

1 Answer 1

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.

answered Mar 22, 2019 at 5:57
1
  • Thanks Thamo for clearing things Commented Mar 22, 2019 at 14:45

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.