Users API

User represents the teacher and students in the system.

Showing an user’s submissions

GET /v1/users/:id/submissions

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: X3sn3VuQR2u8NGQEqH-Dyg
Client: 1ilXDeqMgTMXu9YviY2aeQ
Uid: tabitha.simonis@marquardt.co
Host: example.org
Cookie: 

Route

GET /v1/users/9168/submissions

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/users/9168/submissions" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: X3sn3VuQR2u8NGQEqH-Dyg" \
	-H "Client: 1ilXDeqMgTMXu9YviY2aeQ" \
	-H "Uid: tabitha.simonis@marquardt.co"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Total-Count: 1
Content-Type: application/json; charset=utf-8
Set-Cookie: _session_id=Ti9jQktxa1RTVlNVN2V5WjJndXlrNlI3QjVwcEttUnBEUGl1Ym5xckVuTFoxVkprUlIwaFlMemVrZ1dPb1FlV1gwMjRaYTIzOENOd2ZyNTBXaUNHS054N3p2dGdJeGQzQ1d6OUd2MmxBamU4Yy9HZ2NGMkxYcXROQlFwY3NVdW5TUFhEbmZzZXZPblF3a3NKcGNvNEFveFBuWldibDBvS21qSlBJMGFUOXd1YXl2UURscFh6aVNkNS9jaHluMlhHLS1Pd3FiY3YwamRuaFJrMERDaU9WUGJRPT0%3D--bd782f739b5b92954f8af1f21ab337929ca82fff; path=/; HttpOnly
Vary: Origin
ETag: W/"1587c34a3ee204033c7db9dc00e67c1f"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 579929bc-13e1-4fce-8ff4-edf2326c2415
X-Runtime: 0.139359
Content-Length: 2470

Status

200 OK

Body

[
  {
    "id": 1009,
    "name": "LearningObject 1008",
    "description": "Nisi voluptatem dolorem. Nulla sunt quo cum commodi eligendi. Placeat et et quia neque officia. Dolores nihil assumenda doloribus.",
    "author": "Ladislau Mendes",
    "curator": null,
    "thumbnail": null,
    "object_type": "Livro digital",
    "language": {
      "id": 9,
      "name": "Japonês",
      "created_at": "2019-03-08T13:42:17.293Z",
      "updated_at": "2019-03-08T13:42:17.293Z",
      "code": "jp"
    },
    "default_attachment_location": null,
    "default_attachment_id": null,
    "default_mime_type": null,
    "score": 0.55873570796343,
    "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:49:14.760Z",
    "published_at": null,
    "terms_of_service": null,
    "updated_at": "2019-03-08T13:49:14.760Z",
    "magnetlink": null,
    "publisher": {
      "id": 9168,
      "email": "tabitha.simonis@marquardt.co",
      "provider": "email",
      "cpf": null,
      "name": "Gabriel Pinto",
      "description": "Unde animi dolores qui odit blanditiis deserunt beatae aliquam.",
      "submitter_request": "default",
      "education": "Saepe aspernatur et eum.",
      "score": 0.0,
      "cover": "",
      "role_ids": [
        1,
        1
      ],
      "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:49:14.649Z",
      "updated_at": "2019-03-08T13:49:14.747Z",
      "terms_accepted_at": null
    },
    "tags": [
      {
        "id": 5683,
        "name": "Tag 5680",
        "created_at": "2019-03-08T13:49:14.885Z",
        "updated_at": "2019-03-08T13:49:14.885Z"
      },
      {
        "id": 5682,
        "name": "Tag 5679",
        "created_at": "2019-03-08T13:49:14.856Z",
        "updated_at": "2019-03-08T13:49:14.856Z"
      },
      {
        "id": 5681,
        "name": "Tag 5678",
        "created_at": "2019-03-08T13:49:14.828Z",
        "updated_at": "2019-03-08T13:49:14.828Z"
      },
      {
        "id": 5680,
        "name": "Tag 5677",
        "created_at": "2019-03-08T13:49:14.799Z",
        "updated_at": "2019-03-08T13:49:14.799Z"
      },
      {
        "id": 5679,
        "name": "Tag 5676",
        "created_at": "2019-03-08T13:49:14.771Z",
        "updated_at": "2019-03-08T13:49:14.771Z"
      }
    ],
    "subjects": [
      {
        "id": 13,
        "name": "Língua Portuguesa",
        "created_at": "2019-03-08T13:42:18.102Z",
        "updated_at": "2019-03-08T13:42:18.102Z",
        "theme": false
      },
      {
        "id": 19,
        "name": "Direitos Humanos",
        "created_at": "2019-03-08T13:42:18.129Z",
        "updated_at": "2019-03-08T13:42:18.129Z",
        "theme": true
      }
    ],
    "educational_stages": [
      {
        "id": 4,
        "name": "Ensino Médio",
        "created_at": "2019-03-08T13:42:18.192Z",
        "updated_at": "2019-03-08T13:42:18.192Z"
      }
    ],
    "attachments": [

    ]
  }
]