Skip to content

[RFC] Subresource metadata #2706

@soyuka

Description

@soyuka

This issue merges multiple subresources issues because the root problem is the same.

While talking with core members at EU-FOSSA Hackathon we came to a solution. Best would be to refactor the ApiSubresource annotation so that it supports the same attributes as does the ApiResource. For example:

  • routing options
  • access_control
  • normalization context

Thanks to this it'll be easier to declare these and we solve the issue (mentioned in #1617 (comment)). The subresource metadata will not be in ApiResource anymore but directly inside the ApiSubresource annotation.

Todo list :

consider: #3466 and work on #3689
Maybe that this is a prerequisite for write support on subresources (see #2598 #2428)

ping @torreytsui @vincentchalamon please lmk if I forgot things
@lyrixx I'm closing related PRs we will definitely take back the work you did if we can, thanks for pushing this issues

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