List of Assignments created by the Care Provider

To view a list of all client homework

A list of the assignments of each care provider, can be shown by following these steps:

1- Request URL:

https://gwidev.eq.optt.ca/gateway/profile/caregiver/session/assignment?time-state=RUNNING

2- Request Method Type:
GET

3- query

parameter name

Parameter Type

Description

time-state

string

RUNNING: Active sessions
FUTURE : Sessions that have not yet been activated
COMPLETED: Sessions closed by the Care Provider

  • One of these values must be used

A complete example of an API call:

curl -X GET "https://gwidev.eq.optt.ca/gateway/profile/caregiver/session/assignment?time-state=RUNNING" -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:

{
  "content": [
    {
      "id": 1856,
      "bookId": 4,
      "name": "Thought Record and Automatic thoughts",
      "sessionTitle": "tt",
      "sessionId": 811,
      "moduleId": 3,
      "moduleName": "COVID19",
      "caregiverId": 2,
      "caregiverName": "caregiver1",
      "clientId": 1,
      "clientName": "client 1",
      "assignDate": "2021/01/25 13:51",
      "submitDate": null,
      "feedbackStatus": "WAITING",
      "feedbackSubmitDate": null,
      "startDate": "2021/01/25 13:50",
      "status": "PENDING",
      "isTest": false,
      "score": 0,
      "drafts": [],
      "answers": [],
      "autoSaveAnswers": [],
      "feedbacks": []
    },
    {
      "id": 1833,
      "bookId": 4,
      "name": "Thought Record and Automatic thoughts",
      "sessionTitle": "covid test",
      "sessionId": 809,
      "moduleId": 3,
      "moduleName": "COVID19",
      "caregiverId": 2,
      "caregiverName": "caregiver1",
      "clientId": 1,
      "clientName": "client 1",
      "assignDate": "2021/01/24 10:14",
      "submitDate": null,
      "feedbackStatus": "WAITING",
      "feedbackSubmitDate": null,
      "startDate": "2021/01/24 10:14",
      "status": "PENDING",
      "isTest": false,
      "score": 0,
      "drafts": [],
      "answers": [],
      "autoSaveAnswers": [],
      "feedbacks": []
    }
  ],
  "last": false,
  "totalElements": 488,
  "totalPages": 25,
  "sort": null,
  "first": true,
  "numberOfElements": 20,
  "size": 20,
  "number": 0
}