https://argrath.github.io/activitypub/#Overview についてまとめた。
Actorとはユーザーのこと。 Actorはinbox, outboxをもつ。
| inbox | メッセージを受け取る場所 |
| outbox | メッセージを送る場所 |
ActivityStreamがpayloadでは流れるらしい。 https://www.w3.org/TR/activitystreams-core/
| リソース | メソッド | リソースの所有者 | 通信の向き | 備考 |
| inbox | POST | 自分以外の誰か | サーバーからサーバーへ | これ自体が連合(Federation) |
| inbox | GET | 自分 | クライアントからサーバーへ | 自分のタイムラインを読む |
| outbox | POST | 自分 | クライアントからサーバーへ | メッセージの送信 |
| outbox | GET | 自分以外の誰か | クライアントおよびサーバーからサーバーへ | その人の投稿を読む |
AlyssaからBenへのメッセージ AlyssaのクライアントからAlyssaのサーバーへのメッセージ
{"@context": "https://www.w3.org/ns/activitystreams",
"type": "Person",
"id": "https://social.example/alyssa/",
"name": "Alyssa P. Hacker",
"preferredUsername": "alyssa",
"summary": "Lisp enthusiast hailing from MIT",
"inbox": "https://social.example/alyssa/inbox/",
"outbox": "https://social.example/alyssa/outbox/",
"followers": "https://social.example/alyssa/followers/",
"following": "https://social.example/alyssa/following/",
"liked": "https://social.example/alyssa/liked/"}
https://qiita.com/TakesxiSximada/private/93e312953b8bc293c4ae