OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – How do I? Questions How to add filters an existing entity api

This topic contains 4 replies, has 2 voices, and was last updated by  matt1991 7 years ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #29261

    matt1991
    Participant

    Hello,
    I need some help, i added filters to the entity order from MagentoBundle in my own bundle under “Resources/config/oro/api.yml” like this :

    When i run php app/console oro:api:cache:clear and oro:api:doc:cache:clear command for make him accessible through Data API, it doesn’t work however i run php app/console oro:api:config:dump “OroCRM\Bundle\MagentoBundle\Entity\Order” i can see the api configuration that i added

    My bundle is correctly added and i make the same thing in a local environment i made it.

    Is there anything more to do ?

    System information:
    oro/platform 1.10.12
    oro/crm 1.10.12
    symfony/symfony v2.8.11

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #29262

    Mike Kudelya
    Participant

    Hi

    Could you please tell me what kind of issue you are experiencing? Did you remove ‘/app/cache/prod’ and ‘/app/cache/dev’ directories?

    #29263

    matt1991
    Participant

    Hey Mike,

    Yes i tried many times to remove ‘/app/cache/prod’ and ‘/app/cache/dev’ directories.

    The issue is that filters do not appear in the api /api/magentoorders/ and no more in sandbox api although the removal cache.

    Thank for your answer
    Regards.

    #29264

    Mike Kudelya
    Participant

    Hi

    I have just tested your case: added ‘status’ and ‘updatedAt’ fields to api.yml, ran two commands (oro:api:*), deleted cache directories and checked local url ‘http://orocrm-application.local/api/doc/rest_json_api#get–api-magentoorders’. Here is the result:

    Also, I ran script and got a valid order record:

    Are you using the PHP OPCache?

    #29265

    matt1991
    Participant

    Hi Mike,

    Thank you for your help, it was a cache problem, i didn’t think to check the php OPCache.

    Thank
    Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)

The forum ‘OroCRM – How do I? Questions’ is closed to new topics and replies.

Back to top