How can I create a custom api for product detail?
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!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
How can I create a custom api for product detail?
Code: Select all
Enviroment:
Aimeos: dev-master
Laravel: 11
Mac OS
I'm currently working on a system with a separate front end using React Next.js. We're utilizing the Aimeos JSON API to fetch data, but certain data points need to be formatted before being sent to the front end.
How can I create a custom API for a single product in this setup? Is the process similar to Laravel, where you:
1. Create a controller
2 Define the API route in app/routes/api.php
Does this approach apply here as well?
Thanks in advance for your help!
Re: How can I create a custom api for product detail?
The Laravel approach works but we don't recommend that way. You get all data you need from the existing Aimeos JSON:API and all transformations of the data for displaying it should be done in your JS frontend application.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
