Users API

User represents the teacher and students in the system.

Showing an user followers

GET /v1/users/:id/followers

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: b9bY0Rn9pfjDuftULjdcJw
Client: P_GHTUuAXoTOzgTg-377zg
Uid: camille@kling.io
Host: example.org
Cookie: 

Route

GET /v1/users/8966/followers

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/users/8966/followers" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: b9bY0Rn9pfjDuftULjdcJw" \
	-H "Client: P_GHTUuAXoTOzgTg-377zg" \
	-H "Uid: camille@kling.io"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Total-Count: 1
Content-Type: application/json; charset=utf-8
Set-Cookie: _session_id=SkhYN2N4NkhLY1lYcWhCc3lVam00cHg2YXdBa1dsRCtMUFR6cDNOYWl4VUQ0WEp4UGgyUlFBZjAyRFNWRmVhRTdRMEFmRFd6TEs2enkxMUlKeXVoSDI1UHdCNllMY3FNSE9Uelc5NXgvS2E5RXN6K2NCbWdaK1Y0ckhIUVdhTUtPTFJ2bXRKNnBaSysvZnFqZXh2eXR4SDRpakxuUjJsUUpIRDNrbExOdE5xdUpWdDYrcTh3dVkybFlibVRVaFRmLS0vWmtLZnlKZS9rRUt5M1ZFSGxWWWpnPT0%3D--0db861a131d8eacec7ae1f604abc497c1670c020; path=/; HttpOnly
Vary: Origin
ETag: W/"025a05e7f0cd614cbbc29ea0ca6e25bc"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: e87df7ce-2ccf-4627-bd65-e24ad05ac0b7
X-Runtime: 0.140635
Content-Length: 1223

Status

200 OK

Body

[
  {
    "id": 6,
    "followable": {
      "id": 8966,
      "email": "camille@kling.io",
      "provider": "email",
      "cpf": null,
      "name": "Sr. Vitor Martins",
      "description": "Qui nihil porro unde dolor.",
      "submitter_request": "default",
      "education": "Nesciunt nihil et totam sapiente consequuntur est minima voluptatem.",
      "score": 0.0,
      "cover": "",
      "role_ids": [
        1,
        1
      ],
      "institution_ids": [

      ],
      "avatar": "",
      "dspace_url": null,
      "dspace_handle": null,
      "dspace_sets": [

      ],
      "likes_count": 0,
      "followed": false,
      "complained": false,
      "follows_count": 1,
      "learning_objects_count": 0,
      "collections_count": 0,
      "created_at": "2019-03-08T13:49:05.636Z",
      "updated_at": "2019-03-08T13:49:05.731Z",
      "terms_accepted_at": null
    },
    "follower": {
      "id": 8967,
      "email": null,
      "provider": "email",
      "cpf": null,
      "name": "Paulo Lopes",
      "description": "Aut quia laborum dolor ad totam nobis.",
      "submitter_request": "default",
      "education": "Aliquam dolorem rerum est blanditiis distinctio illum.",
      "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:05.749Z",
      "updated_at": "2019-03-08T13:49:05.749Z",
      "terms_accepted_at": null
    }
  }
]