From 643681663fff73a0f74e892dc9f1a34743fae08b Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Fri, 20 Oct 2023 16:27:55 +0200 Subject: [PATCH] add activity sequence --- docs/unsure-where-to-put/star_activity.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/unsure-where-to-put/star_activity.md diff --git a/docs/unsure-where-to-put/star_activity.md b/docs/unsure-where-to-put/star_activity.md new file mode 100644 index 0000000000..ac6871e593 --- /dev/null +++ b/docs/unsure-where-to-put/star_activity.md @@ -0,0 +1,22 @@ +```mermaid +sequenceDiagram + participant fs as foreign_repository_server + participant os as our_repository_server + + fs ->> os: post /api/activitypub/repository-id/1/inbox {Start-Activity} + activate os + os ->> os: validate request inputs + activate repository + os ->> repository: validate + repository ->> repository: search for reop with object-id + deactivate repository + activate person + os ->> person: validate + person ->> person: search for ser with actor-id + person ->> fs: get /api/activitypub/user-id/{id from actor} + person ->> person: create user from response + deactivate person + os ->> repository: execute star action + os -->> fs: 200 ok + deactivate os +``` \ No newline at end of file