Endpoints that allow for querying follow the API Query Language.
Note that the "hasSome" operator works the same as the operator "IN" in SQL.
Field | Operators | Sorting Allowed |
---|---|---|
id | $eq, $ne, $hasSome | Allowed |
categoryId | $eq, $ne | |
title | $eq, $ne, $contains, $hasSome, $urlized, $startsWith, $endsWith, $hasSome | |
ownerId | $eq, $ne | |
contentText | $eq, $ne, $contains, $hasSome, $startsWith, $endsWith, $hasSome | |
bestAnswerCommentId | $eq, $ne | |
pinned | $eq, $ne | Allowed |
commentingEnabled | $eq, $ne | |
commentCount | $eq, $ne, $lt, $lte, $gt, $gte | Allowed |
likeCount | $eq, $ne, $lt, $lte, $gt, $gte | Allowed |
viewCount | $eq, $ne, $lt, $lte, $gt, $gte | Allowed |
createdDate | $eq, $ne, $lt, $lte, $gt, $gte | Allowed |
updatedDate | $eq, $ne, $lt, $lte, $gt, $gte | |
lastActivityDate | $eq, $ne, $lt, $lte, $gt, $gte | Allowed |
slug | $eq, $ne, $contains, $hasSome, $urlized, $startsWith, $endsWith, $hasSome | Allowed |
Query pinned posts
1
Get all posts, sorted by created date (latest first)
1
Get posts by IDs
1
Field | Operators | Sorting Allowed |
---|---|---|
id | $eq, $ne, $hasSome | Allowed |
parentId | $eq, $ne, $contains, $hasSome, $urlized, $startsWith, $endsWith, $hasSome | |
name | $eq, $ne, $contains, $hasSome, $urlized, $startsWith, $endsWith, $hasSome | |
rank | $eq, $ne, $lt, $lte, $gt, $gte | Allowed |
headerTitle | $eq, $ne, $contains, $hasSome, $urlized, $startsWith, $endsWith, $hasSome | |
headerType | $eq, $ne, $contains, $hasSome, $urlized, $startsWith, $endsWith, $hasSome | |
description | $eq, $ne, $contains, $hasSome, $startsWith, $endsWith, $hasSome | |
postCount | $eq, $ne, $contains, $hasSome, $urlized, $startsWith, $endsWith, $hasSome | Allowed |
postViewCount | $eq, $ne, $contains, $hasSome, $urlized, $startsWith, $endsWith, $hasSome | Allowed |
slug | $eq, $ne, $contains, $hasSome, $urlized, $startsWith, $endsWith, $hasSome |
Query categories by description
1
Get all categories, sorted by rank
1
Get categories by IDs
1
Field | Operators | Sorting Allowed |
---|---|---|
id | $eq, $ne, $hasSome | Allowed |
categoryId | $eq, $ne | |
title | $eq, $ne, $contains, $hasSome, $urlized, $startsWith, $endsWith, $hasSome | |
ownerId | $eq, $ne | |
contentText | $eq, $ne, $contains, $hasSome, $startsWith, $endsWith, $hasSome | |
commentingType | $eq, $ne | |
createdDate | $eq, $ne, $lt, $lte, $gt, $gte | Allowed |
Query draft post by content text
1
Get all draft posts, sorted by createdDate
1
Get draft posts by IDs
1