{
"id": "buzz.bookhive.listGenres",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"genres"
],
"properties": {
"genres": {
"type": "array",
"items": {
"ref": "#genreWithCount",
"type": "ref"
}
},
"offset": {
"type": "integer",
"description": "Next offset for pagination"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"properties": {
"limit": {
"type": "integer",
"default": 50,
"maximum": 100,
"minimum": 1,
"description": "Maximum number of genres to return"
},
"offset": {
"type": "integer",
"description": "Offset for pagination"
},
"minBooks": {
"type": "integer",
"default": 0,
"minimum": 0,
"description": "Only return genres with at least this many books"
}
}
},
"description": "List genres with book counts. Does not require authentication."
},
"genreWithCount": {
"type": "object",
"required": [
"genre",
"count"
],
"properties": {
"count": {
"type": "integer",
"description": "Number of books in this genre"
},
"genre": {
"type": "string",
"description": "Genre name"
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}
Metadata
- DID
-
did:web:lexicon.store
- CID
-
bafyreibzvardcwpzhm3yneikn5sfo736ykfrmal4wcle5cc252kknakaj4
- Indexed At
- 2026-03-20 15:55 UTC
- AT-URI
-
at://did:web:lexicon.store/com.atproto.lexicon.schema/buzz.bookhive.listGenres