---
updatedAt: 2025-01-10T10:50:58.000Z
agentTools:
  projectIndex: https://solvice.readme.io/llms.txt
---

# Demo

Demo of random generated TASK instance

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "TASK API",
    "description": "Welcome to the Solvice API! You can use our API to access Solvice API endpoints,\nwhich can get information on your solved jobs,\ntheir statuses and of course post new solve jobs.\n",
    "version": "2.0",
    "x-logo": {
      "altText": "Solvice platform"
    }
  },
  "servers": [
    {
      "url": "https://api.solvice.io",
      "description": "Production API"
    }
  ],
  "security": [
    {
      "apikey": []
    }
  ],
  "components": {
    "schemas": {
      "Availability": {
        "description": "Machine availability",
        "required": [
          "start",
          "end"
        ],
        "type": "object",
        "properties": {
          "start": {
            "format": "ISO8601 datetime string",
            "description": "start availability period",
            "type": "string",
            "example": "2023-12-31T06:00"
          },
          "end": {
            "format": "ISO8601 datetime string",
            "description": "end availability period",
            "type": "string",
            "example": "2023-12-31T12:00"
          }
        }
      },
      "Machine": {
        "description": "Machine, workstation",
        "required": [
          "name",
          "machineType",
          "availability"
        ],
        "type": "object",
        "properties": {
          "name": {
            "description": "Unique name",
            "type": "string",
            "example": "Drill station"
          },
          "machineType": {
            "description": "Type of the machine",
            "type": "string",
            "example": "drill"
          },
          "concurrency": {
            "format": "int32",
            "description": "number of operations that can be performed in parallel",
            "type": "integer",
            "example": 1,
            "nullable": true
          },
          "availability": {
            "description": "Availability of the machine",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Availability"
            }
          }
        }
      },
      "OnMachineOptions": {
        "type": "object",
        "properties": {
          "assignPersonnel": {
            "type": "boolean",
            "nullable": true
          },
          "triggerPersonnelChanges": {
            "type": "boolean",
            "nullable": true
          },
          "partialPlanning": {
            "type": "boolean",
            "nullable": true
          }
        }
      },
      "OnMachineRequest": {
        "description": "OnMachine request for solving, evaluating",
        "required": [
          "machines",
          "operations",
          "personnel"
        ],
        "type": "object",
        "properties": {
          "machines": {
            "description": "list of resources available to perform operations",
            "uniqueItems": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Machine"
            }
          },
          "operations": {
            "description": "list of operations to perform",
            "uniqueItems": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Operation"
            }
          },
          "personnel": {
            "description": "list of personnel to schedule",
            "uniqueItems": true,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Personnel"
            }
          },
          "hook": {
            "format": "uri",
            "type": "string",
            "nullable": true
          },
          "options": {
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/OnMachineOptions"
              }
            ],
            "nullable": true
          }
        }
      },
      "Operation": {
        "description": "Operation",
        "required": [
          "name",
          "processingTime",
          "machineType"
        ],
        "type": "object",
        "properties": {
          "name": {
            "description": "Unique name",
            "type": "string",
            "example": "Operation1"
          },
          "processingTime": {
            "format": "int64",
            "description": "Time required to complete the operation",
            "type": "integer",
            "example": 1
          },
          "machineType": {
            "description": "Type of the machine required",
            "type": "string",
            "example": "drill"
          },
          "order": {
            "description": "unique identifier of the order",
            "type": "string",
            "example": "order 1",
            "nullable": true
          },
          "allowedMachines": {
            "description": "List of machines that are allowed to execute this operation",
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "drill"
            ],
            "nullable": true
          },
          "predecessors": {
            "description": "operations that needs to be completed before this operation can be executed",
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "Operation 0",
              "Operation 01"
            ],
            "nullable": true
          },
          "plannedMachine": {
            "description": "the name of the machine that must execute this operation",
            "type": "string",
            "example": "drill station 1",
            "nullable": true
          }
        }
      },
      "Personnel": {
        "description": "Description of an employee",
        "required": [
          "name",
          "skills",
          "availability"
        ],
        "type": "object",
        "properties": {
          "name": {
            "description": "Unique name",
            "type": "string",
            "example": "Drill station"
          },
          "skills": {
            "description": "list of abilities of the employee",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Skill1"
            },
            "nullable": true
          },
          "team": {
            "description": "team to which the employee belogns",
            "type": "string",
            "example": "team1",
            "nullable": true
          },
          "availability": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Availability"
            }
          }
        }
      },
      "Skill1": {
        "description": "Description of the skill level in operate a machine",
        "required": [
          "machine",
          "machineType"
        ],
        "type": "object",
        "properties": {
          "machineType": {
            "description": "unique name of a machine type",
            "type": "string",
            "example": "drill"
          },
          "experience": {
            "format": "int32",
            "description": "level of skill or experience possessed by the employee",
            "type": "integer",
            "example": 4,
            "nullable": true
          }
        }
      }
    },
    "securitySchemes": {
      "apikey": {
        "type": "apiKey",
        "description": "Api Key based authentication (apikey)",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "paths": {
    "/v2/task/demo": {
      "get": {
        "tags": [
          "Info"
        ],
        "summary": "Demo",
        "description": "Demo of random generated TASK instance",
        "operationId": "demoTask",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OnMachineRequest"
                }
              }
            }
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```