-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
364 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
[Table of contents](README.md#table-of-contents) | ||
|
||
# Shared drives | ||
|
||
A shared drive is a folder that is shared between several cozy instances. A | ||
member doesn't have the files in their Cozy, but can access them via the stack | ||
playing a proxy role. | ||
|
||
To create a shared drive (typically on the organization Cozy), we need the | ||
following steps: | ||
|
||
1. Ensure that the `/Drive` folder exists in the cozy instance with the | ||
[`POST /files/shared-drives`](https://docs.cozy.io/en/cozy-stack/files/#post-filesshared-drives) | ||
route. | ||
2. Create a folder inside it, with the name of shared drive. | ||
3. Create a sharing with the `sharing: true` attribute, and one rule for | ||
shared folder (with `none` for `add`, `update` and `remove` attributes). | ||
|
||
## GET /sharings/drives | ||
|
||
The `GET /sharings/drives` route returns the list of shared drives. | ||
|
||
#### Request | ||
|
||
```http | ||
GET /sharings/drives HTTP/1.1 | ||
Host: acme.example.net | ||
Accept: application/vnd.api+json | ||
``` | ||
|
||
#### Response | ||
|
||
```http | ||
HTTP/1.1 200 OK | ||
Content-Type: application/vnd.api+json | ||
``` | ||
|
||
```json | ||
{ | ||
"data": [ | ||
{ | ||
"type": "io.cozy.sharings", | ||
"id": "aae62886e79611ef8381fb83ff72e425", | ||
"attributes": { | ||
"drive": true, | ||
"owner": true, | ||
"description": "Drive for the product team", | ||
"app_slug": "drive", | ||
"created_at": "2025-02-10T11:08:08Z", | ||
"updated_at": "2025-02-10T12:10:43Z", | ||
"members": [ | ||
{ | ||
"status": "owner", | ||
"public_name": "ACME", | ||
"email": "[email protected]", | ||
"instance": "acme.example.net" | ||
}, | ||
{ | ||
"status": "pending", | ||
"name": "Alice", | ||
"email": "[email protected]" | ||
}, | ||
{ | ||
"status": "pending", | ||
"name": "Bob", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"rules": [ | ||
{ | ||
"title": "Product team", | ||
"doctype": "io.cozy.files", | ||
"values": [ | ||
"357665ec-e797-11ef-94fb-f3d08ccb3ff5" | ||
], | ||
"add": "none", | ||
"update": "none", | ||
"remove": "none" | ||
} | ||
] | ||
}, | ||
"meta": { | ||
"rev": "1-272ba74b868f" | ||
}, | ||
"links": { | ||
"self": "/sharings/aae62886e79611ef8381fb83ff72e425" | ||
} | ||
} | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,59 @@ | ||
- README: ./README.md | ||
- Usage: | ||
- "Install the cozy-stack": ./INSTALL.md | ||
- "Configuration file": ./config.md | ||
- "Managing Instances": ./instance.md | ||
- "Security": ./security.md | ||
- "Manpages of the command-line tool": ./cli/cozy-stack.md | ||
- "Using the admin API": "./admin.md" | ||
- "Important changes": "./important-changes.md" | ||
- "Install the cozy-stack": ./INSTALL.md | ||
- "Configuration file": ./config.md | ||
- "Managing Instances": ./instance.md | ||
- "Security": ./security.md | ||
- "Manpages of the command-line tool": ./cli/cozy-stack.md | ||
- "Using the admin API": "./admin.md" | ||
- "Important changes": "./important-changes.md" | ||
- How-to guides for developpers: | ||
- "Using the HTTP API": ./http-api.md | ||
- "Develop a client-side app": ./client-app-dev.md | ||
- "Running and building Docker images": ./docker.md | ||
- "Running a konnector locally": ./konnectors-dev.md | ||
- "Adding a new doctype": ./doctype.md | ||
- "Working with the stack assets": ./assets.md | ||
- "Build a release": ./release.md | ||
- "The contributing guide": ./CONTRIBUTING.md | ||
- "Using the HTTP API": ./http-api.md | ||
- "Develop a client-side app": ./client-app-dev.md | ||
- "Running and building Docker images": ./docker.md | ||
- "Running a konnector locally": ./konnectors-dev.md | ||
- "Adding a new doctype": ./doctype.md | ||
- "Working with the stack assets": ./assets.md | ||
- "Build a release": ./release.md | ||
- "The contributing guide": ./CONTRIBUTING.md | ||
- Explanations: | ||
- "Flagship app": ./flagship.md | ||
- "Move design": ./move-design.md | ||
- "Realtime internals": ./realtime-internals.md | ||
- "Sharing design": ./sharing-design.md | ||
- "Workflow of the konnectors": ./konnectors-workflow.md | ||
- "Flagship app": ./flagship.md | ||
- "Move design": ./move-design.md | ||
- "Realtime internals": ./realtime-internals.md | ||
- "Sharing design": ./sharing-design.md | ||
- "Workflow of the konnectors": ./konnectors-workflow.md | ||
- List of services: | ||
- "/ai - AI": ./ai.md | ||
- "/auth - Authentication & OAuth": ./auth.md | ||
- " /oidc - Delegated authentication": ./delegated-auth.md | ||
- "/apps - Applications Management": ./apps.md | ||
- " /apps - Apps registry": ./registry.md | ||
- "/bitwarden - Bitwarden": ./bitwarden.md | ||
- "/connection_check - Connection check": ./connection-check.md | ||
- "/contacts - Contacts": ./contacts.md | ||
- "/data - Data System": ./data-system.md | ||
- " /data - Mango": ./mango.md | ||
- " /data - CouchDB Quirks": ./couchdb-quirks.md | ||
- " /data - PouchDB Quirks": ./pouchdb-quirks.md | ||
- "/files - Virtual File System": ./files.md | ||
- " /files - Not synchronized directories": ./not-synchronized-vfs.md | ||
- " /files - References of documents in VFS": ./references-docs-in-vfs.md | ||
- "/intents - Intents": ./intents.md | ||
- "/jobs - Jobs": ./jobs.md | ||
- " /jobs - Workers": ./workers.md | ||
- "/konnectors - Konnectors": ./konnectors.md | ||
- "/move - Move, export and import an instance": ./move.md | ||
- "/notes - Notes for collaborative edition": ./notes.md | ||
- "/notifications - Notifications": ./notifications.md | ||
- "/office - Collaborative edition of Office documents": ./office.md | ||
- "/public - Public": ./public.md | ||
- "/permissions - Permissions": ./permissions.md | ||
- "/realtime - Realtime": ./realtime.md | ||
- "/remote - Proxy for remote data/API": ./remote.md | ||
- " /remote/nextcloud - NextCloud": ./nextcloud.md | ||
- "/settings - Settings": ./settings.md | ||
- " /settings - Terms of Services": ./user-action-required.md | ||
- "/sharings - Sharing": ./sharing.md | ||
- "/shortcuts - Shortcuts": ./shortcuts.md | ||
- "/.well-known - Well-known": ./wellknown.md | ||
- "/ai - AI": ./ai.md | ||
- "/auth - Authentication & OAuth": ./auth.md | ||
- " /oidc - Delegated authentication": ./delegated-auth.md | ||
- "/apps - Applications Management": ./apps.md | ||
- " /apps - Apps registry": ./registry.md | ||
- "/bitwarden - Bitwarden": ./bitwarden.md | ||
- "/connection_check - Connection check": ./connection-check.md | ||
- "/contacts - Contacts": ./contacts.md | ||
- "/data - Data System": ./data-system.md | ||
- " /data - Mango": ./mango.md | ||
- " /data - CouchDB Quirks": ./couchdb-quirks.md | ||
- " /data - PouchDB Quirks": ./pouchdb-quirks.md | ||
- "/files - Virtual File System": ./files.md | ||
- " /files - Not synchronized directories": ./not-synchronized-vfs.md | ||
- " /files - References of documents in VFS": ./references-docs-in-vfs.md | ||
- "/intents - Intents": ./intents.md | ||
- "/jobs - Jobs": ./jobs.md | ||
- " /jobs - Workers": ./workers.md | ||
- "/konnectors - Konnectors": ./konnectors.md | ||
- "/move - Move, export and import an instance": ./move.md | ||
- "/notes - Notes for collaborative edition": ./notes.md | ||
- "/notifications - Notifications": ./notifications.md | ||
- "/office - Collaborative edition of Office documents": ./office.md | ||
- "/public - Public": ./public.md | ||
- "/permissions - Permissions": ./permissions.md | ||
- "/realtime - Realtime": ./realtime.md | ||
- "/remote - Proxy for remote data/API": ./remote.md | ||
- " /remote/nextcloud - NextCloud": ./nextcloud.md | ||
- "/settings - Settings": ./settings.md | ||
- " /settings - Terms of Services": ./user-action-required.md | ||
- "/sharings - Sharing": ./sharing.md | ||
- " /sharings/drives - Shared drives": ./shared-drives.md | ||
- "/shortcuts - Shortcuts": ./shortcuts.md | ||
- "/.well-known - Well-known": ./wellknown.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.