OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

This topic contains 1 reply, has 2 voices, and was last updated by  Mike Kudelya 7 years, 5 months ago.

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

  • Creator
    Topic
  • #36388

    kelton23om
    Participant

    Hi guys,

    I want to make available an “apiDoc” view, with only some specific routes (not all of them).
    This view will be available only for a few clients.

    I know that is easy to create a new view with Nelmio, but because of the Oro overriding i’m not sure how to do it properly.

    Indeed, i see that there is some class to generate the filters, documentations, etc.. dynamically, but these classes seem to be linked with the “rest_json_api” view!
    Furthermore, the routes are also handle dynamically.

    So, is there a way to add a new JsonApi view easily? with only some specific entities ?

    Thanks by advance.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #36389

    Mike Kudelya
    Participant

    Hi

    I have created this controller action with two routes and connect it to nelmio template. Here is action:

    Nelmio template you can find there, just copy it or extend: vendor/nelmio/api-doc-bundle/Nelmio/ApiDocBundle/Resources/views/layout.html.twig

Viewing 1 replies (of 1 total)

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

Back to top