Users API

User represents the teacher and students in the system.

Showing a user’s own reviews

GET /v1/users/:id/reviews/own

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: a-N8xErJyeL-yedndIpdVQ
Client: z5xdxtax7ZMslRcgm1awSQ
Uid: lydia_erdman@mertz.co
Host: example.org
Cookie: 

Route

GET /v1/users/9900/reviews/own

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/users/9900/reviews/own" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: a-N8xErJyeL-yedndIpdVQ" \
	-H "Client: z5xdxtax7ZMslRcgm1awSQ" \
	-H "Uid: lydia_erdman@mertz.co"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Total-Count: 22
Content-Type: application/json; charset=utf-8
Set-Cookie: _session_id=cFpEVFlzTDZTMkdDY0dkNWd3ZUpYU0lid2EyeG1QNVkrWEZWQ05kd1R4a0xBNFE4VE5xS2p1YkNGeGp6TnRkNnNpWTExOHljREtkMHFzNHZrNm1iM294TTV0NHhLL0pxSmtWY0ZxNVY5T2JNVnpUSmtCaloyaUxkT3N0MmpmaEZxQkttUDAyTjJGakorSEdGRS9mRkNZUVVCaUo1YVpPbGIydkoxL2wzcm4vU1BMcm1mMGZPdjVhOHNkOGY1OVIrLS1yVEdkMkRuditpRGx0YXpVUVQ1OHR3PT0%3D--9dd9970a366a5630f2230c24fd9590653c81e29e; path=/; HttpOnly
Vary: Origin
ETag: W/"a6e99a3de9d01f03b792614ae96d5fe5"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 4a329f14-4918-4026-b42c-435e7eaf7048
X-Runtime: 0.129840
Content-Length: 2090

Status

200 OK

Body

[
  {
    "id": 2189,
    "name": "ut",
    "description": "Sint libero iure quo. Sunt sed quis. Recusandae rerum dicta qui optio. Consectetur nulla at iste qui cum praesentium consequatur. Sit ab qui facilis.",
    "pros": "Dolor suscipit minus quos consequuntur est fugit velit.",
    "cons": "Fugit est blanditiis consequatur totam possimus.",
    "rating_average": 0.0,
    "rates_count": 0,
    "created_at": "2020-10-21T20:44:10.907Z",
    "updated_at": "2020-10-21T20:44:10.907Z",
    "reviewable": {
      "id": 1093,
      "id_dspace": "1091",
      "name": "LearningObject 1092",
      "author": "Júlia Chaves Neto",
      "description": "Totam nihil cupiditate sit iure. Qui ducimus quo rerum voluptatem qui. Quod aut et cum totam dolore. Nobis vitae dolorum doloribus.",
      "published_at": null,
      "score": 0.868537241063147,
      "metadata": [

      ],
      "publisher_type": "User",
      "publisher_id": 9901,
      "object_type_id": 9,
      "created_at": "2020-10-21T20:44:10.634Z",
      "updated_at": "2020-10-21T20:44:10.634Z",
      "views_count": 0,
      "downloads_count": 0,
      "likes_count": 0,
      "shares_count": 0,
      "thumbnail_file_name": null,
      "thumbnail_content_type": null,
      "thumbnail_file_size": null,
      "thumbnail_updated_at": null,
      "attachment_id": null,
      "deleted_at": null,
      "license_id": null,
      "state": "published",
      "link": null,
      "software": null,
      "review_average": 0.0,
      "curator": null,
      "magnetlink": null,
      "terms_of_service": null,
      "submission_id": null,
      "legacy_dspace_id": null
    },
    "reviewable_type": "LearningObject",
    "rated": false,
    "approves": null,
    "review_ratings": [

    ],
    "user": {
      "id": 9900,
      "email": "lydia_erdman@mertz.co",
      "provider": "email",
      "cpf": null,
      "name": "Emanuelly Franco",
      "description": "Quasi deleniti cupiditate suscipit voluptas.",
      "submitter_request": "default",
      "education": "Aut aut veritatis iste tempora nesciunt.",
      "score": 0.0,
      "cover": "",
      "role_ids": [
        8,
        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": "2020-10-21T20:44:10.500Z",
      "updated_at": "2020-10-21T20:44:10.594Z",
      "terms_accepted_at": null,
      "state": "active",
      "times_blocked": 0,
      "suspended_at": null,
      "reactivated_at": null,
      "ask_teacher_question": true
    }
  }
]