Learning Objects API

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

Submit a learning object to curator

POST /v1/learning_objects/:id/submit

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: xvi0v5Vea_mX7R4Dsuh2tw
Client: Wa0yW0Gen6DmeyHp6Eib3Q
Uid: skyla_senger@damore.name
Host: example.org
Cookie: 

Route

POST /v1/learning_objects/836/submit

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/836/submit" -d '' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: xvi0v5Vea_mX7R4Dsuh2tw" \
	-H "Client: Wa0yW0Gen6DmeyHp6Eib3Q" \
	-H "Uid: skyla_senger@damore.name"

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=cVB1bFpHYXFnZS9VNjRhb3dlaTBMVlBOVFJuZXpGS25QU09Pc0NCSXAzOGhXZXlVMURoREN0eXl5ckp6TENNZFUrYmNZTjFpb1hROHA0V3cwZWp1Q0JnNGx5R0NXM0MwS1BYSDl2Y3JhZGZTYk9VcmFydCtMZHcwRmF1elF6eDhMTXRIcXBxRUVVYURueXJha1ZRcFdMV0dVNld2VGlrR0NCU09YcGMyWC9wZVNBMW10TStOMXR6K0VwNkRMUjJNLS10WjJrK3BvRXFsbTdHTG1xMjlHK3hnPT0%3D--682d59bca23f0af55114c2372bdeef6156bf10cd; path=/; HttpOnly
Vary: Origin
ETag: W/"f016deb9a224c4663d9f5f7a33b08240"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 1ff978d8-1dd4-4bac-a7cf-6ca9467f10a1
X-Runtime: 0.158996
Content-Length: 2447

Status

200 OK

Body

{
  "id": 836,
  "name": "LearningObject 835",
  "description": "Incidunt et architecto excepturi et dolor deleniti. Ad veritatis consequuntur aliquid suscipit quia. At a harum rerum. Nisi maxime ratione. Labore error laboriosam eveniet.",
  "author": "Bryan Macedo",
  "curator": null,
  "thumbnail": null,
  "object_type": "Texto",
  "language": {
    "id": 10,
    "name": "Outro",
    "created_at": "2019-03-08T13:42:17.297Z",
    "updated_at": "2019-03-08T13:42:17.297Z",
    "code": "Outro"
  },
  "default_attachment_location": null,
  "default_attachment_id": null,
  "default_mime_type": null,
  "score": 0.810312639345533,
  "state": "submitted",
  "review_average": 0.0,
  "link": null,
  "software": null,
  "license": null,
  "liked": false,
  "likes_count": 0,
  "downloads_count": 0,
  "views_count": 0,
  "reviewed": false,
  "complained": false,
  "shares_count": 0,
  "created_at": "2019-03-08T13:47:49.317Z",
  "published_at": null,
  "terms_of_service": null,
  "updated_at": "2019-03-08T13:47:49.765Z",
  "magnetlink": null,
  "publisher": {
    "id": 7550,
    "email": "skyla_senger@damore.name",
    "provider": "email",
    "cpf": null,
    "name": "Roberto Lopes",
    "description": "Ut est odio quia sed dolor.",
    "submitter_request": "default",
    "education": "Officiis sit voluptate et et.",
    "score": 0.0,
    "cover": "",
    "role_ids": [
      1,
      8
    ],
    "institution_ids": [

    ],
    "avatar": "",
    "dspace_url": null,
    "dspace_handle": null,
    "dspace_sets": [

    ],
    "likes_count": 0,
    "followed": false,
    "complained": false,
    "follows_count": 0,
    "learning_objects_count": 0,
    "collections_count": 0,
    "created_at": "2019-03-08T13:47:49.190Z",
    "updated_at": "2019-03-08T13:47:49.303Z",
    "terms_accepted_at": null
  },
  "tags": [
    {
      "id": 4797,
      "name": "Tag 4796",
      "created_at": "2019-03-08T13:47:49.330Z",
      "updated_at": "2019-03-08T13:47:49.330Z"
    },
    {
      "id": 4798,
      "name": "Tag 4797",
      "created_at": "2019-03-08T13:47:49.365Z",
      "updated_at": "2019-03-08T13:47:49.365Z"
    },
    {
      "id": 4799,
      "name": "Tag 4798",
      "created_at": "2019-03-08T13:47:49.401Z",
      "updated_at": "2019-03-08T13:47:49.401Z"
    },
    {
      "id": 4800,
      "name": "Tag 4799",
      "created_at": "2019-03-08T13:47:49.438Z",
      "updated_at": "2019-03-08T13:47:49.438Z"
    },
    {
      "id": 4801,
      "name": "Tag 4800",
      "created_at": "2019-03-08T13:47:49.477Z",
      "updated_at": "2019-03-08T13:47:49.477Z"
    }
  ],
  "subjects": [
    {
      "id": 5,
      "name": "Biologia",
      "created_at": "2019-03-08T13:42:18.066Z",
      "updated_at": "2019-03-08T13:42:18.066Z",
      "theme": false
    },
    {
      "id": 1,
      "name": "LĂ­ngua Espanhola",
      "created_at": "2019-03-08T13:42:18.041Z",
      "updated_at": "2019-03-08T13:42:18.041Z",
      "theme": false
    }
  ],
  "educational_stages": [
    {
      "id": 6,
      "name": "Outros",
      "created_at": "2019-03-08T13:42:18.200Z",
      "updated_at": "2019-03-08T13:42:18.200Z"
    }
  ],
  "attachments": [

  ]
}