You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/external-vocabularies.md
+36-21Lines changed: 36 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,8 @@ API Platform provides attributes usable on PHP classes and properties for specif
7
7
8
8
```php
9
9
<?php
10
-
// api/src/Entity/Book.php
11
-
namespace App\Entity;
10
+
// api/src/ApiResource/Book.php with Symfony or app/ApiResource/Book.php with Laravel
11
+
namespace App\ApiResource;
12
12
13
13
use ApiPlatform\Metadata\ApiProperty;
14
14
use ApiPlatform\Metadata\ApiResource;
@@ -52,22 +52,37 @@ The generated JSON for products and the related context document will now use ex
52
52
53
53
An extended list of existing open vocabularies is available on [the Linked Open Vocabularies (LOV) database](https://lov.linkeddata.es/dataset/lov/).
54
54
55
-
By default, when using [validations](validation.md) API Platform will try to define known [Schema.org](https://schema.org) types as IRIs for your properties if you did not provide any in your `#[ApiProperty]` attributes.
0 commit comments