-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add method & endpoint to update custom file metadata (#4775)
- Loading branch information
1 parent
32c61af
commit 18fc6c4
Showing
13 changed files
with
365 additions
and
37 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
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
21 changes: 21 additions & 0 deletions
21
delta/plugins/storage/src/test/resources/files/database/file-custom-metadata-updated.json
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,21 @@ | ||
{ | ||
"id": "https://bluebrain.github.io/nexus/vocabulary/file", | ||
"project": "myorg/myproj", | ||
"storage": "https://bluebrain.github.io/nexus/vocabulary/disk-storage?rev=1", | ||
"storageType": "DiskStorage", | ||
"metadata": { | ||
"name": "A name", | ||
"description": "A description", | ||
"keywords": { | ||
"key": "value" | ||
} | ||
}, | ||
"rev": 3, | ||
"instant": "1970-01-01T00:00:00Z", | ||
"subject": { | ||
"subject": "username", | ||
"realm": "myrealm", | ||
"@type": "User" | ||
}, | ||
"@type": "FileCustomMetadataUpdated" | ||
} |
20 changes: 20 additions & 0 deletions
20
delta/plugins/storage/src/test/resources/files/sse/file-custom-metadata-updated.json
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,20 @@ | ||
{ | ||
"@context": [ | ||
"https://bluebrain.github.io/nexus/contexts/metadata.json", | ||
"https://bluebrain.github.io/nexus/contexts/files.json" | ||
], | ||
"@type": "FileCustomMetadataUpdated", | ||
"metadata": { | ||
"name": "A name", | ||
"description": "A description", | ||
"keywords": { | ||
"key": "value" | ||
} | ||
}, | ||
"_fileId": "https://bluebrain.github.io/nexus/vocabulary/file", | ||
"_instant": "1970-01-01T00:00:00Z", | ||
"_project": "http://localhost/v1/projects/myorg/myproj", | ||
"_resourceId": "https://bluebrain.github.io/nexus/vocabulary/file", | ||
"_rev": 3, | ||
"_subject": "http://localhost/v1/realms/myrealm/users/username" | ||
} |
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.