Languages API

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

Get a language

GET /v1/languages/:id

Request

Headers

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

Route

GET /v1/languages/1

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/languages/1" -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
Content-Type: application/json; charset=utf-8
Vary: Origin
ETag: W/"4fc2d0629eb2581cc327c2034cc6b6ca"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: e852ce8d-c7c0-4999-9c92-7d0a7fa59b3b
X-Runtime: 0.003253
Content-Length: 40

Status

200 OK

Body

{
  "id": 1,
  "name": "Português",
  "code": "pt"
}