atproto blogging
1{
2 "lexicon": 1,
3 "id": "sh.weaver.graph.getLikedBy",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "Get users who liked a resource.",
8 "parameters": {
9 "type": "params",
10 "required": ["subject"],
11 "properties": {
12 "subject": { "type": "string", "format": "at-uri" },
13 "limit": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 },
14 "cursor": { "type": "string" }
15 }
16 },
17 "output": {
18 "encoding": "application/json",
19 "schema": {
20 "type": "object",
21 "required": ["uri", "likes"],
22 "properties": {
23 "uri": { "type": "string", "format": "at-uri" },
24 "cid": { "type": "string", "format": "cid" },
25 "likes": {
26 "type": "array",
27 "items": {
28 "type": "object",
29 "required": ["actor", "createdAt"],
30 "properties": {
31 "actor": { "type": "ref", "ref": "sh.weaver.actor.defs#profileViewBasic" },
32 "createdAt": { "type": "string", "format": "datetime" }
33 }
34 }
35 },
36 "cursor": { "type": "string" }
37 }
38 }
39 }
40 }
41 }
42}