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: ZznQVgoHrHa_QZKSNPyrFg
Client: 5Vjvrs3qSnJ0jnRIiOBtew
Uid: bernie_lehner@erdman.info
Host: example.org
Cookie: 

Route

GET /v1/users/9808/following/Collection

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/users/9808/following/Collection" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: ZznQVgoHrHa_QZKSNPyrFg" \
	-H "Client: 5Vjvrs3qSnJ0jnRIiOBtew" \
	-H "Uid: bernie_lehner@erdman.info"

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=Z3NCN1h2eTZ6bnhtVlFWT1FJL1c3V0lKVDdEMENyTlpRYkNXT21wS3JZcDlqMzBEY0laZktKUXptT0RCY2Y3NFFVTHNLWU43WjJzZ29GNWZ4eGZTTHMxYWQ1Y3pxN3VOSWRzdUl0TC9zQTczWGxpNFRVUi9JYk15Rkxjc1ZYQ0hsbTdCdHhmK25UcnpVZFd6aU1PaW1KVjZsbDBsVW9MOXFFK1JOVTh1OUJXVTFLNktMNTl0b0FIYStnc2tFMjhnLS1jUjduVFJpb3Q2Y3RpWVozSk81RkZ3PT0%3D--b5ca269f7ca95c491e5a42b78770453f7e82df0e; path=/; HttpOnly
Vary: Origin
ETag: W/"4515fc6d98bca84ca074190b754a751e"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 0c415ff3-5820-4009-a45c-0f7b2de42a29
X-Runtime: 0.165870
Content-Length: 1738

Status

200 OK

Body

[
  {
    "id": 5,
    "followable": {
      "id": 127,
      "name": "South Rezende Institute",
      "curator": null,
      "created_at": "2019-10-31T13:38:58.147Z",
      "updated_at": "2019-10-31T13:38:58.147Z",
      "description": "Dolorum qui in dignissimos sit velit hic.",
      "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": 9809,
        "email": null,
        "provider": "email",
        "cpf": null,
        "name": "Pedro Veloso",
        "description": "Harum illum sapiente rerum distinctio ullam.",
        "submitter_request": "default",
        "education": "Nam ut tempora sunt aut cupiditate.",
        "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": "2019-10-31T13:38:58.129Z",
        "updated_at": "2019-10-31T13:38:58.129Z",
        "terms_accepted_at": null,
        "state": "active"
      }
    },
    "follower": {
      "id": 9808,
      "email": "bernie_lehner@erdman.info",
      "provider": "email",
      "cpf": null,
      "name": "C├ęsar Duarte",
      "description": "Sapiente eveniet aut fuga mollitia velit architecto ducimus et.",
      "submitter_request": "default",
      "education": "Quos voluptas esse voluptatum blanditiis beatae nostrum.",
      "score": 0.0,
      "cover": "",
      "role_ids": [
        1,
        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": "2019-10-31T13:38:58.005Z",
      "updated_at": "2019-10-31T13:38:58.104Z",
      "terms_accepted_at": null,
      "state": "active",
      "times_blocked": 0,
      "suspended_at": null,
      "reactivated_at": null,
      "ask_teacher_question": true
    }
  }
]