How to access the session data: Care Provider

To show the Care Provider the details of each session with a "Get" request

As a Care Provider, you can view the details of each session.

1- Request URL:

https://gwidev.eq.optt.ca/gateway/profile/caregiver/session/1

2- Request Method Type:

GET

3- PATH PARAMS

NameTypeDescription
idintegerThe number associated with the desired Session you want to view. (Ex: 5 would mean Session 5)

A complete example of an API call:

curl -X GET "https://gwidev.eq.optt.ca/gateway/profile/caregiver/session/1" -H "accept: */*" -H "Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjM3NTgyMDY1MjEsInVzZXJfbmFtZSI6ImxhbGVoZGVobmF2aS5sZEBnbWFpbC5jb20iLCJhdXRob3JpdGllcyI6WyJDQVJFR0lWRVIiXSwianRpIjoiOTZhYWFjOTMtMmRjNy00NDM5LWE3YTUtNWI0MzAwYmNjN2NlIiwiY2xpZW50X2lkIjoib3B0dC0wMmVlNzdkYy1hYzQ1LTQzNDQtODE3ZS0xN2NhNTJiNThiNWQiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXX0.cvGtZ8jjyREqzFr2kUOhh4HTDsJOD0Y4icAO9KOt42Z_B_HngqylOs_WbDiSKduObzvfTHraDqEIxZJtAzK9YujjKcy9uKfPH_9GR-qcuFNrlrJMREib2AMzUXi9Gsqgh-hNsp1uNhlQzQuzSoKo1rAnuF6HC2m1BU77cbVnrwTdbP6e8jJz21dvav1JSUVZiqiyxVbUY2f8IA8n-sXf_284-4shnkkggbgIPTW88Jd_UOp-w2UZ-lKRWfRmKlhRVM37iamWw0hGOIW3jOJc6_fc1ce-I2O7YYBNkYdwLooBaVzXG0ja8w1PTrHBml95PcmzDLp2zg-4CRpjczSk4g" -H "offset: 1"

Response:

{
  "id": 1,
  "title": "tst 1",
  "description": "tst 1",
  "caregiverId": 2,
  "caregiverName": "caregiver1",
  "caregiverPosition": "Psychologist",
  "clientId": 1,
  "clientOpptId": "clinic 12ea9ab52-498a-4600-9d15-eea49f0b4eb8",
  "clientName": "client 1",
  "createDate": "2020/12/07 08:51",
  "startDate": "2020/12/07 08:51",
  "chatId": "5fcded4774e8540001e3d9d9",
  "assignmentId": 1,
  "assignmentName": "Anxiety and depression during COVID-19 pandemic",
  "bookId": null,
  "assignmentCount": 1,
  "completedAssignmentCount": 1,
  "pendingAssignmentCount": 0,
  "lastAssignmentScore": null,
  "isClosed": false,
  "runningStatus": "RUNNING",
  "documents": [],
  "assignments": [
    {
      "id": 1,
      "bookId": 1,
      "name": "Anxiety and depression during COVID-19 pandemic",
      "sessionTitle": "tst 1",
      "sessionId": 1,
      "moduleId": 1,
      "moduleName": "Anxiety and depression during COVID-19 pandemic",
      "caregiverId": 2,
      "caregiverName": "caregiver1",
      "clientId": 1,
      "clientName": "client 1",
      "assignDate": "2020/12/07 08:51",
      "submitDate": "2020/12/07 08:59",
      "feedbackStatus": "WAITING",
      "feedbackSubmitDate": null,
      "startDate": "2020/12/07 08:51",
      "status": "COMPLETE",
      "isTest": false,
      "score": 0,
      "drafts": [],
      "answers": [],
      "autoSaveAnswers": [],
      "feedbacks": []
    }
  ],
  "feedbacks": []
}
Response headers
 cache-control: max-age=1, no-cache 
 connection: keep-alive 
 content-length: 1140 
 content-type: application/json;charset=UTF-8 
 date: Sun, 24 Jan 2021 11:45:59 GMT 
 expires: Sun, 24 Jan 2021 11:46:00 GMT 
 pragma: no-cache 
 server: nginx/1.14.0 (Ubuntu) 
 x-content-type-options: nosniff 
 x-frame-options: DENY 
 x-xss-protection: 1; mode=block