URNs managed by the URN-Service.
Returns the registration information for a URL.
Access: Unauthorized (public) access allowed.
| name | type | description | constraints |
|---|---|---|---|
| url | path | of the URL whose registration information should be returned. The URL must be base64 encoded | required |
| urn | path | whose URLs are queried | required |
| runas | query | optional login name whose identity is used to execute the request (only available to users with the RunAs privilege) |
| code | condition |
|---|---|
| 200 | if the request was completed successfully |
| 401 | if the user is not authenticated (error code 401001) |
| 404 | if no URL could be found for id (error code 404001) |
| media type | data type | description |
|---|---|---|
| application/json | Url (JSON) | the registration information of the URL |
GET /urns/urn/{urn}/urls/base64/{url}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"self" : "http://example.org/urns/urn/urn:nbn:de:101:1-200911171195/urls/base64/aHR0cDovL2V4YW1wbGUub3JnL3RoZS1kb2N1bWVudC5wZGY=",
"created" : "2017-03-02T15:23:16.123Z",
"lastModified" : "2017-03-02T15:23:16.123Z",
"url" : "http://example.org/the-document.pdf",
"urn" : "http://example.org/urns/urn/urn:nbn:de:101:1-200911171195",
"owner" : "http://example.org/organisations/id/1516",
"priority" : 100
}
Deletes a URL registration.
A URL can only be deleted if it is not the last URL registered for this URN.
Access: Logged in organisations only for their own URLs.
| name | type | description | constraints |
|---|---|---|---|
| url | path | of the URL which should be deleted. The URL must be base64 encoded | required |
| urn | path | whose URLs are queried | required |
| runas | query | optional login name whose identity is used to execute the request (only available to users with the RunAs privilege) |
| code | condition |
|---|---|
| 204 | if the URL registration was deleted successfully |
| 401 | if the user is not authenticated (error code 401001) |
| 403 | if the user is not authorized to delete
|
| 404 | if the URL is not registered (error code 404001) |
DELETE /urns/urn/{urn}/urls/base64/{url}
Content-Type: */*
...
HTTP/1.1 204 No Content