Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents

Note

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

ParameterExplanation
collection Collection pathPath of the resource
OAuth access tokenAuthorized access token per user for an hour by default

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.

...

AttributesValues
HTTP MethodGET
Request URI/artifact{ collection path }
HTTP Request HeaderAuthorization: Bearer { OAuth access token }
ResponseHTTP 200 OK
Description                 Retrieves the content the paths of the requested collection

...

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

Authorization: Bearer { OAuth access token }

HTTP Request Header

Media-Type: application/atomcoll+xml

ResponseHTTP 204 No Content
DescriptionIt adds the specified collection if doesn't exist.

Delete a Collection

Attributesvalues
HTTP MethodDELETE
Request URI/artifact{ collection path }
HTTP Request HeaderAuthorization: Bearer { OAuth access token }
ResponseHTTP 204 No Content
DescriptionIt deletes the requested collection if it exists.

...