List interactive stories
GET/stories
This endpoint retrieves a list of available stories.
It supports advanced filtering and sorting options for the associated quiz
data.
Filtering Options:
filter=quiz=true
: Lists allStories
that have an activequiz
feature.filter=quiz.isMandatory=true
: Lists allStories
where thequiz
is mandatory for the user.filter=quiz.isOpenToTake=true
: Lists allStories
where thequiz
is currently open for the user to take an attempt.filter=quiz.isSuccess=true
: Lists allStories
with successfully finished attempt and showing result is enabled.filter=quiz.isFailure=true
: Lists allStories
with failed attempt and showing result is enabled.
Sorting Options:
sort=quiz.dueUntilUtc:desc
: Sorts the list by thequiz
expiry date in descending order.sort=quiz.report.rate:desc
: Sorts the list by the latest attempt rate in descending order.sort=quiz.latestAttemptUtc:desc
: Sorts the list by the latest attempt time in descending order.
Note: Omitting :desc
in the sorting parameter reverses the sorting order to ascending. For example, sort=quiz.dueUntilUtc
will sort by the expiry date in ascending order.
By leveraging these filters and sorting parameters, users can efficiently query Stories
tailored to specific conditions and priorities.
Request
Responses
- 200
- 404
- default
Successful response.
Response Headers
X-Total-Count
Total count of items
Error Response
Error Response