public interface ParentResource
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createChild(String id,
Bundle bundle,
List<String> accessors)
Create a subordinate resource.
|
javax.ws.rs.core.Response |
listChildren(String id,
boolean all)
List available resources subordinate to this item.
|
javax.ws.rs.core.Response listChildren(String id, boolean all) throws ItemNotFound
Example:
curl http://localhost:7474/ehri/[RESOURCE]/[ID]/list
ItemNotFoundjavax.ws.rs.core.Response createChild(String id, Bundle bundle, List<String> accessors) throws PermissionDenied, ValidationError, DeserializationError, ItemNotFound
id - The parent resource ID.bundle - A resource bundle.accessors - The users/groups who can access this item.PermissionDeniedValidationErrorDeserializationErrorItemNotFoundCopyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.