G
G
grabbee2020-04-28 10:21:49
symfony
grabbee, 2020-04-28 10:21:49

How to connect resources from bundles in api-platform?

You need to connect selectively by bundles and configure prefixes and access level.
The problem is that it connected absolutely all resources, including all of the nested bundles

api_platform:
  mapping:
    paths: ['%kernel.project_dir%/src/Entity']


Any path settings do not change anything.
api_platform:
    resource: .
    type: api_platform
    prefix: /api

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question