Reviews API

Review is a note for educational content or collections, made by users.

Get a list of reviews

GET /v1/:type/:id/reviews

Parameters

Name Description
type type of object ['learning_objects', 'collections']

Request

Headers

Accept: application/json
Content-Type: application/json
Host: example.org
Cookie: 

Route

GET /v1/learning_objects/837/reviews

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/837/reviews" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
Vary: Origin
ETag: W/"8528f55dfccd5c6077d059a51e1cb07e"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 848577d6-3d6f-461f-a910-13d45490b9b3
X-Runtime: 0.083025
Content-Length: 3851

Status

200 OK

Body

[
  {
    "id": 1672,
    "name": "beatae",
    "description": "Autem est quae debitis fuga distinctio. Et iure quia aliquid nostrum. Et commodi voluptas.",
    "pros": "Incidunt cumque commodi quidem delectus.",
    "cons": "Nam vel ut molestiae est aperiam ex.",
    "rating_average": 0.0,
    "rates_count": 0,
    "created_at": "2019-03-08T13:47:51.807Z",
    "updated_at": "2019-03-08T13:47:51.807Z",
    "reviewable": {
      "id": 837,
      "id_dspace": 836,
      "name": "LearningObject 836",
      "author": "Roberta Rezende Neto",
      "description": "Porro eum est omnis enim ut et. Rerum sed sint qui eos dolore aut vel. Earum illum iusto voluptatem accusamus error facere asperiores.",
      "published_at": null,
      "score": 0.899803995210908,
      "metadata": [

      ],
      "publisher_type": "User",
      "publisher_id": 7564,
      "language_id": 5,
      "object_type_id": 14,
      "created_at": "2019-03-08T13:47:51.568Z",
      "updated_at": "2019-03-08T13:47:51.568Z",
      "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": 7571,
      "email": null,
      "provider": "email",
      "cpf": null,
      "name": "Sr. Caio Costa",
      "description": "Deleniti tempora nam eos dolores.",
      "submitter_request": "default",
      "education": "Rerum vel est cumque eligendi vel odio alias nemo.",
      "score": 0.0,
      "cover": "",
      "role_ids": [
        1
      ],
      "institution_ids": [

      ],
      "avatar": "",
      "dspace_url": null,
      "dspace_handle": null,
      "dspace_sets": null,
      "likes_count": 0,
      "followed": null,
      "complained": false,
      "follows_count": 0,
      "learning_objects_count": 0,
      "collections_count": 0,
      "created_at": "2019-03-08T13:47:51.788Z",
      "updated_at": "2019-03-08T13:47:51.788Z",
      "terms_accepted_at": null
    }
  },
  {
    "id": 1671,
    "name": "tempore",
    "description": "Aut reiciendis fugiat distinctio voluptatibus delectus odit. Vel labore magni ea ipsam laudantium. Suscipit veritatis tenetur rerum nesciunt. Qui molestiae minus neque dolorum quo velit.",
    "pros": "Sapiente minus voluptatibus nostrum omnis aperiam omnis in.",
    "cons": "Et repellat beatae molestias et enim illo qui a.",
    "rating_average": 0.0,
    "rates_count": 0,
    "created_at": "2019-03-08T13:47:51.762Z",
    "updated_at": "2019-03-08T13:47:51.762Z",
    "reviewable": {
      "id": 837,
      "id_dspace": 836,
      "name": "LearningObject 836",
      "author": "Roberta Rezende Neto",
      "description": "Porro eum est omnis enim ut et. Rerum sed sint qui eos dolore aut vel. Earum illum iusto voluptatem accusamus error facere asperiores.",
      "published_at": null,
      "score": 0.899803995210908,
      "metadata": [

      ],
      "publisher_type": "User",
      "publisher_id": 7564,
      "language_id": 5,
      "object_type_id": 14,
      "created_at": "2019-03-08T13:47:51.568Z",
      "updated_at": "2019-03-08T13:47:51.568Z",
      "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": 7570,
      "email": null,
      "provider": "email",
      "cpf": null,
      "name": "NĂºbia Rocha",
      "description": "Nesciunt dolor et ab error saepe non repellendus.",
      "submitter_request": "default",
      "education": "Ut natus voluptatem repellendus sequi atque accusantium.",
      "score": 0.0,
      "cover": "",
      "role_ids": [
        1
      ],
      "institution_ids": [

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