Languages API

Languages are a set of languages which the learning objects can belong to, like portuguese, english and etc.

Get a list of languages

GET /v1/languages

Parameters

Name Description
limit Limit of languages
offset Offset of languages

Request

Headers

Accept: application/json
Content-Type: application/json
Host: example.org
Cookie: 

Route

GET /v1/languages?limit=12&offset=0

Query Parameters

limit: 12
offset: 0

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/languages?limit=12&offset=0" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Total-Count: 10
Content-Type: application/json; charset=utf-8
Vary: Origin
ETag: W/"d514dd2a311b2ca621a811a7d44ba799"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 3b6d02e7-b1e4-4ef1-b1ef-913e7ac7025f
X-Runtime: 0.008737
Content-Length: 389

Status

200 OK

Body

[
  {
    "id": 1,
    "name": "Português",
    "code": "pt"
  },
  {
    "id": 2,
    "name": "Inglês",
    "code": "en"
  },
  {
    "id": 3,
    "name": "Espanhol",
    "code": "es"
  },
  {
    "id": 4,
    "name": "Francês",
    "code": "fr"
  },
  {
    "id": 5,
    "name": "Alemão",
    "code": "de"
  },
  {
    "id": 6,
    "name": "Italiano",
    "code": "it"
  },
  {
    "id": 7,
    "name": "Mandarim",
    "code": "zh"
  },
  {
    "id": 8,
    "name": "Russo",
    "code": "ru"
  },
  {
    "id": 9,
    "name": "Japonês",
    "code": "jp"
  },
  {
    "id": 10,
    "name": "Outro",
    "code": "Outro"
  }
]