Skip to content

(de)normalization_context is not used for subresourceOperations #1616

Description

@lyrixx

According to the example in the doc, the following snippet do not work:

/**
 * @ORM\Entity()
 * @ApiResource(
 *      subresourceOperations={
 *          "answer_get_subresource"= {
 *              "method"="GET",
 *              "path"="/questions/{id}/all-answers",
 *              "normalization_context"={"groups"={"answer_read"}},
 *          },
 *      },
 * )
 */
class Question

Reprocuder: https://github.com/lyrixx/test/tree/api-platform-subresource-path

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions