How to access the session data: Client

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

As a client, you can show the details of each your session:

1- Request URL:

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

2- Request Method Type:

GET

3- PATH PARAMS

NameTypeDescription
idintegerSession number you want to view.

A complete example of an API call:

curl -X GET "https://gwidev.eq.optt.ca/gateway/profile/client/session/1" -H "accept: */*" -H "Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjM3NTgyMDY0ODksInVzZXJfbmFtZSI6ImxhbGVoQGNpdHJvbml0eS5jb20iLCJhdXRob3JpdGllcyI6WyJDTElFTlQiXSwianRpIjoiNGNhZTIyMDQtMWNkNi00NTJmLWFmOGItYjc0NWZkMjdmMGYxIiwiY2xpZW50X2lkIjoib3B0dC0wMmVlNzdkYy1hYzQ1LTQzNDQtODE3ZS0xN2NhNTJiNThiNWQiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXX0.PON3BpI5KnDGxNHV3G-SfMiWDTcb2SQJJ5m5Mr9fKep_AMLSeJIeZzpnH6QSI2p_jgsaPZk9KYid7KJnfnjgLDYlQYQxj2fhvdyOkl6UY4OVwe1Vgr-3Zh6hibwDrrCcGUWQ_T3nTUTMyIpYGCAFck-Fz8EIxPj5MjOK2ImkFaqpIdfSFNRDV90IhdrR0qs0YptX9Hs6chP8EvQb_eJ4P-Hv5ZBT0WNvuzrcgflPqBjcge-eW0YO016ZqO15p-GPpHuqr-dSRFjciPG8RQhMytXZUAeHNXB9KtuFKMS9CDeD8bfHkl4bGjcdOdoTPWkfZ5Lj0RD393l-EmrrJ7ZZFA" -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": true,
  "runningStatus": "COMPLETED",
  "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": []
}