at main 51 lines 1.2 kB view raw
1{ 2 "lexicon": 1, 3 "id": "sh.weaver.domain.resolveDocument", 4 "defs": { 5 "main": { 6 "type": "query", 7 "description": "Resolve a document by path within a publication. Returns re-hydrated content for weaver-backed documents.", 8 "parameters": { 9 "type": "params", 10 "required": [ 11 "publication", 12 "path" 13 ], 14 "properties": { 15 "path": { 16 "type": "string", 17 "description": "URL path within the publication (e.g., /posts/my-first-post)." 18 }, 19 "publication": { 20 "type": "string", 21 "description": "AT-URI of the publication.", 22 "format": "at-uri" 23 } 24 } 25 }, 26 "output": { 27 "encoding": "application/json", 28 "schema": { 29 "type": "object", 30 "required": [ 31 "document" 32 ], 33 "properties": { 34 "document": { 35 "type": "ref", 36 "ref": "sh.weaver.domain.defs#documentView" 37 } 38 } 39 } 40 }, 41 "errors": [ 42 { 43 "name": "PublicationNotFound" 44 }, 45 { 46 "name": "DocumentNotFound" 47 } 48 ] 49 } 50 } 51}