From c864d11e036b481365c2d384d412e4dc4311d977 Mon Sep 17 00:00:00 2001 From: Amrouche Hamza Date: Sun, 15 May 2016 23:53:49 +0200 Subject: [PATCH] hotfix: update doc according to recent PR --- core/external-vocabularies.md | 4 ++-- core/filters.md | 30 +++++++++++++++--------------- core/getting-started.md | 8 ++++---- core/operations.md | 12 ++++++------ getting-started/api.md | 6 +++--- 5 files changed, 30 insertions(+), 30 deletions(-) diff --git a/core/external-vocabularies.md b/core/external-vocabularies.md index bd4bb586d08..4c8189d20c1 100644 --- a/core/external-vocabularies.md +++ b/core/external-vocabularies.md @@ -13,7 +13,7 @@ ApiPlatformBundle provides annotations usable on PHP classes and properties for namespace AppBundle\Entity; -use ApiPlatform\Core\Annotation\Property; +use ApiPlatform\Core\Annotation\ApiProperty; /** * ... * @see http://schema.org/Product Documentation on Schema.org @@ -24,7 +24,7 @@ class Product /** * ... - * @Property(iri="http://schema.org/name") + * @ApiProperty(iri="http://schema.org/name") */ public $name; } diff --git a/core/filters.md b/core/filters.md index 493f18756fb..f53e13e6074 100644 --- a/core/filters.md +++ b/core/filters.md @@ -39,8 +39,8 @@ services: namespace AppBundle\Entity; -use ApiPlatform\Core\Annotation\Property; -use ApiPlatform\Core\Annotation\Resource; +use ApiPlatform\Core\Annotation\ApiProperty; +use ApiPlatform\Core\Annotation\ApiResource; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; @@ -50,7 +50,7 @@ use Symfony\Component\Validator\Constraints as Assert; * @see http://schema.org/Offer Documentation on Schema.org * * @ORM\Entity - * @Resource(attributes={"filters"={"offer.search"}},iri="http://schema.org/Offer") + * @ApiResource(attributes={"filters"={"offer.search"}},iri="http://schema.org/Offer") */ class Offer { @@ -114,8 +114,8 @@ services: namespace AppBundle\Entity; -use ApiPlatform\Core\Annotation\Property; -use ApiPlatform\Core\Annotation\Resource; +use ApiPlatform\Core\Annotation\ApiProperty; +use ApiPlatform\Core\Annotation\ApiResource; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; @@ -125,7 +125,7 @@ use Symfony\Component\Validator\Constraints as Assert; * @see http://schema.org/Offer Documentation on Schema.org * * @ORM\Entity - * @Resource(attributes={"filters"={"offer.search","offer.date"}},iri="http://schema.org/Offer") + * @ApiResource(attributes={"filters"={"offer.search","offer.date"}},iri="http://schema.org/Offer") */ class Offer { @@ -188,8 +188,8 @@ services: namespace AppBundle\Entity; -use ApiPlatform\Core\Annotation\Property; -use ApiPlatform\Core\Annotation\Resource; +use ApiPlatform\Core\Annotation\ApiProperty; +use ApiPlatform\Core\Annotation\ApiResource; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; @@ -199,7 +199,7 @@ use Symfony\Component\Validator\Constraints as Assert; * @see http://schema.org/Offer Documentation on Schema.org * * @ORM\Entity - * @Resource(attributes={"filters"={"offer.search","offer.date","offer.order"}},iri="http://schema.org/Offer") + * @ApiResource(attributes={"filters"={"offer.search","offer.date","offer.order"}},iri="http://schema.org/Offer") */ class Offer { @@ -253,8 +253,8 @@ services: namespace AppBundle\Entity; -use ApiPlatform\Core\Annotation\Property; -use ApiPlatform\Core\Annotation\Resource; +use ApiPlatform\Core\Annotation\ApiProperty; +use ApiPlatform\Core\Annotation\ApiResource; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; @@ -264,7 +264,7 @@ use Symfony\Component\Validator\Constraints as Assert; * @see http://schema.org/Offer Documentation on Schema.org * * @ORM\Entity - * @Resource(attributes={"filters"={"offer.search","offer.date","offer.boolean"}},iri="http://schema.org/Offer") + * @ApiResource(attributes={"filters"={"offer.search","offer.date","offer.boolean"}},iri="http://schema.org/Offer") */ class Offer { @@ -303,8 +303,8 @@ services: namespace AppBundle\Entity; -use ApiPlatform\Core\Annotation\Property; -use ApiPlatform\Core\Annotation\Resource; +use ApiPlatform\Core\Annotation\ApiProperty; +use ApiPlatform\Core\Annotation\ApiResource; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; @@ -314,7 +314,7 @@ use Symfony\Component\Validator\Constraints as Assert; * @see http://schema.org/Offer Documentation on Schema.org * * @ORM\Entity - * @Resource(attributes={"filters"={"offer.search","offer.date","offer.boolean","offer.numeric"}},iri="http://schema.org/Offer") + * @ApiResource(attributes={"filters"={"offer.search","offer.date","offer.boolean","offer.numeric"}},iri="http://schema.org/Offer") */ class Offer { diff --git a/core/getting-started.md b/core/getting-started.md index e9140201b40..722eb1229a5 100644 --- a/core/getting-started.md +++ b/core/getting-started.md @@ -204,13 +204,13 @@ A resource can be defined through Annotations, Yaml or XML. The following repres namespace AppBundle\Entity; -use ApiPlatform\Core\Annotation\Resource; +use ApiPlatform\Core\Annotation\ApiResource; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity - * @Resource + * @ApiResource */ class Product { @@ -221,13 +221,13 @@ class Product namespace AppBundle\Entity; -use ApiPlatform\Core\Annotation\Resource; +use ApiPlatform\Core\Annotation\ApiResource; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Entity - * @Resource + * @ApiResource */ class Offer { diff --git a/core/operations.md b/core/operations.md index fff7eac908e..d7948485645 100644 --- a/core/operations.md +++ b/core/operations.md @@ -39,11 +39,11 @@ If you want to use custom controller action, [refer to the dedicated documentati ```php