From 3225296b7bacd9c24fe1e9cdbea95a746ef2686f Mon Sep 17 00:00:00 2001 From: Willy Kloucek Date: Wed, 15 Dec 2021 10:42:05 +0100 Subject: [PATCH] add new file capabilties to ocs for the app provider --- .../unreleased/enhancement-add-new-file-capability.md | 8 ++++++++ internal/http/services/owncloud/ocs/data/capabilities.go | 1 + 2 files changed, 9 insertions(+) create mode 100644 changelog/unreleased/enhancement-add-new-file-capability.md diff --git a/changelog/unreleased/enhancement-add-new-file-capability.md b/changelog/unreleased/enhancement-add-new-file-capability.md new file mode 100644 index 0000000000..23805aeff3 --- /dev/null +++ b/changelog/unreleased/enhancement-add-new-file-capability.md @@ -0,0 +1,8 @@ +Enhancement: add new file url of the app provider to the ocs capabilities + +We've added the new file capability of the app provider to the ocs capabilities, so that +clients can discover this url analogous to the app list and file open urls. + +https://github.com/cs3org/reva/pull/2379 +https://github.com/owncloud/ocis/pull/2884 +https://github.com/owncloud/web/pull/5890#issuecomment-993905242 diff --git a/internal/http/services/owncloud/ocs/data/capabilities.go b/internal/http/services/owncloud/ocs/data/capabilities.go index 3c3c693952..81ee4e3320 100644 --- a/internal/http/services/owncloud/ocs/data/capabilities.go +++ b/internal/http/services/owncloud/ocs/data/capabilities.go @@ -117,6 +117,7 @@ type CapabilitiesAppProvider struct { Version string `json:"version" xml:"version" mapstructure:"version"` AppsURL string `json:"apps_url" xml:"apps_url" mapstructure:"apps_url"` OpenURL string `json:"open_url" xml:"open_url" mapstructure:"open_url"` + NewURL string `json:"new_url" xml:"new_url" mapstructure:"new_url"` } // CapabilitiesFiles TODO this is storage specific, not global. What effect do these options have on the clients?