/namespaces/suggestion Resource

Returns a suggestion for a new namespace name.

Access: System administrators only.

GET /namespaces/suggestion

Returns a suggestion for a new namespace name.

Access: System administrators only.

Request Parameters
name type description
runas query optional login name whose identity is used to execute the request (only available to users with the RunAs privilege)
Response Codes
code condition
200 if the request was completed successfully
401 if the user is not authenticated (error code 401001)
403 if the user is not authorized to get suggestions for namespace names (403001)
Response Body
media type data type description
application/json NamespaceSuggestion (JSON) a suggestion for a namespace name

Example

Request
GET /namespaces/suggestion
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "self" : "http://example.org/namespaces/suggestion",
  "suggestedName" : "urn:nbn:de:0815"
}