Adding custome graphql api

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!
User avatar
Muhammad-Nawlo
Posts: 15
Joined: 16 Jul 2024, 02:03

Adding custome graphql api

Post by Muhammad-Nawlo » 26 Oct 2024, 18:03

php 8.1
aimeos-laravel 2024.10
aimeoscom/ai-site 2024.07
Hey, How are you doing
I'm implementing blog management, I almost finished but I want to implement new graphql api for my custom domain
How can implement this.
I need it for get my category to use it for blog

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

Re: Adding custome graphql api

Post by aimeos » 28 Oct 2024, 11:58

If you have implemented a manager for a new domain (e.g. "blog"), then just add that new domain name to the list of configured resources for the GraphQL API in your own package in ./config/admin.php:

Code: Select all

return [
	'graphql' => [
		'domains' => [
			'blog' => 'blog'
		]
	]
];
See: https://github.com/aimeos/ai-admin-grap ... min.php#L5
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply