Learning Objects API

Learning objects are educational contents (movie, odf, file, sound, etc) which an user can show, create, update and destroy.

Destroying a learning object

DELETE /v1/learning_objects/:id

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: V8tTB4BLFKvAw1dg6Tqslg
Client: 7hdwpRpK3cegngfPuETWig
Uid: citlalli@nicolaspfannerstill.biz
Host: example.org
Cookie: 

Route

DELETE /v1/learning_objects/785

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/785" -d '' -X DELETE \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: V8tTB4BLFKvAw1dg6Tqslg" \
	-H "Client: 7hdwpRpK3cegngfPuETWig" \
	-H "Uid: citlalli@nicolaspfannerstill.biz"

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=MExCT1l6K3dNcnJFOStsM28wcFhBUHpXMnVWVERaTlNSOHBCaTZ0c0I3ZG9Xak1TVks5ZGhEbUlFZG5uK21jTDhEOFU4bCtpYXJYQVhPT01RMGd4b2I0MWk2cW4yL2Y4WUgySDBEdUViUUphOUMxb0RHbFNua0FqOGs2SVRDaVZDaHEwSUJKOG5EQkxVSFZPbEErVHRvY1RoM2g0Ky84akdObS95U2dMVTJZL1pOTTNiTmIrNnAzNHVlODZJSms1LS1qa0lqT3V0UHNzbHpXT3QwSE16dk53PT0%3D--b3d26e53ac6a226052772ba7b19db0c82b5ed7d5; path=/; HttpOnly
Vary: Origin
ETag: W/"4df20f95e824b2af44a61642d88daaf0"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: bfe31d90-08fb-4bcb-a763-318a35bb5462
X-Runtime: 0.313099
Content-Length: 20

Status

200 OK

Body

{
  "status": "deleted"
}