Users API

User represents the teacher and students in the system.

Showing an user’s received reviews

GET /v1/users/:id/reviews/received

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: XvZzj54cvHLHNibV5I9Crw
Client: IFpyd0x4jwIRbLv8QPav7g
Uid: jeie@pouros.io
Host: example.org
Cookie: 

Route

GET /v1/users/8980/reviews/received

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/users/8980/reviews/received" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: XvZzj54cvHLHNibV5I9Crw" \
	-H "Client: IFpyd0x4jwIRbLv8QPav7g" \
	-H "Uid: jeie@pouros.io"

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=bEdGN3ZybGVENC8wa0tnb0lqN3ZERm11WXhBZDltTWRoRk9xY0ZkY3FSbmhqaWFCeFhyVWw3OUhGZjAyRGNRYk1RTmF3amNKeWZ5dDFNd3BRMnl0Ri9NOG1sUHRHKzVEZzRsb0ZoMVp4NlNraCt0Q2tpMkFOY2VIZFRMRDB3Vkd4Q3VMNlloRGppZFQ3QytDNkhGbEoyekVwUmtGRUVOMkVUcGtNV1MvTXBMZFkvYjhCeFVGNEx5Y1FWK2lObVBILS1uYVVUZldMMGFLUkNNZU5XdWdEZ2J3PT0%3D--e494fad3242a9fd21433f3af572ae171bbc8452c; path=/; HttpOnly
Vary: Origin
ETag: W/"cfe8b9ecf1e3314c9792b1320bb74eb8"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 970b6f01-c9f6-42e5-8944-3fa21022de64
X-Runtime: 0.230259
Content-Length: 5874

Status

200 OK

Body

[
  {
    "id": 1998,
    "name": "delectus",
    "description": "Animi voluptates et assumenda expedita voluptas est eligendi. Quo amet quas vel quasi. Eum eos dolores voluptatum iste.",
    "pros": "Sapiente corrupti consequatur porro dicta officia aliquam.",
    "cons": "Qui unde dicta dolor occaecati ex alias.",
    "rating_average": 0.0,
    "rates_count": 0,
    "created_at": "2019-03-08T13:49:06.699Z",
    "updated_at": "2019-03-08T13:49:06.699Z",
    "reviewable": {
      "id": 998,
      "id_dspace": 997,
      "name": "LearningObject 997",
      "author": "Breno Ambrósio",
      "description": "Nihil exercitationem commodi aut. Voluptatem nihil nobis. Dolorem voluptatem explicabo. Eaque praesentium velit distinctio laboriosam quibusdam.",
      "published_at": null,
      "score": 0.503799295256019,
      "metadata": [

      ],
      "publisher_type": "User",
      "publisher_id": 8980,
      "language_id": 8,
      "object_type_id": 11,
      "created_at": "2019-03-08T13:49:06.344Z",
      "updated_at": "2019-03-08T13:49:06.344Z",
      "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
    },
    "reviewable_type": "LearningObject",
    "rated": false,
    "approves": null,
    "review_ratings": [

    ],
    "user": {
      "id": 8988,
      "email": null,
      "provider": "email",
      "cpf": null,
      "name": "Letícia Farias Jr.",
      "description": "Inventore est vel odit saepe.",
      "submitter_request": "default",
      "education": "Soluta et perferendis tenetur repudiandae velit.",
      "score": 0.0,
      "cover": "",
      "role_ids": [
        1
      ],
      "institution_ids": [

      ],
      "avatar": "",
      "dspace_url": null,
      "dspace_handle": null,
      "dspace_sets": null,
      "likes_count": 0,
      "followed": false,
      "complained": false,
      "follows_count": 0,
      "learning_objects_count": 0,
      "collections_count": 0,
      "created_at": "2019-03-08T13:49:06.676Z",
      "updated_at": "2019-03-08T13:49:06.676Z",
      "terms_accepted_at": null
    }
  },
  {
    "id": 1997,
    "name": "aut",
    "description": "Itaque earum expedita aut quis. Eum aperiam est corporis aut. Perspiciatis sint commodi voluptas adipisci asperiores aliquam. Fugit optio assumenda officia harum aut ipsum debitis.",
    "pros": "Voluptatem est hic consequatur aliquid possimus.",
    "cons": "Repudiandae temporibus ullam consequatur.",
    "rating_average": 0.0,
    "rates_count": 0,
    "created_at": "2019-03-08T13:49:06.617Z",
    "updated_at": "2019-03-08T13:49:06.617Z",
    "reviewable": {
      "id": 998,
      "id_dspace": 997,
      "name": "LearningObject 997",
      "author": "Breno Ambrósio",
      "description": "Nihil exercitationem commodi aut. Voluptatem nihil nobis. Dolorem voluptatem explicabo. Eaque praesentium velit distinctio laboriosam quibusdam.",
      "published_at": null,
      "score": 0.503799295256019,
      "metadata": [

      ],
      "publisher_type": "User",
      "publisher_id": 8980,
      "language_id": 8,
      "object_type_id": 11,
      "created_at": "2019-03-08T13:49:06.344Z",
      "updated_at": "2019-03-08T13:49:06.344Z",
      "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
    },
    "reviewable_type": "LearningObject",
    "rated": false,
    "approves": null,
    "review_ratings": [

    ],
    "user": {
      "id": 8987,
      "email": null,
      "provider": "email",
      "cpf": null,
      "name": "Marcelo Monteiro Jr.",
      "description": "Ipsum ut numquam non nulla ut et sint.",
      "submitter_request": "default",
      "education": "Animi suscipit voluptatem rerum eius rerum cupiditate a.",
      "score": 0.0,
      "cover": "",
      "role_ids": [
        1
      ],
      "institution_ids": [

      ],
      "avatar": "",
      "dspace_url": null,
      "dspace_handle": null,
      "dspace_sets": null,
      "likes_count": 0,
      "followed": false,
      "complained": false,
      "follows_count": 0,
      "learning_objects_count": 0,
      "collections_count": 0,
      "created_at": "2019-03-08T13:49:06.594Z",
      "updated_at": "2019-03-08T13:49:06.594Z",
      "terms_accepted_at": null
    }
  },
  {
    "id": 1996,
    "name": "consequuntur",
    "description": "Nostrum porro assumenda dignissimos eligendi est fugit. Quos dolorum dolore fuga vel ipsum eum quisquam. Aut exercitationem veniam rerum ipsa asperiores voluptatibus ex.",
    "pros": "Cupiditate nisi quidem dolorem aliquam magnam et aperiam.",
    "cons": "Aperiam nulla qui neque natus et voluptatem porro.",
    "rating_average": 0.0,
    "rates_count": 0,
    "created_at": "2019-03-08T13:49:06.569Z",
    "updated_at": "2019-03-08T13:49:06.569Z",
    "reviewable": {
      "id": 998,
      "id_dspace": 997,
      "name": "LearningObject 997",
      "author": "Breno Ambrósio",
      "description": "Nihil exercitationem commodi aut. Voluptatem nihil nobis. Dolorem voluptatem explicabo. Eaque praesentium velit distinctio laboriosam quibusdam.",
      "published_at": null,
      "score": 0.503799295256019,
      "metadata": [

      ],
      "publisher_type": "User",
      "publisher_id": 8980,
      "language_id": 8,
      "object_type_id": 11,
      "created_at": "2019-03-08T13:49:06.344Z",
      "updated_at": "2019-03-08T13:49:06.344Z",
      "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
    },
    "reviewable_type": "LearningObject",
    "rated": false,
    "approves": null,
    "review_ratings": [

    ],
    "user": {
      "id": 8986,
      "email": null,
      "provider": "email",
      "cpf": null,
      "name": "Valentina Rezende",
      "description": "Facere occaecati temporibus eum dolorum repellendus.",
      "submitter_request": "default",
      "education": "Eum sapiente esse consequatur illum fugit id.",
      "score": 0.0,
      "cover": "",
      "role_ids": [
        1
      ],
      "institution_ids": [

      ],
      "avatar": "",
      "dspace_url": null,
      "dspace_handle": null,
      "dspace_sets": null,
      "likes_count": 0,
      "followed": false,
      "complained": false,
      "follows_count": 0,
      "learning_objects_count": 0,
      "collections_count": 0,
      "created_at": "2019-03-08T13:49:06.551Z",
      "updated_at": "2019-03-08T13:49:06.551Z",
      "terms_accepted_at": null
    }
  }
]