Complaints API

With complaint an user may report a learning object or collection with inappropriate content.

Get a list of complaints

GET /v1/complaints

Parameters

Name Description
limit Limit of complaints
offset Offset of complaints

Request

Headers

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

Route

GET /v1/complaints?limit=12&offset=0

Query Parameters

limit: 12
offset: 0

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/complaints?limit=12&offset=0" -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
X-Total-Count: 12
Content-Type: application/json; charset=utf-8
Vary: Origin
ETag: W/"9073c6a02c5c35382341d7bc0dea037b"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 80c686dd-80cb-419d-80f0-f5867315bc34
X-Runtime: 0.013679
Content-Length: 4456

Status

200 OK

Body

[
  {
    "id": 1,
    "description": "Illum quaerat accusantium id iste quia. Ad autem voluptatibus laborum excepturi nihil similique quae. Omnis deleniti qui soluta aperiam. Tempore quod nihil ex perferendis iste et.",
    "user_id": 5491,
    "complainable_type": "LearningObject",
    "complainable_id": 586,
    "complaint_reason_id": 7,
    "created_at": "2019-03-08T13:46:12.810Z",
    "updated_at": "2019-03-08T13:46:12.810Z",
    "deleted_at": null
  },
  {
    "id": 2,
    "description": "Ut perferendis et et molestiae ducimus. Ut qui ut sit qui. Sed quia veniam vel. Veritatis numquam ut temporibus laudantium illo accusantium.",
    "user_id": 5508,
    "complainable_type": "LearningObject",
    "complainable_id": 588,
    "complaint_reason_id": 9,
    "created_at": "2019-03-08T13:46:13.542Z",
    "updated_at": "2019-03-08T13:46:13.542Z",
    "deleted_at": null
  },
  {
    "id": 3,
    "description": "Aperiam aliquid labore vitae aut atque. Aut nihil ipsum molestias sint dolorem ea facilis. Voluptas necessitatibus velit eaque veritatis earum.",
    "user_id": 5525,
    "complainable_type": "LearningObject",
    "complainable_id": 590,
    "complaint_reason_id": 11,
    "created_at": "2019-03-08T13:46:14.215Z",
    "updated_at": "2019-03-08T13:46:14.215Z",
    "deleted_at": null
  },
  {
    "id": 4,
    "description": "Aspernatur veniam qui non. Exercitationem esse at fugit qui et voluptatem fugiat. Suscipit ab provident numquam quaerat doloremque. Et ratione dolores.",
    "user_id": 5542,
    "complainable_type": "LearningObject",
    "complainable_id": 592,
    "complaint_reason_id": 13,
    "created_at": "2019-03-08T13:46:14.979Z",
    "updated_at": "2019-03-08T13:46:14.979Z",
    "deleted_at": null
  },
  {
    "id": 5,
    "description": "Quas et cupiditate beatae aliquam dolores aperiam. Saepe cupiditate rerum. Minus beatae sunt laborum aliquid. Fugiat aut qui aut illum ipsum.",
    "user_id": 5559,
    "complainable_type": "LearningObject",
    "complainable_id": 594,
    "complaint_reason_id": 15,
    "created_at": "2019-03-08T13:46:15.757Z",
    "updated_at": "2019-03-08T13:46:15.757Z",
    "deleted_at": null
  },
  {
    "id": 6,
    "description": "Quasi tenetur in architecto. In porro cupiditate officiis velit vitae magni nihil. Consequatur reprehenderit quia qui.",
    "user_id": 5576,
    "complainable_type": "LearningObject",
    "complainable_id": 596,
    "complaint_reason_id": 17,
    "created_at": "2019-03-08T13:46:16.464Z",
    "updated_at": "2019-03-08T13:46:16.464Z",
    "deleted_at": null
  },
  {
    "id": 7,
    "description": "Omnis doloribus quo et adipisci rerum a. Qui sed facere blanditiis accusamus. Ut nulla facilis nam perspiciatis. Aut nostrum rerum ut totam ab.",
    "user_id": 5593,
    "complainable_type": "LearningObject",
    "complainable_id": 598,
    "complaint_reason_id": 19,
    "created_at": "2019-03-08T13:46:17.151Z",
    "updated_at": "2019-03-08T13:46:17.151Z",
    "deleted_at": null
  },
  {
    "id": 8,
    "description": "Tempore eum id aliquid voluptatem. Deserunt qui et. Dolorem et odio recusandae facere unde. Porro autem est nihil sit. At quia ex hic molestiae quae iusto est.",
    "user_id": 5610,
    "complainable_type": "LearningObject",
    "complainable_id": 600,
    "complaint_reason_id": 21,
    "created_at": "2019-03-08T13:46:17.835Z",
    "updated_at": "2019-03-08T13:46:17.835Z",
    "deleted_at": null
  },
  {
    "id": 9,
    "description": "Nostrum officia ab asperiores quasi est. Ratione hic illo error. Et dicta facilis voluptas. Sequi optio similique debitis. Non nihil veritatis ex.",
    "user_id": 5627,
    "complainable_type": "LearningObject",
    "complainable_id": 602,
    "complaint_reason_id": 23,
    "created_at": "2019-03-08T13:46:18.549Z",
    "updated_at": "2019-03-08T13:46:18.549Z",
    "deleted_at": null
  },
  {
    "id": 10,
    "description": "Est voluptatem soluta quibusdam architecto totam dolor. Unde aliquam tempora similique. Esse ut iste quas maiores et. Ratione est enim et.",
    "user_id": 5644,
    "complainable_type": "LearningObject",
    "complainable_id": 604,
    "complaint_reason_id": 25,
    "created_at": "2019-03-08T13:46:19.221Z",
    "updated_at": "2019-03-08T13:46:19.221Z",
    "deleted_at": null
  },
  {
    "id": 11,
    "description": "Consequatur sed ut molestias aut dolorem. Beatae dolor facere nemo labore molestiae quia. Earum ipsa sed dolorem eius est blanditiis. Officiis aut cumque. In et est aut adipisci libero accusamus facere.",
    "user_id": 5661,
    "complainable_type": "LearningObject",
    "complainable_id": 606,
    "complaint_reason_id": 27,
    "created_at": "2019-03-08T13:46:19.933Z",
    "updated_at": "2019-03-08T13:46:19.933Z",
    "deleted_at": null
  },
  {
    "id": 12,
    "description": "Ipsa laudantium quo necessitatibus. Deserunt dolores laborum incidunt eum debitis. Culpa non suscipit molestias nihil.",
    "user_id": 5678,
    "complainable_type": "LearningObject",
    "complainable_id": 608,
    "complaint_reason_id": 29,
    "created_at": "2019-03-08T13:46:20.654Z",
    "updated_at": "2019-03-08T13:46:20.654Z",
    "deleted_at": null
  }
]