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: 3C4JGU7xW0sn5ochXxz9uw
Client: lgDRkFBpf6FKZ_I1qZreSQ
Uid: dereck@hodkiewicz.net
Host: example.org
Cookie: 

Route

GET /v1/users/9780/following/Collection

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/users/9780/following/Collection" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: 3C4JGU7xW0sn5ochXxz9uw" \
	-H "Client: lgDRkFBpf6FKZ_I1qZreSQ" \
	-H "Uid: dereck@hodkiewicz.net"

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=VnY5dXNycGJYZUp6dkd2aDhyQmtFSXM3OHNPbnluUG9kSVRHN0s1VlNaa1AvZWFqR1hINU1TelNZcXhlZ1FUNEhTL3pXeEdUQ1lJTWdmdmlvcnpvQ2hMeVU3MEpldkVaNnFUYXJrWEk1ci9IcWNRWmVzSEZvbzVyeVdiWGttcGloTG1wc1UwdlV3T0FtSG5RUFF0YVhVMGRwTU1xYkIzOEtndFlLcDVnWVBiVTR5Z3Y3c1lXakxvQjU1SWFUc0dNLS1qWkVyUmc3L0dhWTlhQ243MERhT1ZBPT0%3D--2202ff201e0d3a3baac54f8ab73f6d4637ba7362; path=/; HttpOnly
Vary: Origin
ETag: W/"25a47a9e9295ca503e2ece9f1737a4ff"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 096d7e17-0863-47c2-ad95-34f84aaa00a2
X-Runtime: 0.166652
Content-Length: 1741

Status

200 OK

Body

[
  {
    "id": 5,
    "followable": {
      "id": 127,
      "name": "Western Paiva Academy",
      "curator": null,
      "created_at": "2021-02-25T14:12:45.997Z",
      "updated_at": "2021-02-25T14:12:45.997Z",
      "description": "Quia ea ab est ipsa officia sit enim dolorem.",
      "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": 9781,
        "email": null,
        "provider": "email",
        "cpf": null,
        "name": "Melissa Fogaça Jr.",
        "description": "Id consequatur consequuntur libero veniam.",
        "submitter_request": "default",
        "education": "Et consequuntur error illo et ad qui repudiandae aut.",
        "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": "2021-02-25T14:12:45.980Z",
        "updated_at": "2021-02-25T14:12:45.980Z",
        "terms_accepted_at": null,
        "state": "active"
      }
    },
    "follower": {
      "id": 9780,
      "email": "dereck@hodkiewicz.net",
      "provider": "email",
      "cpf": null,
      "name": "Gabriel Melo",
      "description": "Laborum expedita distinctio nulla nam voluptas asperiores natus quae.",
      "submitter_request": "default",
      "education": "Itaque fuga molestias blanditiis.",
      "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": "2021-02-25T14:12:45.873Z",
      "updated_at": "2021-02-25T14:12:45.962Z",
      "terms_accepted_at": null,
      "state": "active",
      "times_blocked": 0,
      "suspended_at": null,
      "reactivated_at": null,
      "ask_teacher_question": true
    }
  }
]