/

The building model process status

Get the status of building model process

GEThttps://virtserver.swaggerhub.com/strongcourage/MAIP/v1/build/
Response

Successful operation

Body
isRunningboolean
Example: true
lastBuildIdstring
Example: "fadfafewfwefwe"
configbuildConfig (object)
lastBuildAtstring
Example: "123243534534"
Request
const response = await fetch('https://virtserver.swaggerhub.com/strongcourage/MAIP/v1/build/', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "isRunning": true,
  "lastBuildId": "fadfafewfwefwe",
  "config": {
    "buildConfig": {
      "datasets": [
        {
          "datasetId": "my-dataset-01",
          "isAttack": true
        }
      ],
      "training_ratio": 0.7,
      "training_parameters": {
        "nb_epoch_cnn": 2,
        "nb_epoch_sae": 5,
        "batch_size_cnn": 32,
        "batch_size_sae": 16
      }
    }
  },
  "lastBuildAt": "123243534534"
}

Start building a model

Request building a model

POSThttps://virtserver.swaggerhub.com/strongcourage/MAIP/v1/build/
Body
buildConfigobject
Response

Successful operation

Body
isRunningboolean
Example: true
lastBuildIdstring
Example: "fadfafewfwefwe"
configbuildConfig (object)
lastBuildAtstring
Example: "123243534534"
Request
const response = await fetch('https://virtserver.swaggerhub.com/strongcourage/MAIP/v1/build/', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "isRunning": true,
  "lastBuildId": "fadfafewfwefwe",
  "config": {
    "buildConfig": {
      "datasets": [
        {
          "datasetId": "my-dataset-01",
          "isAttack": true
        }
      ],
      "training_ratio": 0.7,
      "training_parameters": {
        "nb_epoch_cnn": 2,
        "nb_epoch_sae": 5,
        "batch_size_cnn": 32,
        "batch_size_sae": 16
      }
    }
  },
  "lastBuildAt": "123243534534"
}