From a813331cbf49f1f02c46e299004a39ddaceb55d7 Mon Sep 17 00:00:00 2001 From: Florian Schade Date: Fri, 20 Oct 2023 10:35:16 +0200 Subject: [PATCH] enhancement: add search capability --- ...ide-flag-to-shares.md.md => add-hide-flag-to-shares.md} | 2 +- changelog/unreleased/add-search-capability.md | 5 +++++ internal/http/services/owncloud/ocs/data/capabilities.go | 7 ++++++- 3 files changed, 12 insertions(+), 2 deletions(-) rename changelog/unreleased/{add-hide-flag-to-shares.md.md => add-hide-flag-to-shares.md} (82%) create mode 100644 changelog/unreleased/add-search-capability.md diff --git a/changelog/unreleased/add-hide-flag-to-shares.md.md b/changelog/unreleased/add-hide-flag-to-shares.md similarity index 82% rename from changelog/unreleased/add-hide-flag-to-shares.md.md rename to changelog/unreleased/add-hide-flag-to-shares.md index c4b8a15c23d..7ef741c8ede 100644 --- a/changelog/unreleased/add-hide-flag-to-shares.md.md +++ b/changelog/unreleased/add-hide-flag-to-shares.md @@ -4,4 +4,4 @@ We have added the ability to hide shares through the ocs/v2.php/apps/files_sharing/api/v1/shares/pending/ endpoint by appending a POST-Variable called hide which can be true or false. -https://github.com/cs3org/reva/pull/4194/files \ No newline at end of file +https://github.com/cs3org/reva/pull/4194 diff --git a/changelog/unreleased/add-search-capability.md b/changelog/unreleased/add-search-capability.md new file mode 100644 index 00000000000..ea2bedd57e8 --- /dev/null +++ b/changelog/unreleased/add-search-capability.md @@ -0,0 +1,5 @@ +Enhancement: Add search capability + +We have added the ability to define search specific capabilities. + +https://github.com/cs3org/reva/pull/4271 diff --git a/internal/http/services/owncloud/ocs/data/capabilities.go b/internal/http/services/owncloud/ocs/data/capabilities.go index 7f7af70c8c1..35291476578 100644 --- a/internal/http/services/owncloud/ocs/data/capabilities.go +++ b/internal/http/services/owncloud/ocs/data/capabilities.go @@ -58,8 +58,13 @@ type Capabilities struct { Spaces *Spaces `json:"spaces,omitempty" xml:"spaces,omitempty" mapstructure:"spaces"` Graph *CapabilitiesGraph `json:"graph,omitempty" xml:"graph,omitempty" mapstructure:"graph"` PasswordPolicy *CapabilitiesPasswordPolicy `json:"password_policy,omitempty" xml:"password_policy,omitempty" mapstructure:"password_policy"` + Search *CapabilitiesSearch `json:"search" xml:"search" mapstructure:"search"` + Notifications *CapabilitiesNotifications `json:"notifications,omitempty" xml:"notifications,omitempty"` +} - Notifications *CapabilitiesNotifications `json:"notifications,omitempty" xml:"notifications,omitempty"` +// CapabilitiesSearch hold the search capabilities +type CapabilitiesSearch struct { + Property []map[string]interface{} `json:"property" xml:"property" mapstructure:"property"` } // Spaces lets a service configure its advertised options related to Storage Spaces.