Skip to content

Commit d062b4b

Browse files
committed
Add doc about using intents for sharings
1 parent beaa012 commit d062b4b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/sharing.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ If necessary, the application can list the permissions for the token by calling
3434
The owner of a cozy instance can send and synchronize documents to others cozy
3535
users.
3636

37+
### Intents
38+
39+
When a sharing is authorized, the user is redirected to their cozy on the
40+
application that was used for the sharing (when possible). It's possible to
41+
use a specific route to do so, via the intents. The application must declare
42+
an intent in its manifest for the action `SHARING`. The doctype of the intent
43+
must be the same as the doctype of the first rule of the sharing. In the
44+
redirect URL, the query string will have a `sharing` parameter with the
45+
sharing ID (but no intent parameter).
46+
3747
### Routes
3848

3949
#### POST /sharings/

0 commit comments

Comments
 (0)