Subjects API

Subjects to digital resources, like Artes, Biologia.

Removing subjects

DELETE v1/:type/:id/subjects

Parameters

Name Description
id The id of the object
type Represents the type of the object [LearningObject, Collection]
subjects The array of subjects

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: grocTgShpFGnwM6SdzKMyg
Client: MZFsooiXhWLFDZS45UwyvA
Uid: raina.considine@brakus.biz
Host: example.org
Cookie: 

Route

DELETE v1/learning_objects/970/subjects

Body

{"subjects":[1]}

cURL

curl "https://api.portalmec.c3sl.ufpr.brv1/learning_objects/970/subjects" -d '{"subjects":[1]}' -X DELETE \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: grocTgShpFGnwM6SdzKMyg" \
	-H "Client: MZFsooiXhWLFDZS45UwyvA" \
	-H "Uid: raina.considine@brakus.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=Y2ZMaXd1bXVPaGFpOWt4UU9ZYTVVbDFuemFNdXMxYVQzeFNLOTV3bUZwUU1nOUJOaEVHTnpGUzRFM2IzL01nWUJhaXM3TS9HYmpWOEpKWlFjM1pJbGVNMzJtZVZ1V3ZyOURteWQ1N1JZcEkycXRycXhUdWg2Z0RXTFdjejFhejVGU0Y4L01ocnovUVpoVEMyeVZoRSt4d2RDdFVKMXAvbDNibTVhakpYSGJVL1NsaStRRGFOelhkS0twaGVidXpHLS0vNnY1Uk83a2ZJYVJBaGR0NGFTQTl3PT0%3D--d6fafc5d9d0bba629947c15de58b479a3ffae831; path=/; HttpOnly
Vary: Origin
ETag: W/"09d1fa276500eb9f35f042361902f94e"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: ea91d241-0a89-424c-b8e7-9d8157cbcbca
X-Runtime: 0.112921
Content-Length: 262

Status

200 OK

Body

[
  {
    "id": 56,
    "name": "Dra. Lorena Reis",
    "created_at": "2019-03-08T13:48:48.496Z",
    "updated_at": "2019-03-08T13:48:48.496Z",
    "theme": false
  },
  {
    "id": 58,
    "name": "Melissa Rodrigues",
    "created_at": "2019-03-08T13:48:49.229Z",
    "updated_at": "2019-03-08T13:48:49.229Z",
    "theme": false
  }
]