Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This section explains the following REST operations regarding the collection which has been secured with Basic Auth.

The following terms explain the meaning of the parameters passed with the below REST URIs

ParameterExplanation
Collection pathPath of the resource

When a user adds a collection to the registry, the user has to specify the Media-Type of the collection in the request (as a Header). The Media-Type for the collection is "application/atomcoll+xml". If the user specifies a different content-type for the collection, the resource  to be added won't be considered as a collection.

Get the Content of a Collection

AttributesValues
HTTP MethodGET
Request URI/artifact{ collection path }
HTTP Request HeaderAuthorization: Basic { base64encoded(username:password) }
ResponseHTTP 200 OK
Response typeapplication/json
Description                 Retrieves the content the paths of the requested collection

Add a Collection

Attributesvalues
HTTP MethodPUT
Request URI/artifact{ complete path of the collection to be added }
HTTP Request Header

Authorization: Basic { base64encoded(username:password) }

Media-Type: application/atomcoll+xml

ResponseHTTP 204 No Content
Response typeapplication/json
DescriptionIt adds the specified collection if doesn't exist.

Delete a Collection

Attributesvalues
HTTP MethodDELETE
Request URI/artifact{ collection path }
HTTP Request HeaderAuthorization: Basic { base64encoded(username:password) }
ResponseHTTP 204 No Content
Response typeapplication/json
DescriptionIt deletes the requested collection if it exists.
  • No labels