URNs managed by the URN-Service.
Returns a list of the caller's URLs on this URN.
The list of URLs is ordered by priority (see RESTUrlRepresentation#getPriority().
Access: Logged in organisations only.
name | type | description | constraints |
---|---|---|---|
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 the URN is not registered (error code 404001) |
media type | data type | description |
---|---|---|
application/json | Collection (JSON) | a Collection of Urls. |
GET /urns/urn/{urn}/my-urls
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"self" : "http://example.org/collection",
"totalItems" : 42,
"items" : [ { }, { } ]
}
Replaces all URLs which belong to the current organisation with the URLs sent. A change of the priority value with the URI-String remaining the same is ignored.
After the replace operation there must be at least one URL be still registered with the URN. Otherwise the replace request is not executed.
Access: Logged in organisations only.
name | type | description | constraints |
---|---|---|---|
urn | path | whose URLs are replaced | required |
runas | query | optional login name whose identity is used to execute the request (only available to users with the RunAs privilege) |
media type | data type | description |
---|---|---|
application/json | array of ReplaceUrlRequest (JSON) | the new list of URLs for this organisation. |
application/merge-patch+json | array of ReplaceUrlRequest (JSON) |
code | condition |
---|---|
401 | if the user is not authenticated (error code 401001) |
404 | if the URN is not registered (error code 404001) |
PATCH /urns/urn/{urn}/my-urls
Content-Type: application/json
[ {
"url" : "...",
"priority" : 100
} ]
HTTP/1.1 200 OK