[EGD-5586] Clean up messages endpoint API

Introducing changes according to new messages endpoint api
proposal doc. All request have been updated, and some new were added.
Harness tests were updated too. These changes will be followed up with
pagination implementation.
This commit is contained in:
Pawel Olejniczak
2021-02-08 14:46:06 +01:00
committed by Paweł Olejniczak
parent 8d79f27d51
commit f535268624
15 changed files with 687 additions and 529 deletions

View File

@@ -226,7 +226,9 @@ std::unique_ptr<db::QueryResult> ThreadRecordInterface::markAsReadQuery(const st
ret = Update(record);
}
return std::make_unique<db::query::MarkAsReadResult>(ret);
auto response = std::make_unique<db::query::MarkAsReadResult>(ret);
response->setRequestQuery(query);
return response;
}
std::unique_ptr<db::QueryResult> ThreadRecordInterface::threadsGetQuery(const std::shared_ptr<db::Query> &query)