All URIs are relative to http://localhost/api
Method | HTTP request | Description |
---|---|---|
addImport | POST /import | Import a file into Ibutsu. This can be either a JUnit XML file, or an Ibutsu archive |
getImport | GET /import/{id} | Get the status of an import |
ModelImport addImport(importFile)
Import a file into Ibutsu. This can be either a JUnit XML file, or an Ibutsu archive
import ibutsu from '@ibutsu/client';
let apiInstance = new ibutsu.ImportApi();
let importFile = "/path/to/file"; // File | The file to import
apiInstance.addImport(importFile).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
importFile | File | The file to import |
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
ModelImport getImport(id)
Get the status of an import
import ibutsu from '@ibutsu/client';
let apiInstance = new ibutsu.ImportApi();
let id = "id_example"; // String | The ID of the import
apiInstance.getImport(id).then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
id | String | The ID of the import |
No authorization required
- Content-Type: Not defined
- Accept: application/json