Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(serializer): add ApiProperty::uriTemplate option #5675

Merged
merged 2 commits into from
Sep 11, 2023

Commits on Sep 11, 2023

  1. feat(serializer): add ApiProperty::uriTemplate option

    This feature gives control over the operation used for *toOne and
    *toMany relations IRI generation.
    
    When defined, API Platform will use the operation declared on the related
    resource that matches the uriTemplate string.
    
    In addition, this will override the value returned to be the IRI string
    only, not an object in JSONLD formats. For HAL and JSON:API format, the
    IRI will be used in links properties, and in the objects embedded or in
    relationship properties.
    GregoireHebert authored and soyuka committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    b8ec98d View commit details
    Browse the repository at this point in the history
  2. fix: update for guide

    GregoireHebert authored and soyuka committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    2aa93a8 View commit details
    Browse the repository at this point in the history