We need to add filtration to the get_topics REST route. Filter should be possible by the following attributes: author_id, created_before, created_after.
Request example
GET /topics?author_id=42&author_id=24&author_id=18
Response example
[
# topics with author_id 42 or 24 or 18
]
We suppose that all datetime related query params will be sent in UTC timezone in the following format:
'2023-04-24 05:10:20.782336'
Request example
GET /topics?created_after=2023-04-24 04:10:20.782336&created_before=2023-04-24 05:10:20.782336
So in the scope of this task we need to add filtration for get_topics route.
We need to add filtration to the
get_topics
REST route. Filter should be possible by the following attributes:author_id
,created_before
,created_after
.Request example
Response example
We suppose that all datetime related query params will be sent in UTC timezone in the following format:
Request example
So in the scope of this task we need to add filtration for
get_topics
route.