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

« Previous Version 13 Next »

This section explains the following REST operations regarding the resource which have been secured with OAuth 2.0.

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

ParameterExplanation
Resource pathPath of the resource
OAuth access tokenAuthorized access token per user for an hour by default
MIME typeMIME type of resource to be added. E.g., application/wsdl+xml media type for WSDL files.

Get the Content of a Resource

AttributesValues
HTTP MethodGET
Request URI/artifact{ resource path }
HTTP Request HeaderAuthorization: Bearer { OAuth access token }
Description                       Content of the requested resource
ResponseHTTP 200 OK
Response Typeapplication/octet-stream

Add a Resource

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

Authorization: Bearer { OAuth access token }

Media-Type: {Media type of the resource}

Request Content Type{ Mime type of the resource }
PayloadContent of the resource
DescriptionAdd the content of the resource sent via payload to the requested path at the URI.

Delete a Resource

Attributesvalues
HTTP MethodDELETE
Request URI/artifact/{ resource path }?user={ user name }
HTTP Request HeaderAuthorization: Bearer { OAuth access token }
DescriptionIt deletes the requested resource if it exists.

 

 

 

  • No labels