This section explains the following REST operations regarding the resource which have been secured with Basic Auth.
The following terms explain the meaning of the parameters passed with the following REST URIs
Parameter | Explanation |
---|---|
Resource path | Path of the resource |
MIME type | MIME type of resource to be added. E.g., application/wsdl+xml media type for WSDL files. |
Get the Content of a Resource
Attributes | Values |
---|---|
HTTP Method | GET |
Request URI | /artifact{ resource path } |
HTTP Request Header | Authorization: Basic { base64encoded(username:password) } |
Description | Content of the requested resource |
Response | HTTP 200 OK |
Response Type | application/octet-stream |
Add a Resource
Attributes | Values |
---|---|
HTTP Method | PUT |
Request URI | /artifact{ complete path of the resource to be added } |
HTTP Request Header | Authorization: Basic { base64encoded(username:password) } Media-Type: {Media type of the resource} |
Request Content Type | { Mime type of the resource } |
Payload | Content of the resource |
Response | HTTP 204 No content. |
Description | Add the content of the resource sent via payload to the requested path at the URI. |
Update a Resource
Attributes | Values |
---|---|
HTTP Method | PUT |
Request URI | /artifact{ complete path of the resource to be added } |
HTTP Request Header | Authorization: Basic { base64encoded(username:password) } Media-Type: {Media type of the resource} |
Payload | Content of the resource which is going to be updated |
Description | Update the resource |
Response | HTTP 204 No Content |
Delete a Resource
Attributes | Values |
---|---|
HTTP Method | DELETE |
Request URI | /artifact/{ resource path }?user={ user name } |
HTTP Request Header | Authorization: Basic { base64encoded(username:password) } |
Response | HTTP 204 No Content |
Description | It deletes the requested resource if it exists. |