All URIs are relative to http://localhost/api
Method | HTTP request | Description |
---|---|---|
deleteArtifact | DELETE /artifact/{id} | Delete an artifact |
downloadArtifact | GET /artifact/{id}/download | Download an artifact |
getArtifact | GET /artifact/{id} | Get a single artifact |
getArtifactList | GET /artifact | Get a (filtered) list of artifacts |
uploadArtifact | POST /artifact | Uploads a test run artifact |
viewArtifact | GET /artifact/{id}/view | Stream an artifact directly to the client/browser |
deleteArtifact(id)
Delete an artifact
import ibutsu from '@ibutsu/client';
let apiInstance = new ibutsu.ArtifactApi();
let id = "id_example"; // String | ID of artifact to delete
apiInstance.deleteArtifact(id).then(() => {
console.log('API called successfully.');
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of artifact to delete |
null (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
File downloadArtifact(id)
Download an artifact
import ibutsu from '@ibutsu/client';
let apiInstance = new ibutsu.ArtifactApi();
let id = "id_example"; // String | ID of artifact to return
apiInstance.downloadArtifact(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of artifact to return |
File
No authorization required
- Content-Type: Not defined
- Accept: text/plain, image/jpeg, image/png, image/gif, application/octet-stream
Artifact getArtifact(id)
Get a single artifact
import ibutsu from '@ibutsu/client';
let apiInstance = new ibutsu.ArtifactApi();
let id = "id_example"; // String | ID of artifact to return
apiInstance.getArtifact(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of artifact to return |
No authorization required
- Content-Type: Not defined
- Accept: application/json
ArtifactList getArtifactList(opts)
Get a (filtered) list of artifacts
import ibutsu from '@ibutsu/client';
let apiInstance = new ibutsu.ArtifactApi();
let opts = {
'resultId': "resultId_example", // String | The result ID to filter by
'page': 56, // Number | Set the page of items to return, defaults to 1
'pageSize': 56 // Number | Set the number of items per page, defaults to 25
};
apiInstance.getArtifactList(opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
resultId | String | The result ID to filter by | [optional] |
page | Number | Set the page of items to return, defaults to 1 | [optional] |
pageSize | Number | Set the number of items per page, defaults to 25 | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
Artifact uploadArtifact(resultId, filename, file, opts)
Uploads a test run artifact
import ibutsu from '@ibutsu/client';
let apiInstance = new ibutsu.ArtifactApi();
let resultId = "resultId_example"; // String | ID of result to attach artifact to
let filename = "filename_example"; // String | ID of pet to update
let file = "/path/to/file"; // File | file to upload
let opts = {
'additionalMetadata': null // Object | Additional data to pass to server
};
apiInstance.uploadArtifact(resultId, filename, file, opts).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
resultId | String | ID of result to attach artifact to | |
filename | String | ID of pet to update | |
file | File | file to upload | |
additionalMetadata | Object | Additional data to pass to server | [optional] |
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
File viewArtifact(id)
Stream an artifact directly to the client/browser
import ibutsu from '@ibutsu/client';
let apiInstance = new ibutsu.ArtifactApi();
let id = "id_example"; // String | ID of artifact to return
apiInstance.viewArtifact(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of artifact to return |
File
No authorization required
- Content-Type: Not defined
- Accept: text/plain, image/jpeg, image/png, image/gif, application/octet-stream