-
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 an endpoint to undeprecate resources (#4454)
- Loading branch information
1 parent
3ed0219
commit b42f0a3
Showing
22 changed files
with
911 additions
and
417 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
5 changes: 5 additions & 0 deletions
5
delta/app/src/test/resources/resources/errors/resource-not-deprecated.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,5 @@ | ||
{ | ||
"@context": "https://bluebrain.github.io/nexus/contexts/error.json", | ||
"@type": "ResourceIsNotDeprecated", | ||
"reason": "Resource '{{id}}' is not deprecated." | ||
} |
712 changes: 435 additions & 277 deletions
712
delta/app/src/test/scala/ch/epfl/bluebrain/nexus/delta/routes/ResourcesRoutesSpec.scala
Large diffs are not rendered by default.
Oops, something went wrong.
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
15 changes: 15 additions & 0 deletions
15
delta/sdk/src/test/resources/resources/database/resource-undeprecated.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,15 @@ | ||
{ | ||
"id": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"project": "myorg/myproj", | ||
"types": [ | ||
"https://neuroshapes.org/Morphology" | ||
], | ||
"rev": 5, | ||
"instant": "1970-01-01T00:00:00Z", | ||
"subject": { | ||
"subject": "username", | ||
"realm": "myrealm", | ||
"@type": "User" | ||
}, | ||
"@type": "ResourceUndeprecated" | ||
} |
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
12 changes: 12 additions & 0 deletions
12
delta/sdk/src/test/resources/resources/sse/resource-undeprecated.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,12 @@ | ||
{ | ||
"@context": "https://bluebrain.github.io/nexus/contexts/metadata.json", | ||
"@type": "ResourceUndeprecated", | ||
"_instant": "1970-01-01T00:00:00Z", | ||
"_project": "http://localhost/v1/projects/myorg/myproj", | ||
"_resourceId": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"_rev": 5, | ||
"_subject": "http://localhost/v1/realms/myrealm/users/username", | ||
"_types": [ | ||
"https://neuroshapes.org/Morphology" | ||
] | ||
} |
Oops, something went wrong.