Option | Types | Description |
`description` | string | |
`readable` | bool | |
`writable` | bool | |
`readableLink` | bool | https://api-platform.com/docs/core/serialization/#force-iri-with-relations-of-the-same-type-parentchilds-relations |
`writableLink` | bool | https://api-platform.com/docs/core/serialization/#force-iri-with-relations-of-the-same-type-parentchilds-relations |
`required` | bool | https://api-platform.com/docs/admin/validation/#client-side-validation |
`identifier` | bool | https://api-platform.com/docs/core/identifiers/ |
`default` | string | |
`example` | https://api-platform.com/docs/core/openapi/#using-the-openapi-and-swagger-contexts | |
`deprecationReason` | string | https://api-platform.com/docs/core/deprecations/#deprecating-resource-classes-operations-and-properties |
`fetchable` | bool | |
`fetchEager` | bool | https://api-platform.com/docs/core/performance/#eager-loading |
`jsonldContext` | array | https://api-platform.com/docs/core/extending-jsonld-context/#extending-json-ld-and-hydra-contexts |
`openapiContext` | array | https://api-platform.com/docs/core/openapi/#using-the-openapi-and-swagger-contexts |
`jsonSchemaContext` | array | |
`push` | bool | https://api-platform.com/docs/core/push-relations/ |
`security` | string Stringable | https://api-platform.com/docs/core/security |
`securityPostDenormalize` | string Stringable | https://api-platform.com/docs/core/security/#executing-access-control-rules-after-denormalization |
`types` | array<int, string> | the RDF types of this property |
`builtinTypes` | array<int, Symfony\Component\PropertyInfo\Type> | |
`schema` | array | |
`initializable` | bool | |
`iris` | array<int, string> | |
`genId` | bool | |
`uriTemplate` | string | (experimental) whether to return the subRessource collection IRI instead of an iterable of IRI |
`extraProperties` | array |
ApiProperty annotation.
Made with love by
Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.
Learn more