How to Provide Feedback

To provide feedback as a Care Provider with a "POST" request.

As soon as a Care Provider evaluates an Assignment, there will be the need to provide the client with feedback on their performance. Creating feedback starts with a simple "POST" request. Please note that both the Client and the Care Provider can comment on the Feedback.
Also, keep in mind that there is an autosave function that saves the feedback automatically. Meaning that, if you pass autosave with a true value, it saves a draft of the Feedback. This draft is not submitted until you submit it.

1- Request URL:

https://gwidev.eq.optt.ca/gateway/profile/caregiver/feedback

2- Request method type:

POST

3- Request Input Parameters:

Body:

{
  "assignmentId": 0,
  "autoSave": true,
  "content": "string",
  "date": "string",
  "time": "string"
}

Body Description:

Parameter NameParameter TypeDescription
assignmentIdLongThe Assignment that requires feedback
contentStringThe title of Feedback session
autosavebooleanIf it is the autosave or the actual feedback (for this API you should always send it as false)
dateStringDate of the feedback submission (yyyy-mm-dd)
timeStringTime of the feedback submission [hh:mm]

A complete example of an API call:

curl -X POST "https://gwidev.eq.optt.ca/gateway/profile/caregiver/feedback" -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" -H "Content-Type: application/json" -d "{ \"assignmentId\": 1844, \"autoSave\": true, \"content\": \"test\", \"date\": \"2021-01-27\", \"time\": \"00:00\"}"

Response: In case of success, a "string" message will be sent as a response that shows the title of the feedback session, and the error message is a general rest error model that was described in the first chapter.

{
  "message": "157"
}