NestedFolders: Return full folder hierarchy in Folder response (#66835)

* Delete redundant struct

* Include parent folders in DTO

* Add test

* Update swagger
This commit is contained in:
Sofia Papagiannaki
2023-04-25 11:22:20 +03:00
committed by GitHub
parent 5c2a344ce1
commit 7dbcd5ecd0
6 changed files with 153 additions and 36 deletions
+2
View File
@@ -24,6 +24,8 @@ type Folder struct {
AccessControl accesscontrol.Metadata `json:"accessControl,omitempty"`
// only used if nested folders are enabled
ParentUID string `json:"parentUid,omitempty"`
// the parent folders starting from the root going down
Parents []Folder `json:"parents,omitempty"`
}
type FolderSearchHit struct {