This topic contains 2 replies, has 2 voices, and was last updated by Kadir Yücel 4 years, 9 months ago.
- Topic
Hi,
I’m trying to extend api_frontend.yml in OroOrderBundle (orocommerce) to enable REST POST orders to create orders with JSON API.
For that I have created ClicktrendOrderBundle wich extends OroOrderBundle
12345678910111213<?phpnamespace Clicktrend\Bundle\OrderBundle;use Symfony\Component\HttpKernel\Bundle\Bundle;class ClicktrendOrderBundle extends Bundle{public function getParent(){return 'OroOrderBundle';}}I have created bundles.yml in Resources/config/oro with
12bundles:- { name: Clicktrend\Bundle\OrderBundle\ClicktrendOrderBundle, priority: 45 }Profiler shows it enabled! Finally I have created in same directory api_frontend.yml
123456api:entities:Oro\Bundle\OrderBundle\Entity\Order:inherit: trueactions:create: trueUnfortunately it’s not shown in api/docs. If I enabled it directly in vendor/oro/commerce/src/Oro/Bundle/OrderBundle/Resources/config/oro/api_frontend.yml it works.
Can you help me thanks in advance
The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.