Skip to content

Commit

Permalink
IBX-4123: [Backport] Added /languages and /languages/{code} endpo…
Browse files Browse the repository at this point in the history
…ints

(cherry picked from commit 674e612e176bc85556513a716556d643f81d722d)
  • Loading branch information
Steveb-p committed Nov 9, 2023
1 parent f36a54b commit 6c69db6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/bundle/Functional/_snapshot/Language.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Language": {
"_media-type": "application\/vnd.ibexa.api.Language+json",
"_media-type": "application\/vnd.ez.api.Language+json",
"_href": "\/api\/ibexa\/v2\/languages\/eng-GB",
"languageId": 2,
"languageCode": "eng-GB",
Expand Down
2 changes: 1 addition & 1 deletion tests/bundle/Functional/_snapshot/Language.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<Language media-type="application/vnd.ibexa.api.Language+xml" href="/api/ibexa/v2/languages/eng-GB">
<Language media-type="application/vnd.ez.api.Language+xml" href="/api/ezp/v2/languages/eng-GB">
<languageId>2</languageId>
<languageCode>eng-GB</languageCode>
<name>English (United Kingdom)</name>
Expand Down
8 changes: 4 additions & 4 deletions tests/bundle/Functional/_snapshot/LanguageList.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"LanguageList": {
"_media-type": "application\/vnd.ibexa.api.LanguageList+json",
"_media-type": "application\/vnd.ez.api.LanguageList+json",
"_href": "\/api\/ibexa\/v2\/languages",
"Language": [
{
"_media-type": "application\/vnd.ibexa.api.Language+json",
"_media-type": "application\/vnd.ez.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",
"_href": "/api/ezp/v2/languages/pol-PL",
"_media-type": "application/vnd.ez.api.Language+json",
"languageCode": "pol-PL",
"languageId": 4,
"name": "Polish (polski)"
Expand Down
6 changes: 3 additions & 3 deletions tests/bundle/Functional/_snapshot/LanguageList.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?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">
<LanguageList media-type="application/vnd.ez.api.LanguageList+xml" href="/api/ezp/v2/languages">
<Language media-type="application/vnd.ez.api.Language+xml" href="/api/ezp/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">
<Language href="/api/ezp/v2/languages/pol-PL" media-type="application/vnd.ez.api.Language+xml">
<languageId>4</languageId>
<languageCode>pol-PL</languageCode>
<name>Polish (polski)</name>
Expand Down

0 comments on commit 6c69db6

Please sign in to comment.