Users API

User represents the teacher and students in the system.

Showing what the user is following

GET /v1/users/:id/following/:type

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: SiOMlnENWB-4Ej_Uf2ZTww
Client: zhVhhLNHkE4QW2flxMNhsw
Uid: jocelyn@swift.io
Host: example.org
Cookie: 

Route

GET /v1/users/9822/following/Collection

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/users/9822/following/Collection" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: SiOMlnENWB-4Ej_Uf2ZTww" \
	-H "Client: zhVhhLNHkE4QW2flxMNhsw" \
	-H "Uid: jocelyn@swift.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=bXFrTHYxUTVZd1lNRTB5d0hkUXZTNjcyckFtaXlzRWo2bit5UzlTRnVPS3FFSmRCcm9uaTJENnBSOEtweERQY05WRkhpK3NxY0t4TkMyYU9NK0RqVHhGYU1CbmE3M3A5UE5YZUVrek5zQVI2RDNVR08zelZmT3pqSUUzeHdSS3IyOFhuR2NRUDFPYmNmS0J2cDBGSWlSdE5YcmhvTTVHVmk5UHNMdXY2cjYvQW0zOW9YdUt2Z3I0TDVpN1JZeVVsLS14WEFma2lvUm9XQXhGc0crckVPMS93PT0%3D--13c05d0d5f431c04369b292ab560ddeea20778c0; path=/; HttpOnly
Vary: Origin
ETag: W/"25e42066dd2606212823fc58a0048862"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 098d07d0-3392-488c-b6b8-c9b77767e75e
X-Runtime: 0.148801
Content-Length: 1689

Status

200 OK

Body

[
  {
    "id": 5,
    "followable": {
      "id": 127,
      "name": "The ParaĆ­ba Academy",
      "curator": null,
      "created_at": "2020-10-21T20:44:04.191Z",
      "updated_at": "2020-10-21T20:44:04.191Z",
      "description": "Voluptas libero optio neque ipsa.",
      "privacy": "public",
      "score": 0.0,
      "likes_count": 0,
      "liked": false,
      "followed": true,
      "reviewed": false,
      "complained": false,
      "review_average": 0.0,
      "thumbnail": "",
      "items_thumbnails": [

      ],
      "owner": {
        "id": 9823,
        "email": null,
        "provider": "email",
        "cpf": null,
        "name": "Clara Neves",
        "description": "Qui tempore nihil optio et ipsum.",
        "submitter_request": "default",
        "education": "Modi ea maiores deleniti.",
        "score": 0.0,
        "cover": "",
        "role_ids": [
          8
        ],
        "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": 1,
        "created_at": "2020-10-21T20:44:04.175Z",
        "updated_at": "2020-10-21T20:44:04.175Z",
        "terms_accepted_at": null,
        "state": "active"
      }
    },
    "follower": {
      "id": 9822,
      "email": "jocelyn@swift.io",
      "provider": "email",
      "cpf": null,
      "name": "Breno Alves",
      "description": "Et quasi fugit ut praesentium ea voluptatum consequatur consequatur.",
      "submitter_request": "default",
      "education": "Ratione libero natus nobis veniam incidunt et.",
      "score": 0.0,
      "cover": "",
      "role_ids": [
        8,
        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": "2020-10-21T20:44:04.076Z",
      "updated_at": "2020-10-21T20:44:04.159Z",
      "terms_accepted_at": null,
      "state": "active",
      "times_blocked": 0,
      "suspended_at": null,
      "reactivated_at": null,
      "ask_teacher_question": true
    }
  }
]