User represents the teacher and students in the system.
Accept: application/json Content-Type: application/json Host: example.org Cookie:
GET /v1/users/1
curl -g "https://api.portalmec.c3sl.ufpr.br/v1/users/1" -X GET \ -H "Accept: application/json" \ -H "Content-Type: application/json"
X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff Content-Type: application/json; charset=utf-8 Vary: Origin ETag: W/"d1a87195ba527a7b5744a60da1115a31" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: 18f73f51-55cb-4d5d-b824-e23d56f293fd X-Runtime: 0.020372 Content-Length: 734
200 OK
{ "id": 1, "email": null, "provider": "email", "cpf": null, "name": "admin", "description": null, "submitter_request": "default", "education": null, "score": 0.0, "cover": "", "role_ids": [ 3, 1 ], "institution_ids": [ ], "avatar": "", "dspace_url": null, "dspace_handle": null, "dspace_sets": null, "likes_count": 0, "followed": null, "complained": false, "follows_count": 0, "learning_objects_count": 0, "collections_count": 0, "created_at": "2019-03-08T13:42:17.060Z", "updated_at": "2019-03-08T13:42:17.060Z", "terms_accepted_at": null, "school": null, "subjects": [ ], "roles": [ { "id": 3, "name": "admin", "description": "This role represents an MEC Admin, that can perform any action." }, { "id": 1, "name": "teacher", "description": "This role represents a Teacher in Portal MEC." } ], "institutions": [ ] }