Skip to content

RC.5: ResourceClassNotFoundException: Resource not found. #849

@karser

Description

@karser

The error:
ApiPlatform\Core\Exception\ResourceClassNotFoundException: Resource not found.

I'm using
"api-platform/core": "v2.0.0-rc.5" and "nelmio/api-doc-bundle": "~2.13.0".

#api_resources.yml
user:
    attributes:
        filters: ['user.admins_only', 'user.search_filter']
        normalization_context: { groups: ['user_read'] }
        denormalization_context: { groups: ['user_write'] }

The error has gone after I changed my api_resources.yml so it looks like this:

UserBundle\Entity\User:
    attributes:
        filters: ['user.admins_only', 'user.search_filter']

Is it bug or a new feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions