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": [
11 "subject"
12 ],
13 "properties": {
14 "cursor": {
15 "type": "string"
16 },
17 "limit": {
18 "type": "integer",
19 "default": 50,
20 "minimum": 1,
21 "maximum": 100
22 },
23 "subject": {
24 "type": "string",
25 "format": "at-uri"
26 }
27 }
28 },
29 "output": {
30 "encoding": "application/json",
31 "schema": {
32 "type": "object",
33 "required": [
34 "uri",
35 "likes"
36 ],
37 "properties": {
38 "cid": {
39 "type": "string",
40 "format": "cid"
41 },
42 "cursor": {
43 "type": "string"
44 },
45 "likes": {
46 "type": "array",
47 "items": {
48 "type": "object",
49 "required": [
50 "actor",
51 "createdAt"
52 ],
53 "properties": {
54 "actor": {
55 "type": "ref",
56 "ref": "sh.weaver.actor.defs#profileViewBasic"
57 },
58 "createdAt": {
59 "type": "string",
60 "format": "datetime"
61 }
62 }
63 }
64 },
65 "uri": {
66 "type": "string",
67 "format": "at-uri"
68 }
69 }
70 }
71 }
72 }
73 }
74}