File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
src/Symfony/Bundle/Resources/config/routing Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ Feature: JSON-LD using iri_only parameter
3
3
As a Vulcain user and as a developer
4
4
I should be able to only get an IRI list when I ask a resource.
5
5
6
- Scenario : Retrieve Dummy's resource context with iri_only
7
- When I send a "GET" request to "/contexts/IriOnlyDummy "
6
+ Scenario Outline : Retrieve Dummy's resource context with iri_only
7
+ When I send a "GET" request to "<uri> "
8
8
Then the response status code should be 200
9
9
And the response should be in JSON
10
10
And the header "Content-Type" should be equal to "application/ld+json; charset=utf-8"
@@ -20,6 +20,14 @@ Feature: JSON-LD using iri_only parameter
20
20
}
21
21
}
22
22
"""
23
+ Examples :
24
+ | uri |
25
+ | /contexts /IriOnlyDummy |
26
+ | /contexts /IriOnlyDummy .jsonld |
27
+
28
+ Scenario : Retrieve Dummy's resource context with invalid format returns an error
29
+ When I send a "GET" request to "/contexts/IriOnlyDummy.json"
30
+ Then the response status code should be 404
23
31
24
32
@createSchema
25
33
Scenario : Retrieve Dummies with iri_only and jsonld_embed_context
Original file line number Diff line number Diff line change 10
10
<default key =" _format" >jsonld</default >
11
11
<default key =" _api_respond" >true</default >
12
12
13
- <requirement key =" shortName" >.+</requirement >
13
+ <requirement key =" shortName" >[^.]+</requirement >
14
+ <requirement key =" _format" >jsonld</requirement >
14
15
</route >
15
16
16
17
</routes >
You can’t perform that action at this time.
0 commit comments