Skip to content

Commit 884d424

Browse files
author
vincenzo lalomia
committed
updated json response examples
1 parent 7dc057b commit 884d424

60 files changed

Lines changed: 405 additions & 168 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

authentication.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ This will return the authentication status, E.G.:
100100
"okay" : true,
101101
"authenticated" : true,
102102
"type" : "status",
103+
"uniqueType": "authn.status",
103104
"_links" : {
104105
"eperson" : {
105106
"href" : "http://${dspace-server.url}/api/eperson/epersons/2245f2c5-1bed-414b-a313-3fd2d2ec89d6"

bitstreams.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Provide detailed information about a specific bitstream. The JSON response docum
2323
"value": "9d8f0f9e369cf12159d47c146c499cf4"
2424
},
2525
"sequenceId": null,
26-
"type": "bitstream"
26+
"type": "bitstream",
27+
"uniqueType": "core.bitstream"
2728
}
2829
```
2930

browses.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ Provide detailed information about a specific browse index and access to the lis
8181
],
8282
"order": "ASC",
8383
"type": "browse",
84+
"uniqueType": "discover.browse",
8485
"metadata": [
8586
"dc.date.issued"
8687
]
@@ -122,6 +123,7 @@ Provide detailed information about a specific hierarchical browse index and acce
122123
"facetType": "subject",
123124
"vocabulary": "srsc",
124125
"type": "browse",
126+
"uniqueType": "discover.browse",
125127
"metadata": [
126128
"dc.subject"
127129
],

bundles.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Provide detailed information about a specific bundle. A sample JSON response doc
2727
]
2828
},
2929
"type": "bundle",
30+
"uniqueType": "core.bundle",
3031
"_links" : {
3132
"primarybitstream" : {
3233
"href" : "https://demo.dspace.org/server/api/core/bitstreams/ac49f361-4ffd-47a4-8eb2-e6c73c3f3e76"
@@ -77,6 +78,7 @@ Provide detailed information about a specific bundle. A sample JSON response doc
7778
},
7879
"sequenceId" : null,
7980
"type" : "bitstream",
81+
"uniqueType": "core.bitstream",
8082
"_links" : {
8183
"content" : {
8284
"href" : "https://demo.dspace.org/server/api/core/bitstreams/1ce6db0e-662f-4a13-ba87-c371ad664b14/content"
@@ -123,6 +125,7 @@ Provide detailed information about a specific bundle. A sample JSON response doc
123125
},
124126
"sequenceId" : null,
125127
"type" : "bitstream",
128+
"uniqueType": "core.bitstream",
126129
"_links" : {
127130
"content" : {
128131
"href" : "https://demo.dspace.org/server/api/core/bitstreams/4dd9621f-a464-4192-bc17-d70f68845bdc/content"

claimedtasks.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Provide details about a specific task in the pool. The JSON response document is
1616
"id": 1,
1717
"step": "editstep",
1818
"action": "editaction",
19-
"type": "claimedtask"
19+
"type": "claimedtask",
20+
"uniqueType": "workflow.claimedtask"
2021
}
2122
```
2223

collections.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ Provide detailed information about a specific collection. The JSON response docu
8282
}
8383
]
8484
},
85-
"type": "collection"
85+
"type": "collection",
86+
"uniqueType": "core.collection"
8687
}
8788
```
8889

@@ -394,6 +395,7 @@ The json representation is as follow
394395
"groupUUID": "11cc35e5-a11d-4b64-b5b9-0052a5d15509",
395396
"action": "DEFAULT_BITSTREAM_READ",
396397
"type": "resourcePolicy",
398+
"uniqueType": "authz.resourcePolicy"
397399
"_links": {
398400
"self": {
399401
"href": "https://demo.dspace.org/server/api/authz/resourcePolicies/2844"

communities.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ Provide detailed information about a specific community. The JSON response docum
6666
}
6767
]
6868
},
69-
"type": "community"
69+
"type": "community",
70+
"uniqueType": "core.community"
7071
}
7172
```
7273

edititems.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ Provide detailed information about a specific edititem. The JSON response docume
3131
]
3232
}
3333
},
34-
"type":"edititem"
34+
"type":"edititem",
35+
"uniqueType": "core.edititem"
3536
}
3637
```
3738
Return codes:
@@ -68,6 +69,7 @@ The JSON response document is as follow
6869
"label": null,
6970
"submissionDefinition": "publication-edit",
7071
"type": "edititemmode",
72+
"uniqueType": "core.edititemmode",
7173
"_links": {
7274
"self": {
7375
"href": "https://{dspace-cris-backend-url}/server/api/core/edititemmodes/FULL"

entitytypes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ A sample can be found at https://demo.dspace.org/server/#https://demo.dspace.org
1818
"id": 1,
1919
"label": "Publication",
2020
"type": "entitytype",
21+
"uniqueType": "core.entitytype",
2122
"_links": {
2223
"self": {
2324
"href": "https://demo.dspace.org/server/api/core/entitytypes/1"
@@ -31,6 +32,7 @@ A sample can be found at https://demo.dspace.org/server/#https://demo.dspace.org
3132
"id": 2,
3233
"label": "Person",
3334
"type": "entitytype",
35+
"uniqueType": "core.entitytype",
3436
"_links": {
3537
"self": {
3638
"href": "https://demo.dspace.org/server/api/core/entitytypes/2"
@@ -66,6 +68,7 @@ A sample can be found at https://demo.dspace.org/server/#https://demo.dspace.org
6668
"id": 1,
6769
"label": "Publication",
6870
"type": "entitytype",
71+
"uniqueType": "core.entitytype",
6972
"_links": {
7073
"self": {
7174
"href": "https://demo.dspace.org/server/api/core/entitytypes/1"

epersongroups.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"permanent": true,
1919
"type": "group",
20+
"uniqueType": "eperson.group",
2021
"_links": {
2122
"subgroups": {
2223
"href": "https://demo.dspace.org/server/api/eperson/groups/617cf46b-535c-42d5-9d22-327ce2eff6dc/subgroups"
@@ -120,6 +121,7 @@ Sample:
120121
"metadata": {},
121122
"permanent": true,
122123
"type": "group",
124+
"uniqueType": "eperson.group",
123125
"_links": {
124126
"subgroups": {
125127
"href": "https://demo.dspace.org/server/api/eperson/groups/617cf46b-535c-42d5-9d22-327ce2eff6dc/subgroups"
@@ -256,6 +258,7 @@ Sample:
256258
"selfRegistered": false,
257259
"groups": null,
258260
"type": "eperson",
261+
"uniqueType": "eperson.eperson",
259262
"_links": {
260263
"self": {
261264
"href": "https://demo.dspace.org/server/api/eperson/epersons/a6086b34-3918-45b7-8ddd-9329a702a26a"

0 commit comments

Comments
 (0)