Learning Objects API

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

Publishing a learning object

POST /v1/learning_objects/:id/publish

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: kJmDRC5geT-USPVRCos4ow
Client: o3vHivyFuvqWyAzTm852XQ
Uid: carley@rolfsonabbott.name
Host: example.org
Cookie: 

Route

POST /v1/learning_objects/772/publish

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/772/publish" -d '' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: kJmDRC5geT-USPVRCos4ow" \
	-H "Client: o3vHivyFuvqWyAzTm852XQ" \
	-H "Uid: carley@rolfsonabbott.name"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: text/plain; charset=utf-8
Set-Cookie: _session_id=OUY2dTdVVnhlR2haVi9zVXU5Si9kVWVReS9aV0pFZ0trSnMxL1FjOG9lS1QwTzJPMGsrRGVRR2w5d1c1SitYV2NmWVViWE9WTWlycnFuOVEzUGZ6ZHE2L3hyckczZGgzbWFMbjROL3lvQ0tvSFFZWVNQZHE1dE9lcmx2Y2h5N1hqSDZ6QVlaalhVMmNyZDNKTGJtUWdtMEMrRjdRSitMaThQeEpkV1BEUHQ1VUpsWWdrNmtwZkV0Z0tOd2RQazRBLS1IcnFuWTExTm9CYjNRNFBNZ2crSWdnPT0%3D--aa05a5d60372c66b9473e3f77d04721c51b8674a; path=/; HttpOnly
Vary: Origin
ETag: W/"36a9e7f1c95b82ffb99743e0c5c4ce95"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 295255af-3fde-41dd-8b27-e9e1aa930eab
X-Runtime: 0.145248
Content-Length: 1

Status

200 OK

Body