Skip to content

Commit 7075983

Browse files
authored
Merge pull request #197 from scollado/patch-1
resources.xml modifications related to PR #1080
2 parents 234f981 + 314cf71 commit 7075983

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/getting-started.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,10 @@ As an alternative to annotations, you can map entity classes using XML or YAML:
173173
<!-- src/AppBundle/Resources/config/api_resources/resources.xml -->
174174

175175
<?xml version="1.0" encoding="UTF-8" ?>
176-
<resources>
176+
<resources xmlns="https://api-platform.com/schema/metadata"
177+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
178+
xsi:schemaLocation="https://api-platform.com/schema/metadata
179+
https://api-platform.com/schema/metadata/metadata-2.0.xsd">
177180
<resource class="AppBundle\Entity\Product" />
178181
<resource
179182
class="AppBundle\Entity\Offer"

0 commit comments

Comments
 (0)