Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-4123

As a REST consumer, I want to retrieve the defined languages

    XMLWordPrintable

Details

    • [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.

       

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              bertrand.dunogier@ibexa.co Bertrand Dunogier
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: