{
  "algorithm": {
    "parameters": [
      {
        "name": "instanceId",
        "type": "string"
      },
      {
        "name": "takeInfo",
        "type": "StepTakeDescriptor"
      }
    ],
    "statements": [],
    "typeReturn": "StepInstance",
    "variables": []
  },
  "routing": {
    "method": "POST",
    "parameters": [
      {
        "bind": "instanceId",
        "in": "Path",
        "name": "instanceId",
        "remarks": "instance Id"
      },
      {
        "bind": "takeInfo",
        "in": "Body",
        "name": "takeInfo"
      }
    ],
    "path": "/instances/{instanceId}/nextstep",
    "remarks": "Return next step to execute ",
    "responses": [
      {
        "httpStatus": "200",
        "remarks": "OK"
      },
      {
        "errorName": "BadRequest",
        "httpStatus": "400",
        "remarks": "Bad request"
      },
      {
        "errorName": "NotFound",
        "httpStatus": "404",
        "remarks": "not found"
      },
      {
        "errorName": "InternalServerError",
        "httpStatus": "500",
        "remarks": "Error"
      }
    ]
  }
}