Using the language endpoint

Here, languages for events are listed. In the event endpoint, the event languages may be shown in the in_language field, if known.

Also, event data may have translations in the languages which have translation_available set to true. Currently, translations in fi, sv, en, ru, zh_hans, and ar are supported.

Events organized in or translated to a specific language can be found at the event endpoint using the query parameter language.

GET /linkedcourses-test/v1/language/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json ;utf-8
Vary: Accept

{
    "meta": {
        "count": 3,
        "next": null,
        "previous": null
    },
    "data": [
        {
            "id": "sv",
            "translation_available": true,
            "name": null,
            "@id": "https://linkedcourses-api.test.hel.ninja/linkedcourses-test/v1/language/sv/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "fi",
            "translation_available": true,
            "name": null,
            "@id": "https://linkedcourses-api.test.hel.ninja/linkedcourses-test/v1/language/fi/",
            "@context": "http://schema.org",
            "@type": "Language"
        },
        {
            "id": "en",
            "translation_available": true,
            "name": null,
            "@id": "https://linkedcourses-api.test.hel.ninja/linkedcourses-test/v1/language/en/",
            "@context": "http://schema.org",
            "@type": "Language"
        }
    ]
}