atproto blogging
1{
2 "lexicon": 1,
3 "id": "sh.weaver.notebook.getChapter",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "Get a chapter with its entries.",
8 "parameters": {
9 "type": "params",
10 "required": [
11 "chapter"
12 ],
13 "properties": {
14 "chapter": {
15 "type": "string",
16 "format": "at-uri"
17 },
18 "entryCursor": {
19 "type": "string"
20 },
21 "entryLimit": {
22 "type": "integer",
23 "default": 50,
24 "minimum": 1,
25 "maximum": 100
26 }
27 }
28 },
29 "output": {
30 "encoding": "application/json",
31 "schema": {
32 "type": "object",
33 "required": [
34 "chapter",
35 "entries"
36 ],
37 "properties": {
38 "chapter": {
39 "type": "ref",
40 "ref": "sh.weaver.notebook.defs#chapterView"
41 },
42 "entries": {
43 "type": "array",
44 "items": {
45 "type": "ref",
46 "ref": "sh.weaver.notebook.defs#chapterEntryView"
47 }
48 },
49 "entryCursor": {
50 "type": "string"
51 }
52 }
53 }
54 },
55 "errors": [
56 {
57 "name": "ChapterNotFound"
58 }
59 ]
60 }
61 }
62}