Get handle service
Returns the properties of a specific handle service.
This operation requires oz_handle_services_view admin privilege or
handle service membership.
Example cURL requests
Get handle services
curl -u username:password -X GET \
https://$HOST/api/v3/handle_services/$HANDLE_SERVICE_ID
{
"handleServiceId": "0fe7c8a20ffdf07480c46f084bc3b8d5",
"name": "MyCommunity Handle service",
"proxyEndpoint": "https://localhost:17000/handle_proxy",
"serviceProperties": {
"allowTemplateOverride": false,
"doiEndpoint": "/doi",
"host": "https://mds.test.datacite.org",
"identifierTemplate": "{{space.name}}-{{space.guid}}",
"mediaEndpoint": "/media",
"metadataEndpoint": "/metadata",
"password": "pa$$word",
"prefix": 10.5072,
"type": "DOI",
"username": "alice"
}
}
Path parameters
| Parameter | Type & Description |
|---|---|
| id required | string Handle service Id. |
Request Examples
onezone-rest-cli getHandleService id=a4d3bc73aada63052310652d421609f1Responses
The details of specific handle service.
| Property | Type & Description | ||
|---|---|---|---|
handleServiceId string Handle service Id. | |||
name string The user defined name of the service. | |||
proxyEndpoint string The endpoint of the Handle service proxy, i.e. a service which implements logic specific for particular Handle service. | |||
serviceProperties object (HandleServiceProperties) An abstract type for Handle identifier services properties.
| |||
Example
{
"handleServiceId": "cdca849d2b71bc7205f3eab686cf62fb",
"name": "MyCommunity Handle service",
"proxyEndpoint": "https://localhost:17000/handle_proxy",
"serviceProperties": {
"type": "DOI",
"host": "https://mds.test.datacite.org",
"doiEndpoint": "/doi",
"metadataEndpoint": "/metadata",
"mediaEndpoint": "/media",
"prefix": 10.5072,
"username": "alice",
"password": "pa$$word",
"identifierTemplate": "{{space.name}}-{{space.guid}}",
"allowTemplateOverride": false
}
}Invalid request.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authentication error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Authorization error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Resource not found.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Internal server Error.
| Property | Type & Description | ||||||
|---|---|---|---|---|---|---|---|
error object Object describing an error.
| |||||||
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}