Skip to content
Prev Previous commit
Improve description
  • Loading branch information
LovisaLugnegard committed Jun 24, 2020
commit f2d17c03f60b8df73b99a6b1b17724ba5a2a8ce2
2 changes: 1 addition & 1 deletion spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ paths:
/invites/forward:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Who forwards the invitation when this end-point is called, and from where to where?

Copy link
Contributor

@michielbdejong michielbdejong Aug 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC from https://www.youtube.com/watch?v=TnlUOG3lOu4, the flow would be as follows, if Alice at server A invites Bob at server B:

  • Alice instructs A to send an invite to "Bob@B"
    • A changes state, "invite sent from Alice to Bob@B"
    • A calls B/invites/forward
    • B changes state, "invite received from Alice@A to Bob"
  • B notifies Bob (this is the "forwarding", right?)
  • Bob instructs B to accept the invitation
    • B changes state, "invite from Alice@A to Bob accepted"
    • B calls A/invites/accept
    • A changes state, "invite from Alice to Bob@B accepted"

If this is correct, then I think the summary and description should reflect that it is B who forwards the invite from A (or effectively from Alice@A) to Bob?

Copy link
Contributor

@michielbdejong michielbdejong Aug 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The summary "Forward an invitation to start sharing" suggests that the agent doing the forwarding (B) is also the agent who starts sharing, but I think it's more accurate to say Alice@A starts sharing.

Also, since B forwards from the inner network to the last mile end-point, "deliver" might have been a better verb than "forward".

The delivery of the notification is not the main functionality exposed by this API endpoint; rather, if and how B notifies Bob is not even the concern of A or of Alice@A. So given that there is also a state change in B, maybe "create" (as in "create an entry in your list of received invites") would have been even better than "forward" or "deliver".

The description "Forwards an invitation received through an out-of-band channel, email for example." describes how the invitation was received, but I think the intention was to describe how the invitation gets forwarded.
So maybe "Forwards a received invitation through an out-of-band channel, email for example." is clearer?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And for the summary I would suggest "Notify the recipient of a new invite"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah wait, I ran through https://reva.link/docs/tutorials/share-tutorial/#4-2-accept-the-token again and this actually looks like accepting the invite is not a server-to-server interaction, but a client-to-server one?
Should the OCM API not only define those, or leave that to each implementer?
In the end it doesn't matter to Alice or to A how Bob and B communicate with each other, right?

post:
summary: Forward an invitation to start sharing
description: Forwards an invitation received by an out-of-band channel, email for example.
description: Forwards an invitation received through an out-of-band channel, email for example.
parameters:
- name: invite
in: body
Expand Down