Get Item Count
GET/items/count
Get the number of items in the database that match the query.
Parameters
group_by: string (optional)
Field to group items by. If not provided, items will not be grouped.
Returns
integer
The number of items matching the query.
Request
Query Parameters
group_by Group By
Field to group by
Responses
- 200
- 422
Successful Response
- application/json
- Schema
Schema
integer
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- MOD2
- ]
- ]
detail object[]
loc object[]required
anyOf
string
integer
msg Messagerequired
type Error Typerequired
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...