Rest Apis for mobile apps

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
traiyani75
Advanced
Posts: 114
Joined: 08 Nov 2019, 11:56

Re: Rest Apis for mobile apps

Post by traiyani75 » 15 Nov 2019, 10:17

Yes, Use this api for references
http://ebdaa-ecommerce-dev.mzadqatar.co ... duct?id=12

in this, what will be includes for varients, characteristics, properties, related products, similar products.

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Rest Apis for mobile apps

Post by aimeos » 16 Nov 2019, 16:06

A full include for products would be:

Code: Select all

include=attribute,media,price,product,product/property,text
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

traiyani75
Advanced
Posts: 114
Joined: 08 Nov 2019, 11:56

Re: Rest Apis for mobile apps

Post by traiyani75 » 19 Nov 2019, 09:43

Hello guys,

We have a parsed response of category. Now we are on another phase to parse product details response.
This is url for product details

http://ebdaa-ecommerce-dev.mzadqatar.co ... perty,text

Is there any idea way to parse it, and display data into mobile screen. In the above API, We get data of product into data object. Then it has relationships, inside it we have other product data which are related to the main requested one. Now that suggested products have relationships too.

How do we parse all things, and map it's attributed perfectly?

regards

User avatar
aimeos
Administrator
Posts: 7836
Joined: 01 Jan 1970, 00:00

Re: Rest Apis for mobile apps

Post by aimeos » 19 Nov 2019, 22:44

You should parse all responses the same way as they are very similar. As products can contain products, you need to implement a recursive method for parsing. Similarly, we use a recursive method for generating the response on the server.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply