api-platform / docs

API Platform documentation
https://api-platform.com/docs/
164 stars 1.06k forks source link

Missed Subresource yaml configurations #1858

Open alebedev80 opened 1 year ago

alebedev80 commented 1 year ago

How to declare subresource by YAML configuration?

    uriVariables: [
        'companyId' => new Link(fromClass: Company::class, toProperty: 'company'),
        'id' => new Link(fromClass: Employee::class),
    ],

YAML examples completely missed here P.S. current documentation quality much worse when i choose API platform (was version 2.4) :(

stale[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

soyuka commented 8 months ago

https://github.com/api-platform/core/blob/main/tests/Fixtures/TestBundle/Resources/config/api_resources_orm/resources.yaml#L21