at main 42 lines 915 B view raw
1{ 2 "lexicon": 1, 3 "id": "sh.weaver.domain.resolveByDomain", 4 "defs": { 5 "main": { 6 "type": "query", 7 "description": "Resolve a publication by its custom domain.", 8 "parameters": { 9 "type": "params", 10 "required": [ 11 "domain" 12 ], 13 "properties": { 14 "domain": { 15 "type": "string", 16 "description": "The custom domain to resolve (e.g., myblog.com)." 17 } 18 } 19 }, 20 "output": { 21 "encoding": "application/json", 22 "schema": { 23 "type": "object", 24 "required": [ 25 "publication" 26 ], 27 "properties": { 28 "publication": { 29 "type": "ref", 30 "ref": "sh.weaver.domain.defs#publicationView" 31 } 32 } 33 } 34 }, 35 "errors": [ 36 { 37 "name": "DomainNotFound" 38 } 39 ] 40 } 41 } 42}