Details
-
Story
-
Resolution: Done
-
Medium
-
3.3.28, 4.2.3
-
None
-
[4.4] - Sprint 2
-
Ibexa Commerce, Ibexa Content, Ibexa Experience, Ibexa Open Source
Description
GET /api/ibexa/v2/content/languages -H "Accept: application/vnd.ibexa.api.LanguageList+json" { "LanguageList": { "_media-type": "application/vnd.ibexa.api.LanguageList+json", "_href": "/api/ibexa/v2/content/languages", "Language": [ { "_media-type": "application/vnd.ibexa.api.Language+json", "_href": "/api/ibexa/v2/content/languages/1", "languageId": 2, "identifier": "eng-GB", "name": "English (UK)" }, { "_media-type": "application/vnd.ibexa.api.Language+json", "_href": "/api/ibexa/v2/content/languages/2", "languageId": 4, "identifier": "fre-FR", "name": "French (France)" } ] } }
And since the list endpoint refers to the individual resource for each language, we need to add another endpoint for getting an individual language:
GET /api/ibexa/v2/content/languages/2 -H "Accept: application/vnd.ibexa.api.Language+json" { "Language": { "_media-type": "application/vnd.ibexa.api.Language+json", "_href": "/api/ibexa/v2/content/languages/1", "languageId": 2, "identifier": "eng-GB", "name": "English (UK)" } }
Required to implement the Ibexa Connect app.