-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce x-ibexa-example-file custom property
- Loading branch information
Showing
7 changed files
with
156 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/bundle/Resources/api_platform/examples/languages/GET/LanguageList.json.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"LanguageList": { | ||
"_media-type": "application/vnd.ibexa.api.LanguageList+json", | ||
"_href": "/api/ibexa/v2/languages", | ||
"Language": [ | ||
{ | ||
"_media-type": "application/vnd.ibexa.api.Language+json", | ||
"_href": "/api/ibexa/v2/languages/eng-GB", | ||
"languageId": 2, | ||
"languageCode": "eng-GB", | ||
"name": "English (United Kingdom)" | ||
}, { | ||
"_href": "/api/ibexa/v2/languages/pol-PL", | ||
"_media-type": "application/vnd.ibexa.api.Language+json", | ||
"languageCode": "pol-PL", | ||
"languageId": 4, | ||
"name": "Polish (polski)" | ||
} | ||
] | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/bundle/Resources/api_platform/examples/languages/GET/LanguageList.xml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<LanguageList media-type="application/vnd.ibexa.api.LanguageList+xml" href="/api/ibexa/v2/languages"> | ||
<Language media-type="application/vnd.ibexa.api.Language+xml" href="/api/ibexa/v2/languages/eng-GB"> | ||
<languageId>2</languageId> | ||
<languageCode>eng-GB</languageCode> | ||
<name>English (United Kingdom)</name> | ||
</Language> | ||
<Language href="/api/ibexa/v2/languages/pol-PL" media-type="application/vnd.ibexa.api.Language+xml"> | ||
<languageId>4</languageId> | ||
<languageCode>pol-PL</languageCode> | ||
<name>Polish (polski)</name> | ||
</Language> | ||
</LanguageList> |
9 changes: 9 additions & 0 deletions
9
src/bundle/Resources/api_platform/examples/languages/code/GET/Language.json.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"Language": { | ||
"_media-type": "application/vnd.ibexa.api.Language+json", | ||
"_href": "/api/ibexa/v2/languages/eng-GB", | ||
"languageId": 2, | ||
"languageCode": "eng-GB", | ||
"name": "English (United Kingdom)" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/bundle/Resources/api_platform/examples/languages/code/GET/Language.xml.example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Language media-type="application/vnd.ibexa.api.Language+xml" href="/api/ibexa/v2/languages/eng-GB"> | ||
<languageId>2</languageId> | ||
<languageCode>eng-GB</languageCode> | ||
<name>English (United Kingdom)</name> | ||
</Language> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters