at main 43 lines 1.3 kB view raw
1{ 2 "lexicon": 1, 3 "id": "sh.weaver.notebook.getSimilarNotebooks", 4 "defs": { 5 "main": { 6 "type": "query", 7 "description": "Get notebooks similar to a given notebook (by tags, author, readers who also liked, etc).", 8 "parameters": { 9 "type": "params", 10 "required": ["notebook"], 11 "properties": { 12 "notebook": { "type": "string", "format": "at-uri" }, 13 "limit": { "type": "integer", "minimum": 1, "maximum": 50, "default": 10 } 14 } 15 }, 16 "output": { 17 "encoding": "application/json", 18 "schema": { 19 "type": "object", 20 "required": ["notebooks"], 21 "properties": { 22 "notebooks": { 23 "type": "array", 24 "items": { 25 "type": "object", 26 "required": ["notebook"], 27 "properties": { 28 "notebook": { "type": "ref", "ref": "sh.weaver.notebook.defs#notebookView" }, 29 "sharedTags": { 30 "type": "array", 31 "items": { "type": "string" } 32 }, 33 "sameAuthor": { "type": "boolean" }, 34 "readersAlsoLiked": { "type": "boolean" } 35 } 36 } 37 } 38 } 39 } 40 } 41 } 42 } 43}