atproto blogging
1{
2 "lexicon": 1,
3 "id": "sh.weaver.graph.getTaggedResources",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "Get notebooks and entries tagged with a specific tag.",
8 "parameters": {
9 "type": "params",
10 "required": ["tag"],
11 "properties": {
12 "tag": { "type": "string", "minLength": 1, "maxLength": 128 },
13 "resourceType": {
14 "type": "string",
15 "knownValues": ["notebook", "entry", "all"],
16 "default": "all"
17 },
18 "includeAuthorTags": {
19 "type": "boolean",
20 "default": true,
21 "description": "Include resources where author applied this tag."
22 },
23 "includeCommunityTags": {
24 "type": "boolean",
25 "default": true,
26 "description": "Include resources where community applied this tag."
27 },
28 "sort": {
29 "type": "string",
30 "knownValues": ["recent", "popular"],
31 "default": "recent"
32 },
33 "limit": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 },
34 "cursor": { "type": "string" }
35 }
36 },
37 "output": {
38 "encoding": "application/json",
39 "schema": {
40 "type": "object",
41 "required": ["resources"],
42 "properties": {
43 "tag": { "type": "ref", "ref": "sh.weaver.graph.defs#tagView" },
44 "resources": {
45 "type": "array",
46 "items": {
47 "type": "union",
48 "refs": [
49 "sh.weaver.notebook.defs#notebookView",
50 "sh.weaver.notebook.defs#entryView"
51 ]
52 }
53 },
54 "cursor": { "type": "string" }
55 }
56 }
57 }
58 }
59 }
60}