Skip to content

(de)normalization_context is not used for subresourceOperations #1616

Closed
@lyrixx

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

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions