This topic contains 1 reply, has 2 voices, and was last updated by  Mike Kudelya 1 year, 1 month ago.

  • Creator
  • #30735


    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
  • #30736

    Mike Kudelya


    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)

You must be logged in to reply to this topic.