feat(graph): allow setting spaceids through API
Signed-off-by: Julian Koberg <jkoberg@MBP-Julian-Koberg.local>
This commit is contained in:
1 parent
4733692fe0
commit
b3df44deda
2 files changed
+9
No files matched your search
@@ -0,0 +1,5 @@
|
||||
Enhancement: Allow setting driveid through graph API
|
||||
|
||||
Allow setting the id through the graph API. This should always be a uuid to avoid clashes, but this is the responsibility of the API user.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/11256
|
||||
@@ -384,6 +384,10 @@ func (g Graph) CreateDrive(w http.ResponseWriter, r *http.Request) {
|
||||
Quota: getQuota(drive.Quota, g.config.Spaces.DefaultQuota),
|
||||
}
|
||||
|
||||
if drive.Id != nil {
|
||||
csr.Opaque = utils.AppendPlainToOpaque(csr.Opaque, "spaceid", *drive.Id)
|
||||
}
|
||||
|
||||
if drive.Description != nil {
|
||||
csr.Opaque = utils.AppendPlainToOpaque(csr.Opaque, "description", *drive.Description)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user