{
"id": "org.passingreads.book.getPublicationBooks",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"books"
],
"properties": {
"books": {
"type": "array",
"items": {
"ref": "org.passingreads.book.defs#statefulBook",
"type": "ref"
}
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"publicationId"
],
"properties": {
"publicationId": {
"type": "string",
"description": "The OpenLibrary Edition ID shared by all copies of this publication."
}
}
},
"description": "List every dropped book copy that shares a publicationId. Unlike searchBooks this does not de-duplicate — the publication detail page wants every individual copy so the user can see exactly how many are out there and where."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}