Skip to content

Commit 8f34951

Browse files
vins01-4scienceatarix83
authored andcommitted
Merged in DSC-1399 (pull request DSpace#50)
DSC-1399 Approved-by: Giuseppe Digilio
2 parents 80121a7 + d69326f commit 8f34951

32 files changed

Lines changed: 418 additions & 342 deletions

authentication.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
The authentication mechanism since DSpace 7 is based on JSON Web Token (JWT / RFC 7519).
55

6+
The authentication mechanism since DSpace 7 is based on JSON Web Token (JWT / RFC 7519).
7+
68
Information about the underline implementation are [available on the wiki](https://wiki.duraspace.org/display/DSPACE/REST+Authentication)
79

810
## Login
@@ -12,7 +14,7 @@ This endpoint only accepts the `POST` method. Parameters and body structure depe
1214

1315
A `WWW-Authenticate` header is returned listing the different authentication method supported by the system.
1416
Below an example listing the password and shibboleth authentication:
15-
`WWW-Authenticate: shibboleth realm="DSpace REST API", location="https://api7.dspace.org/Shibboleth.sso/Login?target=https%3A%2F%2Fapi7.dspace.org", password realm="DSpace REST API"`
17+
`WWW-Authenticate: shibboleth realm="DSpace REST API", location="https://demo.dspace.org/Shibboleth.sso/Login?target=https%3A%2F%2Fdemo.dspace.org", password realm="DSpace REST API"`
1618

1719
Return codes
1820
- 200 Ok. If the authentication succeed. The JWT will be returned in the response Header Authorization.

bitstreamformats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Provide access to the bitstream formats defined in the registry (DBMS based). It returns the list of existent metadata fields.
88

9-
Example: <https://api7.dspace.org/server/#https://api7.dspace.org/server/api/core/bitstreamformats>
9+
Example: <https://demo.dspace.org/server/#https://demo.dspace.org/server/api/core/bitstreamformats>
1010

1111
**POST /api/core/bitstreamformats**
1212

bitstreams.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Bitstream metadata can be modified as described in [Modifying metadata via Patch
4141
### Format
4242
**GET /api/core/bitstreams/<:uuid>/format**
4343

44-
Example: <https://api7.dspace.org/server/#https://api7.dspace.org/server/api/core/bitstreams/8d33bdfb-e7ba-43e6-a93a-f445b7e8a1e2/format>
44+
Example: <https://demo.dspace.org/server/#https://demo.dspace.org/server/api/core/bitstreams/8d33bdfb-e7ba-43e6-a93a-f445b7e8a1e2/format>
4545

4646
It returns the format of the bitstream
4747

@@ -51,7 +51,7 @@ Update the bitstream format of the bitstream
5151

5252
Sample CURL command:
5353
```
54-
curl -i -X PUT 'https://api7.dspace.org/server/api/core/bitstreams/6ba01288-8a5a-4acf-96f1-fd0730424a1f/format' -H 'Authorization: Bearer eyJhbGciO…' -H "Content-Type:text/uri-list" --data 'https://api7.dspace.org/server/api/core/bitstreamformats/6'
54+
curl -i -X PUT 'https://demo.dspace.org/server/api/core/bitstreams/6ba01288-8a5a-4acf-96f1-fd0730424a1f/format' -H 'Authorization: Bearer eyJhbGciO…' -H "Content-Type:text/uri-list" --data 'https://demo.dspace.org/server/api/core/bitstreamformats/6'
5555
```
5656

5757
The uri-list should always contain exactly 1 bitstream format. This bitstream format will be assigned to the bitstream
@@ -73,7 +73,7 @@ Keep in mind that there's a change to dc.format in the API related to bitstream
7373
### Bundle
7474
**GET /api/core/bitstreams/<:uuid>/bundle**
7575

76-
Example: <https://api7.dspace.org/server/#https://api7.dspace.org/server/api/core/bitstreams/8d33bdfb-e7ba-43e6-a93a-f445b7e8a1e2/bundle>
76+
Example: <https://demo.dspace.org/server/#https://demo.dspace.org/server/api/core/bitstreams/8d33bdfb-e7ba-43e6-a93a-f445b7e8a1e2/bundle>
7777

7878
It returns the bundle of the bitstream
7979

@@ -83,7 +83,7 @@ Move the bitstream to another bundle
8383

8484
Sample CURL command:
8585
```
86-
curl -i -X PUT 'https://api7.dspace.org/server/api/core/bitstreams/6ba01288-8a5a-4acf-96f1-fd0730424a1f/bundle' -H 'Authorization: Bearer eyJhbGciO…' -H "Content-Type:text/uri-list" --data 'https://api7.dspace.org/server/api/core/bundles/0b3c0ebf-83bc-4017-afa1-9df37a1a065c'
86+
curl -i -X PUT 'https://demo.dspace.org/server/api/core/bitstreams/6ba01288-8a5a-4acf-96f1-fd0730424a1f/bundle' -H 'Authorization: Bearer eyJhbGciO…' -H "Content-Type:text/uri-list" --data 'https://demo.dspace.org/server/api/core/bundles/0b3c0ebf-83bc-4017-afa1-9df37a1a065c'
8787
```
8888

8989
The uri-list should always contain exactly 1 bitstream format. This bitstream format will be assigned to the bitstream
@@ -98,7 +98,7 @@ Error codes:
9898
### Content
9999
**/api/core/bitstreams/<:uuid>/content**
100100

101-
Example: <https://api7.dspace.org/server/api/core/bitstreams/8d33bdfb-e7ba-43e6-a93a-f445b7e8a1e2/content>
101+
Example: <https://demo.dspace.org/server/api/core/bitstreams/8d33bdfb-e7ba-43e6-a93a-f445b7e8a1e2/content>
102102

103103
It returns the actual content (bits) described by the bitstream
104104

browses.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,30 @@ Example: <https://{dspace.server.url}/api/discover/browses>
1010

1111
## Browse types
1212

13+
There are currently types of browse, each behaving differently:
14+
* `valueList`:
15+
* The browse index has two levels
16+
* The 1st level shows the list of entries like author names, subjects, types, etc
17+
* The second level is the actual list of items linked to a specific entry
18+
* The `items` link is not used
19+
* The `entries` link is used to render the author names, subjects, types, etc
20+
* The `vocabulary` link is not used
21+
* `flatBrowse`:
22+
* The browse index has one level: the full list of items
23+
* The `items` link is used to render this list of items
24+
* The `entries` link is not used
25+
* The `vocabulary` link is not used
26+
* `hierarchicalBrowse`:
27+
* The browse index displays the vocabulary tree
28+
* The 1st level shows the tree
29+
* The second level is the actual list of items linked to a specific entry
30+
* The `items` link is not used
31+
* The `entries` link is not used
32+
* The `vocabulary` link is used to render the tree
33+
Example: <https://{dspace.server.url}/api/discover/browses>
34+
35+
## Browse types
36+
1337
There are currently types of browse, each behaving differently:
1438
* `valueList`:
1539
* The browse index has two levels
@@ -157,7 +181,7 @@ It returns a collection of BrowseEntryResource the JSON document looks like
157181
"count": 1,
158182
"_links": {
159183
"items": {
160-
"href": "https://api7.dspace.org/server/api/discover/browses/author/items?filterValue=Arulmozhiyal, Ramaswamy"
184+
"href": "https://demo.dspace.org/server/api/discover/browses/author/items?filterValue=Arulmozhiyal, Ramaswamy"
161185
}
162186
}
163187
},

bundles.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ Provide detailed information about a specific bundle. A sample JSON response doc
2929
"type": "bundle",
3030
"_links" : {
3131
"primarybitstream" : {
32-
"href" : "https://api7.dspace.org/server/api/core/bitstreams/ac49f361-4ffd-47a4-8eb2-e6c73c3f3e76"
32+
"href" : "https://demo.dspace.org/server/api/core/bitstreams/ac49f361-4ffd-47a4-8eb2-e6c73c3f3e76"
3333
},
3434
"bitstreams" : {
35-
"href" : "https://api7.dspace.org/server/api/core/bundles/d3599177-0408-403b-9f8d-d300edd79edb/bitstreams"
35+
"href" : "https://demo.dspace.org/server/api/core/bundles/d3599177-0408-403b-9f8d-d300edd79edb/bitstreams"
3636
},
3737
"item" : {
38-
"href" : "https://api7.dspace.org/server/api/core/bundles/d3599177-0408-403b-9f8d-d300edd79edb/item"
38+
"href" : "https://demo.dspace.org/server/api/core/bundles/d3599177-0408-403b-9f8d-d300edd79edb/item"
3939
},
4040
"self" : {
41-
"href" : "https://api7.dspace.org/server/api/core/bundles/d3599177-0408-403b-9f8d-d300edd79edb"
41+
"href" : "https://demo.dspace.org/server/api/core/bundles/d3599177-0408-403b-9f8d-d300edd79edb"
4242
}
4343
},
4444
"_embedded" : {
@@ -79,13 +79,13 @@ Provide detailed information about a specific bundle. A sample JSON response doc
7979
"type" : "bitstream",
8080
"_links" : {
8181
"content" : {
82-
"href" : "https://api7.dspace.org/server/api/core/bitstreams/1ce6db0e-662f-4a13-ba87-c371ad664b14/content"
82+
"href" : "https://demo.dspace.org/server/api/core/bitstreams/1ce6db0e-662f-4a13-ba87-c371ad664b14/content"
8383
},
8484
"format" : {
85-
"href" : "https://api7.dspace.org/server/api/core/bitstreams/1ce6db0e-662f-4a13-ba87-c371ad664b14/format"
85+
"href" : "https://demo.dspace.org/server/api/core/bitstreams/1ce6db0e-662f-4a13-ba87-c371ad664b14/format"
8686
},
8787
"self" : {
88-
"href" : "https://api7.dspace.org/server/api/core/bitstreams/1ce6db0e-662f-4a13-ba87-c371ad664b14"
88+
"href" : "https://demo.dspace.org/server/api/core/bitstreams/1ce6db0e-662f-4a13-ba87-c371ad664b14"
8989
}
9090
}
9191
}, {
@@ -125,13 +125,13 @@ Provide detailed information about a specific bundle. A sample JSON response doc
125125
"type" : "bitstream",
126126
"_links" : {
127127
"content" : {
128-
"href" : "https://api7.dspace.org/server/api/core/bitstreams/4dd9621f-a464-4192-bc17-d70f68845bdc/content"
128+
"href" : "https://demo.dspace.org/server/api/core/bitstreams/4dd9621f-a464-4192-bc17-d70f68845bdc/content"
129129
},
130130
"format" : {
131-
"href" : "https://api7.dspace.org/server/api/core/bitstreams/4dd9621f-a464-4192-bc17-d70f68845bdc/format"
131+
"href" : "https://demo.dspace.org/server/api/core/bitstreams/4dd9621f-a464-4192-bc17-d70f68845bdc/format"
132132
},
133133
"self" : {
134-
"href" : "https://api7.dspace.org/server/api/core/bitstreams/4dd9621f-a464-4192-bc17-d70f68845bdc"
134+
"href" : "https://demo.dspace.org/server/api/core/bitstreams/4dd9621f-a464-4192-bc17-d70f68845bdc"
135135
}
136136
}
137137
}
@@ -157,7 +157,7 @@ Deleting a bundle will delete all bitstreams in the bundle
157157

158158
**GET /api/core/bundles/<:uuid>/bitstreams**
159159

160-
Example: <https://api7.dspace.org/server/#https://api7.dspace.org/server/api/core/bundles/d3599177-0408-403b-9f8d-d300edd79edb/bitstreams>
160+
Example: <https://demo.dspace.org/server/#https://demo.dspace.org/server/api/core/bundles/d3599177-0408-403b-9f8d-d300edd79edb/bitstreams>
161161

162162
It returns the bitstreams within this bundle. See the [bitstream endpoint](bitstreams.md#Single-Bitstream) for more info
163163

@@ -168,11 +168,11 @@ The supported parameters are:
168168

169169
TODO: the item has to be known as well when creating a new bitstream. See https://jira.duraspace.org/browse/DS-4317?focusedCommentId=63099&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-63099
170170

171-
Example: <https://api7.dspace.org/server/#https://api7.dspace.org/server/api/core/bundles/d3599177-0408-403b-9f8d-d300edd79edb/bitstreams>
171+
Example: <https://demo.dspace.org/server/#https://demo.dspace.org/server/api/core/bundles/d3599177-0408-403b-9f8d-d300edd79edb/bitstreams>
172172

173173
Curl example:
174174
```
175-
curl 'https://api7.dspace.org/server/api/core/bundles/d3599177-0408-403b-9f8d-d300edd79edb/bitstreams' \
175+
curl 'https://demo.dspace.org/server/api/core/bundles/d3599177-0408-403b-9f8d-d300edd79edb/bitstreams' \
176176
-XPOST -H 'Content-Type: multipart/form-data' \
177177
-H 'Authorization: Bearer eyJhbGciOiJI...' \
178178
-F "file=@Downloads/test.html" \
@@ -231,15 +231,15 @@ Current list of bitstreams:
231231
"uuid" : "1ce6db0e-662f-4a13-ba87-c371ad664b14",
232232
"_links" : {
233233
"self" : {
234-
"href" : "https://api7.dspace.org/server/api/core/bitstreams/1ce6db0e-662f-4a13-ba87-c371ad664b14"
234+
"href" : "https://demo.dspace.org/server/api/core/bitstreams/1ce6db0e-662f-4a13-ba87-c371ad664b14"
235235
}
236236
}
237237
}, {
238238
"id" : "4dd9621f-a464-4192-bc17-d70f68845bdc",
239239
"uuid" : "4dd9621f-a464-4192-bc17-d70f68845bdc",
240240
"_links" : {
241241
"self" : {
242-
"href" : "https://api7.dspace.org/server/api/core/bitstreams/4dd9621f-a464-4192-bc17-d70f68845bdc"
242+
"href" : "https://demo.dspace.org/server/api/core/bitstreams/4dd9621f-a464-4192-bc17-d70f68845bdc"
243243
}
244244
}
245245
}
@@ -269,7 +269,7 @@ New list of bitstreams:
269269
"uuid" : "4dd9621f-a464-4192-bc17-d70f68845bdc",
270270
"_links" : {
271271
"self" : {
272-
"href" : "https://api7.dspace.org/server/api/core/bitstreams/4dd9621f-a464-4192-bc17-d70f68845bdc"
272+
"href" : "https://demo.dspace.org/server/api/core/bitstreams/4dd9621f-a464-4192-bc17-d70f68845bdc"
273273
}
274274
}
275275
},
@@ -278,7 +278,7 @@ New list of bitstreams:
278278
"uuid" : "1ce6db0e-662f-4a13-ba87-c371ad664b14",
279279
"_links" : {
280280
"self" : {
281-
"href" : "https://api7.dspace.org/server/api/core/bitstreams/1ce6db0e-662f-4a13-ba87-c371ad664b14"
281+
"href" : "https://demo.dspace.org/server/api/core/bitstreams/1ce6db0e-662f-4a13-ba87-c371ad664b14"
282282
}
283283
}
284284
}

claimedtasks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ If successful a 201 code will be returned along with the new claimedtask. The po
9595

9696
An example curl call:
9797
```
98-
curl -i -X POST https://api7.dspace.org/server/api/workflow/claimedtasks
98+
curl -i -X POST https://demo.dspace.org/server/api/workflow/claimedtasks
9999
\ -H "Content-Type:text/uri-list" \
100-
--data "https://api7.dspace.org/server/api/workflow/pooltasks/1"
100+
--data "https://demo.dspace.org/server/api/workflow/pooltasks/1"
101101
```
102102

103103
Return codes:

collections.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Provide access to the list of collections (DBMS based).
88

9-
Example: <https://api7.dspace.org/server/#/server/api/core/collections>
9+
Example: <https://demo.dspace.org/server/#/server/api/core/collections>
1010

1111
## Single Collection
1212
**/api/core/collections/<:uuid>**
@@ -263,7 +263,7 @@ Collection metadata can be modified as described in [Modifying metadata via Patc
263263
#### Retrieve Logo
264264
**GET /api/core/collections/<:uuid>/logo**
265265

266-
Example: <https://api7.dspace.org/server/#https://api7.dspace.org/server/api/core/collections/1c11f3f1-ba1f-4f36-908a-3f1ea9a557eb/logo>
266+
Example: <https://demo.dspace.org/server/#https://demo.dspace.org/server/api/core/collections/1c11f3f1-ba1f-4f36-908a-3f1ea9a557eb/logo>
267267

268268
It returns the bitstream representing the logo of this collection. [See the bitstream endpoint for more info](bitstreams.md#Single Bitstream)
269269

@@ -274,7 +274,7 @@ To be used on a collection without a logo
274274

275275
Curl example:
276276
```
277-
curl 'https://api7.dspace.org/server/api/core/collections/1c11f3f1-ba1f-4f36-908a-3f1ea9a557eb/logo' \
277+
curl 'https://demo.dspace.org/server/api/core/collections/1c11f3f1-ba1f-4f36-908a-3f1ea9a557eb/logo' \
278278
-XPOST -H 'Content-Type: multipart/form-data' \
279279
-H 'Authorization: Bearer eyJhbGciOiJI...' \
280280
-F "file=@Downloads/test.png"
@@ -326,7 +326,7 @@ Return information about the license template in use by the collection. The json
326326
#### Retrieve Item template
327327
**GET /api/core/collections/<:uuid>/itemtemplate**
328328

329-
Example: <https://api7.dspace.org/server/#https://api7.dspace.org/server/api/core/collections/1c11f3f1-ba1f-4f36-908a-3f1ea9a557eb/itemtemplate>
329+
Example: <https://demo.dspace.org/server/#https://demo.dspace.org/server/api/core/collections/1c11f3f1-ba1f-4f36-908a-3f1ea9a557eb/itemtemplate>
330330

331331
It returns the item representing the item template of this collection. [See the item endpoint for more info](items.md#Single Item)
332332

@@ -396,15 +396,15 @@ The json representation is as follow
396396
"type": "resourcePolicy",
397397
"_links": {
398398
"self": {
399-
"href": "https://api7.dspace.org/server/api/authz/resourcePolicies/2844"
399+
"href": "https://demo.dspace.org/server/api/authz/resourcePolicies/2844"
400400
}
401401
}
402402
}
403403
]
404404
},
405405
"_links": {
406406
"self": {
407-
"href": "https://api7.dspace.org/server/api/core/collections/5ad50035-ca22-4a4d-84ca-d5132f34f588/defaultAccessConditions"
407+
"href": "https://demo.dspace.org/server/api/core/collections/5ad50035-ca22-4a4d-84ca-d5132f34f588/defaultAccessConditions"
408408
}
409409
},
410410
"page": {
@@ -460,7 +460,7 @@ A sample json response:
460460
"last_harvested": null,
461461
"_links": {
462462
"self": {
463-
"href": "https://api7.dspace.org/server/api/core/collections/6f944500-c300-449a-9023-a5ad8bd21160/harvester"
463+
"href": "https://demo.dspace.org/server/api/core/collections/6f944500-c300-449a-9023-a5ad8bd21160/harvester"
464464
}
465465
},
466466
"_embedded": {
@@ -484,7 +484,7 @@ A sample json response:
484484
],
485485
"_links": {
486486
"self": {
487-
"href": "https://api7.dspace.org/server/api/config/harvestermetadata"
487+
"href": "https://demo.dspace.org/server/api/config/harvestermetadata"
488488
}
489489
}
490490
}
@@ -507,7 +507,7 @@ A sample json response if no harvesting is enabled:
507507
"last_harvested": null,
508508
"_links": {
509509
"self": {
510-
"href": "https://api7.dspace.org/server/api/core/collections/6f944500-c300-449a-9023-a5ad8bd21160/harvester"
510+
"href": "https://demo.dspace.org/server/api/core/collections/6f944500-c300-449a-9023-a5ad8bd21160/harvester"
511511
}
512512
},
513513
"_embedded": {
@@ -531,7 +531,7 @@ A sample json response if no harvesting is enabled:
531531
],
532532
"_links": {
533533
"self": {
534-
"href": "https://api7.dspace.org/server/api/config/harvestermetadata"
534+
"href": "https://demo.dspace.org/server/api/config/harvestermetadata"
535535
}
536536
}
537537
}

communities.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Provide access to the communities (DBMS based). It returns the list of existent communities.
88

9-
Example: <https://api7.dspace.org/server/#/server/api/core/communities>
9+
Example: <https://demo.dspace.org/server/#/server/api/core/communities>
1010

1111
## Single Community
1212
**/api/core/communities/<:uuid>**
@@ -97,7 +97,7 @@ The supported parameters are:
9797
### Collections
9898
**/api/core/communities/<:uuid>/collections**
9999

100-
Example: <https://api7.dspace.org/server/#https://api7.dspace.org/server/api/core/communities/7669c72a-3f2a-451f-a3b9-9210e7a4c02f/collections>
100+
Example: <https://demo.dspace.org/server/#https://demo.dspace.org/server/api/core/communities/7669c72a-3f2a-451f-a3b9-9210e7a4c02f/collections>
101101

102102
It returns the collections within this community
103103

@@ -108,7 +108,7 @@ The supported parameters are:
108108
#### Retrieve Logo
109109
**GET /api/core/communities/<:uuid>/logo**
110110

111-
Example: <https://api7.dspace.org/server/#https://api7.dspace.org/server/api/core/communities/7669c72a-3f2a-451f-a3b9-9210e7a4c02f/logo>
111+
Example: <https://demo.dspace.org/server/#https://demo.dspace.org/server/api/core/communities/7669c72a-3f2a-451f-a3b9-9210e7a4c02f/logo>
112112

113113
It returns the bitstream representing the logo of this community. [See the bitstream endpoint for more info](bitstreams.md#Single Bitstream)
114114

@@ -119,7 +119,7 @@ To be used on a community without a logo
119119

120120
Curl example:
121121
```
122-
curl 'https://api7.dspace.org/server/api/core/communities/1c11f3f1-ba1f-4f36-908a-3f1ea9a557eb/logo' \
122+
curl 'https://demo.dspace.org/server/api/core/communities/1c11f3f1-ba1f-4f36-908a-3f1ea9a557eb/logo' \
123123
-XPOST -H 'Content-Type: multipart/form-data' \
124124
-H 'Authorization: Bearer eyJhbGciOiJI...' \
125125
-F "file=@Downloads/test.png"
@@ -149,7 +149,7 @@ To be used on a community with a logo
149149

150150
Curl example:
151151
```
152-
curl 'https://api7.dspace.org/server/api/core/communities/1c11f3f1-ba1f-4f36-908a-3f1ea9a557eb/logo' \
152+
curl 'https://demo.dspace.org/server/api/core/communities/1c11f3f1-ba1f-4f36-908a-3f1ea9a557eb/logo' \
153153
-XPUT -H 'Content-Type: multipart/form-data' \
154154
-H 'Authorization: Bearer eyJhbGciOiJI...' \
155155
-F "file=@Downloads/test.png"
@@ -179,7 +179,7 @@ To be used on a community with a logo
179179

180180
Curl example:
181181
```
182-
curl 'https://api7.dspace.org/server/api/core/communities/1c11f3f1-ba1f-4f36-908a-3f1ea9a557eb/logo' \
182+
curl 'https://demo.dspace.org/server/api/core/communities/1c11f3f1-ba1f-4f36-908a-3f1ea9a557eb/logo' \
183183
-XDELETE \
184184
-H 'Authorization: Bearer eyJhbGciOiJI...'
185185
```

0 commit comments

Comments
 (0)