...
Note | ||
---|---|---|
| ||
Based on semantic mapping relationships the following is proposed for DSpace REST endpoints. The same would apply for 1.x and 2.x branches. |
More info: DSpace SandBox
Repository browsing
C | Verb | URL | Description | Mandatory parameters | Optional parameters | Sorting fields | Response Data | Formats | Response codes |
---|---|---|---|---|---|---|---|---|---|
| | | Returns a list of all communities on the system or return just top level communities. | - | | | By default contains item count, identifier, handle and name and other referencing data, or 204 if none. Additionaly, based on parameter | | 200, 400, 500 |
| | | Return information about | - | - | - | TBD | | 200, 204, 400, 500 |
• | | | Change description of | | - | - | TBD | | 200, 204, 500, 501 |
• | | | Add community to the system | | | - | TBD | | 200, 201, 204, 500, 501 |
| | | Return a list of all ancestor communities of the | - | idOnly=false | | Contains item count, identifiers, handle and name or 204 if id is already top-level. Additionaly, based on parameter idOnly=true the method returns only identifiers. | | 200, 204, 400, 500 |
| | | Returns a list of immediate sub-communities (children) of the | - | idOnly=false | | Contains item count, identifiers, handle and name or 204 if none. Additionaly, based on parameter | | 200, 204, 400, 500 |
| | | Return a list of collections in the | - | idOnly=false | | Contains item count, identifiers, name, archival status, last modification and handle of collections, or 204 if there are none of them. Additionaly with idOnly=true only identifiers are returned. | | 200, 204, 400, 500 |
| | | Return a list of all collections in the system. | - | idOnly=false | | Contains item count, identifiers, name and handle of collections, or 204 if | | 200, 204, 400, 500 |
| | | Return a list of all ancestor communities a collection with | - | idOnly=false | | Contains item count, identifier, name and handle of collections, or 204 if | | 200, 204, 400, 500 |
| | | Returns a list of all items from the collection | - | idOnly=false | | Contains full information info including name, submitter, collections related or 204 if there are none of them. In the case idOnly=true is used, return only identifiers of results. | | 200, 204, 400, 500 |
...
Comment: In this case it is not clear how to treat recent
part of endpoint. If we stick to semantic mapping, then it should look like /resource/id/mapping
, but recent
in this case obviously do not represent a mapping, but the property.
Comment #2: Semantic mapping presented in this case should be probably hardcoded for 1.x branch, but on abstraction level which enables easy replacement with some auto-discovery method prepared for 2.x and eventually backported to 1.x. This way we would be able to call something similar to /communities/id
or communities/id/capabilities
in order to get supported mappings (amongst other data).
Parameter | Description | ||||||
---|---|---|---|---|---|---|---|
topLevelOnly | returns only top level communities | ||||||
idOnly | if true return only the identifiers for the record |
...