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: MhDg1it8UM7XuO8418Gk3A
Client: U-KNxYO6V5pzna8AzUQYvQ
Uid: mertie_homenick@olson.co
Host: example.org
Cookie: 

Route

GET /v1/users/9886/reviews/own

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/users/9886/reviews/own" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: MhDg1it8UM7XuO8418Gk3A" \
	-H "Client: U-KNxYO6V5pzna8AzUQYvQ" \
	-H "Uid: mertie_homenick@olson.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=bnNLbFpXQWJzTHB3VktsbmtuK1FZVVRIbTR4ckRWbFJqa1lHd2VmMXdXSWErbzRZN0hvUTgyQ1BFQUtiWSt1ZVNLdUVXaDQ5VUpqdmt5OVRwWG9QK1laVzlCVkYzRlluK2lBTFowMTJOcnNad2d1YUhDcmU0UXI4ZUQyc3IrZ0ZIeVk4LzN6akFRaUpiY1pEeWJKUW5VSStJOEM1VDR3dklIRjFUTG8yYmZDaEZtYkNDbnJkWWFHdXp5Y2dQZmFyLS1zdDc3a29tcTd1TnM3d3lxUTBmRTlBPT0%3D--377bf840ec83c4e537d3d631128634d5ecc5c305; path=/; HttpOnly
Vary: Origin
ETag: W/"921631c82f45eeac1a99034faae531fe"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 5df9240c-043a-4bd8-af8a-92245cff762b
X-Runtime: 0.145246
Content-Length: 2042

Status

200 OK

Body

[
  {
    "id": 2185,
    "name": "architecto",
    "description": "Sed ullam fugiat quisquam sint provident id. Qui asperiores cupiditate pariatur natus. Ut repellat consequatur soluta sunt ipsa.",
    "pros": "Assumenda maxime ex quo ipsa id et cum et.",
    "cons": "Quia a error libero in quos ipsa aut id.",
    "rating_average": 0.0,
    "rates_count": 0,
    "created_at": "2019-10-31T13:39:03.910Z",
    "updated_at": "2019-10-31T13:39:03.910Z",
    "reviewable": {
      "id": 1091,
      "id_dspace": 1090,
      "name": "LearningObject 1090",
      "author": "Fabrícia Martins",
      "description": "Tempora voluptatem numquam. Similique ut velit veritatis repellat hic aut enim. Dolor perferendis inventore. Commodi dolorum dicta nesciunt blanditiis quas.",
      "published_at": null,
      "score": 0.0968233116194328,
      "metadata": [

      ],
      "publisher_type": "User",
      "publisher_id": 9887,
      "object_type_id": 6,
      "created_at": "2019-10-31T13:39:03.529Z",
      "updated_at": "2019-10-31T13:39:03.529Z",
      "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
    },
    "reviewable_type": "LearningObject",
    "rated": false,
    "approves": null,
    "review_ratings": [

    ],
    "user": {
      "id": 9886,
      "email": "mertie_homenick@olson.co",
      "provider": "email",
      "cpf": null,
      "name": "Cauã Melo",
      "description": "Voluptatem iste commodi non quo odit accusamus.",
      "submitter_request": "default",
      "education": "Illum voluptatem quis nisi.",
      "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-10-31T13:39:03.388Z",
      "updated_at": "2019-10-31T13:39:03.480Z",
      "terms_accepted_at": null,
      "state": "active",
      "times_blocked": 0,
      "suspended_at": null,
      "reactivated_at": null,
      "ask_teacher_question": true
    }
  }
]