Languages API

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

Destroying a language

DELETE /v1/languages/:id

Parameters

Name Description
id The id of the language

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: 3DhmF8BgRX8526YLdGccxQ
Client: ajOEhrG8OVHQnQv9Hc079A
Uid: garland.hauck@dickens.co
Host: example.org
Cookie: 

Route

DELETE /v1/languages/1

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/languages/1" -d '' -X DELETE \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: 3DhmF8BgRX8526YLdGccxQ" \
	-H "Client: ajOEhrG8OVHQnQv9Hc079A" \
	-H "Uid: garland.hauck@dickens.co"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
Set-Cookie: _session_id=TmdoOWMraC9ndWp0UGFPbWc2TXBFUnpWQ3gzOHo4VFgySTdwN0JyeDhYQXhlM2EyUlF4dWxnaXVjMHErVVFpZGVWYWFzZW4yaGF4ZFU2Tm1ERnBMaldvd3R5RUwzZG1sY1FIUWw3V3VpamViaDBzTmh3WkkrVHIrQldiMFRvclQrUnZORUcxODJrVWVrVVY0YjdJWU0zMTJJMWxBc0dlci81RTBHN3lTOWV3Nlc4RkU5K2RpQWFvTXlXZDhjVW5vLS1rMXJIQ052RkloYlNaOUlwVXl4TXV3PT0%3D--f911ccac6fc8a8cdc4dfa8e5cadcefa1333dc088; path=/; HttpOnly
Vary: Origin
ETag: W/"4df20f95e824b2af44a61642d88daaf0"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: f50ed1e0-9e58-44a8-adab-3b3f097297f4
X-Runtime: 0.102510
Content-Length: 20

Status

200 OK

Body

{
  "status": "deleted"
}