Users API

User represents the teacher and students in the system.

Getting all user versions

GET /v1/users/:id/versions

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: ZPgn5qWm4ljUgVFLL9f5ew
Client: gMPMUcj8B8PurZ2ZCcschQ
Uid: vinnie@ledner.info
Host: example.org
Cookie: 

Route

GET /v1/users/8871/versions

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/users/8871/versions" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: ZPgn5qWm4ljUgVFLL9f5ew" \
	-H "Client: gMPMUcj8B8PurZ2ZCcschQ" \
	-H "Uid: vinnie@ledner.info"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
Set-Cookie: _session_id=Vktxd3U1a1Y5S2srRjdWRTg5ZlpXcTFLL3czR3FReEMyOGhJbUZQeWxkY3F5bVFoUWp1S0NPL005VEgrc0xDNU5xNEdjUTlqdU9kKzB5aUNzcEZaT3kyVWdBbXgyUWhLcnVyNVJraXo0UzFMK3JzR25XVEZEOUk5RE1GRmVNTFhWeGRzenFIbDlGajNqci9EYitDYWhlT3FSdzh2bmRCNlVOb2h0aXVIQWVWUXM1TzdqWFRxNExlcjRoWjM4RGxILS12RTdSNFl2am5kQTBJSHIxK2Ivdml3PT0%3D--6a8e980f0f2c069ed71899a3f62cf4131bc5d4a6; path=/; HttpOnly
Vary: Origin
ETag: W/"2306147ccc6c262489951541e4f38a72"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: fd235ccb-893d-4f9b-920e-5575935779fb
X-Runtime: 0.108584
Content-Length: 3329

Status

200 OK

Body

[
  {
    "id": 12163,
    "item": {
      "id": 8871,
      "email": "jonathan_waters@grimes.co",
      "created_at": "2019-03-08T13:49:01.191Z",
      "updated_at": "2019-03-08T13:49:01.207Z",
      "provider": "email",
      "uid": "jonathan_waters@grimes.co",
      "name": "Caio Nascimento",
      "avatar_file_name": null,
      "avatar_content_type": null,
      "avatar_file_size": null,
      "avatar_updated_at": null,
      "bookmarks_count": 0,
      "user_category_id": null,
      "score": 0.0,
      "follows_count": 0,
      "deleted_at": null,
      "description": "Fugiat illo non in aut.",
      "likes_count": 0,
      "learning_objects_count": 0,
      "collections_count": 0,
      "nickname": null,
      "cover_file_name": null,
      "cover_content_type": null,
      "cover_file_size": null,
      "cover_updated_at": null,
      "education": "Quis quod explicabo ut blanditiis eos porro.",
      "submitter_request": "default",
      "dspace_handle": null,
      "dspace_url": null,
      "dspace_sets": [

      ],
      "teacher_id": null,
      "birthday": null,
      "school_id": 8870,
      "terms_accepted_at": null,
      "cpf": null
    },
    "event": "create",
    "whodunnit": null,
    "created_at": "2019-03-08T13:49:01.191Z",
    "object": {
      "id": 12163,
      "item_type": "User",
      "item_id": 8871,
      "event": "create",
      "whodunnit": null,
      "object": null,
      "created_at": "2019-03-08T13:49:01.191Z"
    }
  },
  {
    "id": 12164,
    "item": {
      "id": 8871,
      "email": "jonathan_waters@grimes.co",
      "created_at": "2019-03-08T13:49:01.191Z",
      "updated_at": "2019-03-08T13:49:01.207Z",
      "provider": "email",
      "uid": "jonathan_waters@grimes.co",
      "name": "Caio Nascimento",
      "avatar_file_name": null,
      "avatar_content_type": null,
      "avatar_file_size": null,
      "avatar_updated_at": null,
      "bookmarks_count": 0,
      "user_category_id": null,
      "score": 0.0,
      "follows_count": 0,
      "deleted_at": null,
      "description": "Fugiat illo non in aut.",
      "likes_count": 0,
      "learning_objects_count": 0,
      "collections_count": 0,
      "nickname": null,
      "cover_file_name": null,
      "cover_content_type": null,
      "cover_file_size": null,
      "cover_updated_at": null,
      "education": "Quis quod explicabo ut blanditiis eos porro.",
      "submitter_request": "default",
      "dspace_handle": null,
      "dspace_url": null,
      "dspace_sets": [

      ],
      "teacher_id": null,
      "birthday": null,
      "school_id": 8870,
      "terms_accepted_at": null,
      "cpf": null
    },
    "event": "update",
    "whodunnit": null,
    "created_at": "2019-03-08T13:49:01.207Z",
    "object": {
      "id": 12164,
      "item_type": "User",
      "item_id": 8871,
      "event": "update",
      "whodunnit": null,
      "object": "---\nid: 8871\nemail: silas.will@gulgowski.io\nencrypted_password: \"$2a$04$S613e.rTt688zBidKD9vEOmBM8FvJp9jzOcNVuoQpEEwO5R9pSnJ.\"\nreset_password_token: \nreset_password_sent_at: \nremember_created_at: \nsign_in_count: 0\ncurrent_sign_in_at: \nlast_sign_in_at: \ncurrent_sign_in_ip: \nlast_sign_in_ip: \ncreated_at: 2019-03-08 13:49:01.191692589 Z\nupdated_at: 2019-03-08 13:49:01.191692589 Z\nprovider: email\nuid: silas.will@gulgowski.io\nconfirmation_token: \nconfirmed_at: 2017-12-24 00:00:00.000000000 Z\nconfirmation_sent_at: \nunconfirmed_email: \ntokens: \"{}\"\nname: Márcia Soares\navatar_file_name: \navatar_content_type: \navatar_file_size: \navatar_updated_at: \nbookmarks_count: 0\nuser_category_id: \nscore: 0.0\nfollows_count: 0\ndeleted_at: \ndescription: Fugiat illo non in aut.\nlikes_count: 0\nlearning_objects_count: 0\ncollections_count: 0\nnickname: \ncover_file_name: \ncover_content_type: \ncover_file_size: \ncover_updated_at: \neducation: Quis quod explicabo ut blanditiis eos porro.\nsubmitter_request: 0\ndspace_handle: \ndspace_url: \ndspace_sets: \"{}\"\nteacher_id: \nbirthday: \nschool_id: 8870\nterms_accepted_at: \ncpf: \n",
      "created_at": "2019-03-08T13:49:01.207Z"
    }
  }
]