Skip to content

Commit ce4c676

Browse files
docs: update metadata 3.0 on XML (#1577)
1 parent 18189f0 commit ce4c676

9 files changed

+46
-46
lines changed

core/content-negotiation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ resources:
157157
```
158158

159159
```xml
160-
<resources xmlns="https://api-platform.com/schema/metadata/resources"
160+
<resources xmlns="https://api-platform.com/schema/metadata/resources-3.0"
161161
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
162-
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources
163-
https://api-platform.com/schema/metadata/resources.xsd">
162+
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0
163+
https://api-platform.com/schema/metadata/resources-3.0.xsd">
164164
<resource class="App\Entity\Greeting">
165165
<formats>
166166
<format>jsonld</format> <!-- format already defined in the config -->

core/controllers.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ App\Entity\Book:
128128
<!-- api/config/api_platform/resources.xml -->
129129

130130
<resources
131-
xmlns="https://api-platform.com/schema/metadata/resources"
131+
xmlns="https://api-platform.com/schema/metadata/resources-3.0"
132132
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
133-
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources
134-
https://api-platform.com/schema/metadata/resources.xsd">
133+
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0
134+
https://api-platform.com/schema/metadata/resources-3.0.xsd">
135135
<resource class="App\Entity\Book">
136136
<operations>
137137
<operation class="ApiPlatform\Metadata\Get" />
@@ -201,10 +201,10 @@ App\Entity\Book:
201201
<?xml version="1.0" encoding="UTF-8" ?>
202202
<!-- api/config/api_platform/resources.xml -->
203203

204-
<resources xmlns="https://api-platform.com/schema/metadata/resources"
204+
<resources xmlns="https://api-platform.com/schema/metadata/resources-3.0"
205205
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
206-
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources
207-
https://api-platform.com/schema/metadata/resources.xsd">
206+
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0
207+
https://api-platform.com/schema/metadata/resources-3.0.xsd">
208208
<resource class="App\Entity\Book">
209209
<operations>
210210
<operation class="ApiPlatform\Metadata\Get" />
@@ -271,10 +271,10 @@ App\Entity\Book:
271271
<?xml version="1.0" encoding="UTF-8" ?>
272272
<!-- api/config/api_platform/resources.xml -->
273273

274-
<resources xmlns="https://api-platform.com/schema/metadata/resources"
274+
<resources xmlns="https://api-platform.com/schema/metadata/resources-3.0"
275275
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
276-
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources
277-
https://api-platform.com/schema/metadata/resources.xsd">
276+
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0
277+
https://api-platform.com/schema/metadata/resources-3.0.xsd">
278278
<resource class="App\Entity\Book">
279279
<operations>
280280
<operation class="ApiPlatform\Metadata\Get" />
@@ -343,10 +343,10 @@ App\Entity\Book:
343343
<?xml version="1.0" encoding="UTF-8" ?>
344344
<!-- api/config/api_platform/resources.xml -->
345345

346-
<resources xmlns="https://api-platform.com/schema/metadata/resources"
346+
<resources xmlns="https://api-platform.com/schema/metadata/resources-3.0"
347347
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
348-
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources
349-
https://api-platform.com/schema/metadata/resources.xsd">
348+
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0
349+
https://api-platform.com/schema/metadata/resources-3.0.xsd">
350350
<resource class="App\Entity\Book">
351351
<operations>
352352
<operation class="ApiPlatform\Metadata\Get" />

core/extending-jsonld-context.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ App\Entity\Book:
9898
<?xml version="1.0" encoding="UTF-8" ?>
9999
<!-- api/config/api_platform/resources.xml -->
100100

101-
<resources xmlns="https://api-platform.com/schema/metadata/resources"
101+
<resources xmlns="https://api-platform.com/schema/metadata/resources-3.0"
102102
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
103-
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources
104-
https://api-platform.com/schema/metadata/resources.xsd">
103+
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0
104+
https://api-platform.com/schema/metadata/resources-3.0.xsd">
105105
<resource class="App\Entity\Book">
106106
<operations>
107107
<operation class="ApiPlatform\Metadata\Get">

core/filters.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ to a Resource in two ways:
7171
<?xml version="1.0" encoding="UTF-8" ?>
7272
<!-- api/config/api_platform/resources.xml -->
7373
74-
<resources xmlns="https://api-platform.com/schema/metadata/resources"
74+
<resources xmlns="https://api-platform.com/schema/metadata/resources-3.0"
7575
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
76-
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources
77-
https://api-platform.com/schema/metadata/resources.xsd">
76+
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0
77+
https://api-platform.com/schema/metadata/resources-3.0.xsd">
7878
<resource class="App\Entity\Offer">
7979
<operations>
8080
<operation class="ApiPlatform\Metadata\GetCollection">

core/getting-started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ resources:
181181
<?xml version="1.0" encoding="UTF-8" ?>
182182
<!-- api/config/api_platform/resources.xml -->
183183

184-
<resource xmlns="https://api-platform.com/schema/metadata/resources"
184+
<resource xmlns="https://api-platform.com/schema/metadata/resources-3.0"
185185
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
186-
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources
187-
https://api-platform.com/schema/metadata/resources.xsd">
186+
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0
187+
https://api-platform.com/schema/metadata/resources-3.0.xsd">
188188
<resource class="App\Entity\Product" />
189189
<resource
190190
class="App\Entity\Offer"

core/identifiers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ resource:
4949
<properties xmlns="https://api-platform.com/schema/metadata/properties">
5050
<property resource="App\Entity\Person" name="code" identifier="true"/>
5151
</properties>
52-
<resources xmlns="https://api-platform.com/schema/metadata/resources">
52+
<resources xmlns="https://api-platform.com/schema/metadata/resources-3.0">
5353
<resource class="App\Entity\Person" provider="App\State\PersonProvider" />
5454
</resources>
5555
```

core/openapi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,10 @@ resources:
367367

368368
```xml
369369
<?xml version="1.0" encoding="UTF-8" ?>
370-
<resources xmlns="https://api-platform.com/schema/metadata/resources"
370+
<resources xmlns="https://api-platform.com/schema/metadata/resources-3.0"
371371
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
372-
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources
373-
https://api-platform.com/schema/metadata/resources.xsd">
372+
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0
373+
https://api-platform.com/schema/metadata/resources-3.0.xsd">
374374
<resource class="App\Entity\Rabbit">
375375
<operations>
376376
<operation class="ApiPlatform\Metadata\Post" name="create_rabbit" uriTemplate="/rabbit/create"

core/operations.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ App\Entity\Book:
9898
<?xml version="1.0" encoding="UTF-8" ?>
9999
<!-- api/config/api_platform/resources.xml -->
100100

101-
<resources xmlns="https://api-platform.com/schema/metadata/resources"
101+
<resources xmlns="https://api-platform.com/schema/metadata/resources-3.0"
102102
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
103-
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources
104-
https://api-platform.com/schema/metadata/resources.xsd">
103+
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0
104+
https://api-platform.com/schema/metadata/resources-3.0.xsd">
105105
<resource class="App\Entity\Book">
106106
<operations>
107107
<operation class="ApiPlatform\Metadata\Get" />
@@ -153,10 +153,10 @@ App\Entity\Book:
153153
<?xml version="1.0" encoding="UTF-8" ?>
154154
<!-- api/config/api_platform/resources.xml -->
155155

156-
<resources xmlns="https://api-platform.com/schema/metadata/resources"
156+
<resources xmlns="https://api-platform.com/schema/metadata/resources-3.0"
157157
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
158-
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources
159-
https://api-platform.com/schema/metadata/resources.xsd">
158+
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0
159+
https://api-platform.com/schema/metadata/resources-3.0.xsd">
160160
<resource class="App\Entity\Book">
161161
<operations>
162162
<operation class="ApiPlatform\Metadata\GetCollection" />
@@ -214,10 +214,10 @@ App\Entity\Book:
214214
<?xml version="1.0" encoding="UTF-8" ?>
215215
<!-- api/config/api_platform/resources.xml -->
216216

217-
<resources xmlns="https://api-platform.com/schema/metadata/resources"
217+
<resources xmlns="https://api-platform.com/schema/metadata/resources-3.0"
218218
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
219-
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources
220-
https://api-platform.com/schema/metadata/resources.xsd">
219+
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0
220+
https://api-platform.com/schema/metadata/resources-3.0.xsd">
221221
<resource class="App\Entity\Book">
222222
<operations>
223223
<operation class="ApiPlatform\Metadata\GetCollection" />
@@ -291,10 +291,10 @@ App\Entity\Book:
291291
<?xml version="1.0" encoding="UTF-8" ?>
292292
<!-- api/config/api_platform/resources.xml -->
293293

294-
<resources xmlns="https://api-platform.com/schema/metadata/resources"
294+
<resources xmlns="https://api-platform.com/schema/metadata/resources-3.0"
295295
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
296-
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources
297-
https://api-platform.com/schema/metadata/resources.xsd">
296+
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0
297+
https://api-platform.com/schema/metadata/resources-3.0.xsd">
298298
<resource class="App\Entity\Book">
299299
<operations>
300300
<operation class="ApiPlatform\Metadata\Post" uriTemplate="/grimoire" status="301" />
@@ -355,10 +355,10 @@ App\Entity\Book:
355355
<?xml version="1.0" encoding="UTF-8" ?>
356356
<!-- api/config/api_platform/resources.xml -->
357357

358-
<resources xmlns="https://api-platform.com/schema/metadata/resources"
358+
<resources xmlns="https://api-platform.com/schema/metadata/resources-3.0"
359359
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
360-
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources
361-
https://api-platform.com/schema/metadata/resources.xsd">
360+
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0
361+
https://api-platform.com/schema/metadata/resources-3.0.xsd">
362362
<resource class="App\Entity\Book" routePrefix="/library" />
363363
</resources>
364364
```

core/url-generation-strategy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ App\Entity\Book:
6060
<!-- api/config/api_platform/resources.xml -->
6161

6262
<resources
63-
xmlns="https://api-platform.com/schema/metadata/resources"
63+
xmlns="https://api-platform.com/schema/metadata/resources-3.0"
6464
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
65-
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources
66-
https://api-platform.com/schema/metadata/resources.xsd">
65+
xsi:schemaLocation="https://api-platform.com/schema/metadata/resources-3.0
66+
https://api-platform.com/schema/metadata/resources-3.0.xsd">
6767
<resource class="App\Entity\Book" urlGenerationStrategy="0" />
6868
</resources>
6969
```

0 commit comments

Comments
 (0)