Versions Compared

Key

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

...

  • Get the content of a collection.
  • Add a collection
  • Delete a given collection
Note

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

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

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

Get the content of a collection

Response Type
AttributesValues
HTTP MethodGET
Request URI http://<ip address>:<port>/restapi/resource/<collection path>artifact/{ collection path }
HTTP Request HeaderAuthorization: Bearer <OAuth { OAuth access token>token }
Response                      Content Description                 retrieves the content of the requested collectionJSON

Add a collection

Attributesvalues
HTTP MethodPUT
Request URIhttp://<ip address>:<port>/restapi/resource/<complete artifact/{ complete path of the collection to be added>added }
HTTP Request HeaderAuthorization: Bearer <OAuth { OAuth access token>token }
Request Content Typeapplication/atomcoll+xml
Response204 No Content - if Success/ 401 - if failsDescriptionIt adds the specified collection

Delete a collection

Attributesvalues
HTTP MethodDELETE
Request URI http://<ip address>:<port>/restapi/resource/<collection path>artifact/{ collection path }
HTTP Request HeaderAuthorization: Bearer <OAuth { OAuth access token>token }
Response204 No Content - if success/ 401 - if fails.

...

Please note the following points for the above requests.

...

DescriptionIt deletes the requested collection if exists.