{
  "x-generator": "NSwag v14.6.3.0 (NJsonSchema v11.5.2.0 (Newtonsoft.Json v13.0.0.0))",
  "swagger": "2.0",
  "info": {
    "title": "IOTool WebAPI",
    "description": "REST API for IOTool.",
    "version": "v1"
  },
  "host": "iotool.data.dnv.com",
  "schemes": [
    "https"
  ],
  "paths": {
    "/api/contexts": {
      "get": {
        "tags": [
          "Contexts"
        ],
        "summary": "Logged in user allowed azure DevOps repositories | ONT ADM Will get all repositories with isExtensive",
        "operationId": "Contexts_Get",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "boolean",
            "name": "isExtensive",
            "in": "query",
            "default": false,
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "List of Repository",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/ContextResponseDto"
              }
            }
          },
          "403": {
            "description": "When PAT token has expired"
          }
        }
      },
      "post": {
        "tags": [
          "Contexts"
        ],
        "summary": "Create a new context.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM`</i></b>",
        "operationId": "Contexts_CreateContext",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "request",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ContextCreateRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "When the context is created successfully.",
            "schema": {
              "$ref": "#/definitions/ContextCreateResponseDto"
            }
          },
          "404": {
            "description": "If the specified hosting identifier is not found."
          },
          "400": {
            "description": "If the request is invalid or the operation cannot be completed."
          },
          "500": {
            "description": "If an internal server error occurs during the operation."
          }
        }
      }
    },
    "/api/contexts/{contextId}/workspaces": {
      "get": {
        "tags": [
          "Contexts"
        ],
        "summary": "List of branches which allowed can be used as source branch | user created branch where logged in user is author",
        "operationId": "Contexts_GetSourceWorkspacesByContext",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "contextId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/CurrentUserSourceWorkspaceResponseDto"
            }
          }
        }
      }
    },
    "/api/contexts/{contextId}/initiate-identifiers": {
      "post": {
        "tags": [
          "Contexts"
        ],
        "summary": "(Mock API - No Implementation for now) Generate Identifiers for the specified context and request.",
        "description": "This endpoint generates identifiers based on the provided request and the specified context.\nThe generated identifiers are returned in the response.",
        "operationId": "Contexts_InitiateIdentifier",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "contextId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the context.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the list of generated identifiers.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/SourceWorkspaceResponseDto"
              }
            }
          },
          "404": {
            "description": "If the specified context is not found."
          },
          "400": {
            "description": "If the request is invalid or the operation cannot be completed."
          },
          "500": {
            "description": "If an internal server error occurs during the operation."
          }
        }
      }
    },
    "/api/contexts/{contextId}/identifiers": {
      "get": {
        "tags": [
          "Contexts"
        ],
        "summary": "Retrieves a list of identifiers for the specified context.",
        "description": "This endpoint retrieves a collection of identifiers associated with the specified context.\nThe identifiers are returned in the response as a list of IdentifierResponseDto.",
        "operationId": "Contexts_GetIdentifier",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "contextId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the context.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the list of identifiers for the specified context.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/IdentifierResponseDto"
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Contexts"
        ],
        "summary": "Adds identifiers to a specific context.",
        "description": "**Key Points:**\n- This endpoint adds the specified identifiers to the context identified by contextId.\n- **Important:** This endpoint removes all existing identifiers associated with the provided contextId from the database and inserts the newly passed records.\n- If you intend to add new identifiers along with existing records, you must include the existing records in the request.\n- To retrieve existing records, utilize the GET endpoint: `api/contexts/{contextId}/identifiers`.\n\n <b><i>Role(s) required: `CTXADM,ONTADM`</i></b>",
        "operationId": "Contexts_AddContextIdentifiers",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "contextId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the context.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "identifiers",
            "in": "body",
            "required": true,
            "description": "The list of identifiers to be added to the context.",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "201": {
            "description": "Indicates that the identifiers were successfully added to the context."
          }
        }
      }
    },
    "/api/contexts/{contextId}/users": {
      "post": {
        "tags": [
          "Contexts"
        ],
        "summary": "Add user contexts for a specified context ID.",
        "description": "This API removes all existing user contexts associated with the provided contextId from the database and inserts the newly passed records.\nIf you intend to add new users along with existing records, you must include the existing records in the request.\nTo retrieve existing records, utilize the GET endpoint: `api/contexts/{contextId}/user-contexts`\n\n <b><i>Role(s) required: `CTXADM,ONTADM`</i></b>",
        "operationId": "Contexts_AddOrUpdateUserContext",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "contextId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the context.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The collection of user context data to add or update.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/UserContextRequestDto"
              }
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Indicates that the user contexts were added or updated successfully.",
            "schema": {
              "$ref": "#/definitions/UserAssignResponseDto"
            }
          }
        }
      },
      "get": {
        "tags": [
          "Contexts"
        ],
        "summary": "Retrieves user contexts associated with a specified context ID. If a user has context permission but their role is ONTADM, they will not be included in the response, as all ONTADM users have all context permissions.",
        "operationId": "Contexts_UserContext",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "contextId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the context.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the user contexts successfully.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/UserContextResponseDto"
              }
            }
          }
        }
      }
    },
    "/api/contexts/{hostingIdentifierId}": {
      "get": {
        "tags": [
          "Contexts"
        ],
        "summary": "Retrieves available contexts associated with a specified hosting identifier and personal access token (PAT).",
        "operationId": "Contexts_GetAvailableContextByPat",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "integer",
            "name": "hostingIdentifierId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the hosting service or platform.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "pat",
            "in": "header",
            "description": "The Personal Access Token (PAT) used to authenticate the request.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns a collection of available contexts successfully.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/AvailableContextResponseDto"
              }
            }
          },
          "404": {
            "description": "If no available hosting hostingIdentifier for the provided hostingIdentifierId."
          },
          "500": {
            "description": "If an internal server error occurs while retrieving the contexts."
          }
        }
      }
    },
    "/api/contexts/{id}": {
      "delete": {
        "tags": [
          "Contexts"
        ],
        "summary": "Deletes the context with the specified identifier.",
        "description": "This API removes all workspace and context child entity in a background process.\n\n <b><i>Role(s) required: `ONTADM`</i></b>",
        "operationId": "Contexts_Delete",
        "parameters": [
          {
            "type": "string",
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the context to be deleted.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "The context was successfully deleted."
          },
          "500": {
            "description": "An internal server error occurred while attempting to delete the context."
          }
        }
      }
    },
    "/api/contexts/{id}/retry": {
      "post": {
        "tags": [
          "Contexts"
        ],
        "summary": "Retry a failed context creation.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM`</i></b>",
        "operationId": "Contexts_RetryContextCreation",
        "parameters": [
          {
            "type": "string",
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the context to retry.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "The context creation retry was successfully initiated."
          },
          "404": {
            "description": "If the specified context is not found."
          },
          "400": {
            "description": "If the context is not in a failed state."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/data-files/{fileName}": {
      "put": {
        "tags": [
          "DataFiles"
        ],
        "summary": "Data Files Update with Http Put Request",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "DataFiles_UpdateDataFiles",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "dataFilesRequestDto",
            "in": "body",
            "required": true,
            "description": "Data File Request Json Body",
            "schema": {
              "$ref": "#/definitions/DataFilesRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "fileName",
            "in": "path",
            "required": true,
            "description": "data file name which content will be updated",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Data Files Update successfully",
            "schema": {
              "$ref": "#/definitions/DataFileUpdateResponseDto"
            }
          },
          "400": {
            "description": "When Invalid Bad request will be initiated"
          },
          "404": {
            "description": "Resource Not Found Exception"
          },
          "403": {
            "description": "If user is not owner of the workspace"
          },
          "500": {
            "description": "Any kind of internal server error occurred"
          }
        }
      },
      "get": {
        "tags": [
          "DataFiles"
        ],
        "summary": "Data File Details by WorkspaceId and fileName",
        "operationId": "DataFiles_GetDataFileDetailsByFileName",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "User created workspace id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "fileName",
            "in": "path",
            "required": true,
            "description": "data file name which file will be in ontology engine resource directory",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Data Files Details will be pulled successfully",
            "schema": {
              "$ref": "#/definitions/DataFileDetailsResponseDto"
            }
          },
          "400": {
            "description": "When Invalid Bad request will be initiated"
          },
          "404": {
            "description": "Resource Not Found Exception"
          },
          "403": {
            "description": "If user is not owner of the workspace"
          },
          "500": {
            "description": "Any kind of internal server error occurred"
          }
        }
      },
      "delete": {
        "tags": [
          "DataFiles"
        ],
        "summary": "Deletes a data file specified by the file name and workspace ID.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "DataFiles_DeleteDataFiles",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the workspace containing the data file.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "fileName",
            "in": "path",
            "required": true,
            "description": "The name of the data file to be deleted.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "The file was deleted successfully."
          },
          "400": {
            "description": "Bad request, possibly due to invalid parameters."
          },
          "404": {
            "description": "File not found."
          },
          "403": {
            "description": "Forbidden, user does not have the required permissions."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      },
      "patch": {
        "tags": [
          "DataFiles"
        ],
        "summary": "Renames a data file specified by the file name and workspace ID.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "DataFiles_RenameDataFiles",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the workspace containing the data file.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "fileName",
            "in": "path",
            "required": true,
            "description": "The name of the data file to be renamed.",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The request object containing the new name for the data file.",
            "schema": {
              "$ref": "#/definitions/DataFileRenameRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "The file was renamed successfully."
          },
          "400": {
            "description": "Bad request, possibly due to invalid parameters."
          },
          "404": {
            "description": "File not found."
          },
          "403": {
            "description": "Forbidden, user does not have the required permissions."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/data-files": {
      "post": {
        "tags": [
          "DataFiles"
        ],
        "summary": "Data Files Update with Http Put Request",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "DataFiles_UploadDataFiles",
        "consumes": [
          "multipart/form-data"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "file",
            "name": "file",
            "in": "formData",
            "description": "data file which content will be uploaded",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "action",
            "in": "formData",
            "x-schema": {
              "$ref": "#/definitions/DataFileUploadAction"
            },
            "x-nullable": false,
            "enum": [
              "Create",
              "Overwrite"
            ]
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Data Files uploaded successfully",
            "schema": {
              "$ref": "#/definitions/UploadDataFileResponseDto"
            }
          },
          "400": {
            "description": "When Invalid Bad request will be initiated"
          },
          "403": {
            "description": "If user is not owner of the workspace"
          },
          "500": {
            "description": "Any kind of internal server error occurred"
          }
        }
      },
      "get": {
        "tags": [
          "DataFiles"
        ],
        "summary": "Get List of data-files to particular workspace",
        "operationId": "DataFiles_GetDataFiles",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id Database Generated or IOTools System Generated Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/data-files/{fileName}/relations": {
      "get": {
        "tags": [
          "DataFiles"
        ],
        "summary": "Retrieve relation data for a specific data file within a workspace.",
        "operationId": "DataFiles_GetDataFileRelations",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the workspace containing the data.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "fileName",
            "in": "path",
            "required": true,
            "description": "The name of the data file for which relations are to be retrieved.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Successful retrieval of relations data for the specified file.",
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "array",
                "items": {
                  "$ref": "#/definitions/AgRelationDto"
                }
              }
            }
          },
          "400": {
            "description": "When Invalid Bad request will be initiated or any validation failed."
          },
          "500": {
            "description": "Any kind of internal server error occurred"
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/data-files/{fileName}/fields": {
      "get": {
        "tags": [
          "DataFiles"
        ],
        "summary": "Retrieve list of data file filed for a specific data file within a workspace.",
        "operationId": "DataFiles_GetDataFileFields",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the workspace containing the data.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "fileName",
            "in": "path",
            "required": true,
            "description": "The name of the data file for which fields are to be retrieved.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Successful retrieval of fields data for the specified file.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "400": {
            "description": "When Invalid Bad request will be initiated or any validation failed."
          },
          "500": {
            "description": "Any kind of internal server error occurred"
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/entities/{entityType}": {
      "get": {
        "tags": [
          "Entities"
        ],
        "summary": "Retrieves a list of entities based on the workspace ID.",
        "operationId": "Entities_GetEntities",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which to return the list of ontologies.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "entityType",
            "in": "path",
            "required": true,
            "description": "The type of entities to retrieve.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "iri",
            "in": "query",
            "description": "An optional parameter. If provided, entities associated with this IRI's child will be returned.",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "query",
            "in": "query",
            "description": "An optional parameter for filtering entities.",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the list of entities as a successful response.",
            "schema": {
              "$ref": "#/definitions/EntityResponseDto"
            }
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/entities/{entityType}/details": {
      "get": {
        "tags": [
          "Entities"
        ],
        "summary": "Retrieves details of an entity by its identifier.",
        "operationId": "Entities_GetEntitiesDetails",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which to return the list of ontologies.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "entityType",
            "in": "path",
            "required": true,
            "description": "The type of entity to retrieve details for.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "uri",
            "in": "query",
            "description": "The unique identifier (URI) of the entity to fetch details for.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the entity details as a successful response.",
            "schema": {
              "$ref": "#/definitions/EntityDetailsResponseDto"
            }
          },
          "400": {
            "description": "Indicates a bad request, such as an invalid URI."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/entities/{entityType}/graph": {
      "get": {
        "tags": [
          "Entities"
        ],
        "summary": "Generate and Return Diagram of Specific Entity",
        "operationId": "Entities_GetEntityGraph",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "entityType",
            "in": "path",
            "required": true,
            "description": "Type of entity",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "uri",
            "in": "query",
            "description": "Entity Uri",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "type": "file"
            }
          },
          "400": {
            "description": ""
          },
          "403": {
            "description": ""
          },
          "500": {
            "description": ""
          }
        }
      }
    },
    "/api/file-manager/tree": {
      "post": {
        "tags": [
          "FileManager"
        ],
        "summary": "Retrieves the file tree structure for the specified path.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,SYSADM`</i></b>",
        "operationId": "FileManager_ReadTree",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The request containing the path to read.",
            "schema": {
              "$ref": "#/definitions/FileManagerTreeRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the file tree structure successfully.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/FileItemDto"
              }
            }
          },
          "404": {
            "description": "If the specified path does not exist."
          }
        }
      }
    },
    "/api/file-manager/folders": {
      "post": {
        "tags": [
          "FileManager"
        ],
        "summary": "Creates a new folder in the specified parent path.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,SYSADM`</i></b>",
        "operationId": "FileManager_CreateFolder",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The request containing folder name and parent path.",
            "schema": {
              "$ref": "#/definitions/FileManagerCreateFolderRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the created folder information.",
            "schema": {
              "$ref": "#/definitions/FileManagerActionResultDto"
            }
          },
          "404": {
            "description": "If the parent path does not exist."
          },
          "400": {
            "description": "If the folder name is invalid."
          }
        }
      }
    },
    "/api/file-manager/files/new": {
      "post": {
        "tags": [
          "FileManager"
        ],
        "summary": "Creates a new file with the specified type and content.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,SYSADM`</i></b>",
        "operationId": "FileManager_CreateFile",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The request containing file name, type, and parent path.",
            "schema": {
              "$ref": "#/definitions/FileManagerCreateFileRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the created file information.",
            "schema": {
              "$ref": "#/definitions/FileManagerActionResultDto"
            }
          },
          "404": {
            "description": "If the parent path does not exist."
          },
          "400": {
            "description": "If the file name or type is invalid."
          }
        }
      }
    },
    "/api/file-manager/rename": {
      "post": {
        "tags": [
          "FileManager"
        ],
        "summary": "Renames a file or folder.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,SYSADM`</i></b>",
        "operationId": "FileManager_Rename",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The request containing the current path and new name.",
            "schema": {
              "$ref": "#/definitions/FileManagerRenameRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the renamed item information.",
            "schema": {
              "$ref": "#/definitions/FileManagerActionResultDto"
            }
          },
          "409": {
            "x-nullable": false,
            "description": "If a file or folder with the new name already exists.",
            "schema": {
              "$ref": "#/definitions/FileManagerErrorDto"
            }
          },
          "404": {
            "description": "If the source path does not exist."
          },
          "400": {
            "description": "If the new name is invalid."
          }
        }
      }
    },
    "/api/file-manager/delete": {
      "post": {
        "tags": [
          "FileManager"
        ],
        "summary": "Deletes one or more files or folders.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,SYSADM`</i></b>",
        "operationId": "FileManager_Delete",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The request containing paths to delete.",
            "schema": {
              "$ref": "#/definitions/FileManagerDeleteRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns information about the deleted items.",
            "schema": {
              "$ref": "#/definitions/FileManagerBatchActionResultDto"
            }
          },
          "404": {
            "description": "If any of the specified paths do not exist."
          }
        }
      }
    },
    "/api/file-manager/copy": {
      "post": {
        "tags": [
          "FileManager"
        ],
        "summary": "Copies one or more files or folders to a destination path.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,SYSADM`</i></b>",
        "operationId": "FileManager_Copy",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The request containing source paths and destination path.",
            "schema": {
              "$ref": "#/definitions/FileManagerTransferRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns information about the copied items.",
            "schema": {
              "$ref": "#/definitions/FileManagerBatchActionResultDto"
            }
          },
          "404": {
            "description": "If any source path or the destination path does not exist."
          }
        }
      }
    },
    "/api/file-manager/move": {
      "post": {
        "tags": [
          "FileManager"
        ],
        "summary": "Moves one or more files or folders to a destination path.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,SYSADM`</i></b>",
        "operationId": "FileManager_Move",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The request containing source paths and destination path.",
            "schema": {
              "$ref": "#/definitions/FileManagerTransferRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns information about the moved items.",
            "schema": {
              "$ref": "#/definitions/FileManagerBatchActionResultDto"
            }
          },
          "404": {
            "description": "If any source path or the destination path does not exist."
          }
        }
      }
    },
    "/api/file-manager/upload": {
      "post": {
        "tags": [
          "FileManager"
        ],
        "summary": "Uploads a file to the specified parent path.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,SYSADM`</i></b>",
        "operationId": "FileManager_Upload",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "parentPath",
            "in": "formData",
            "description": "The parent directory path where the file will be uploaded.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "ContentType",
            "in": "formData",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "ContentDisposition",
            "in": "formData",
            "x-nullable": false
          },
          {
            "type": "array",
            "name": "Headers",
            "in": "formData",
            "collectionFormat": "multi",
            "x-nullable": false,
            "items": {
              "additionalProperties": {}
            }
          },
          {
            "type": "integer",
            "name": "Length",
            "in": "formData",
            "format": "int64",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "Name",
            "in": "formData",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "FileName",
            "in": "formData",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns information about the uploaded file.",
            "schema": {
              "$ref": "#/definitions/FileManagerActionResultDto"
            }
          },
          "400": {
            "description": "If the file is empty or exceeds the maximum size."
          },
          "404": {
            "description": "If the parent path does not exist."
          }
        }
      }
    },
    "/api/file-manager/download": {
      "get": {
        "tags": [
          "FileManager"
        ],
        "summary": "Downloads a file from the specified path.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,SYSADM`</i></b>",
        "operationId": "FileManager_Download",
        "parameters": [
          {
            "type": "string",
            "name": "path",
            "in": "query",
            "description": "The path of the file to download.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the file content."
          },
          "404": {
            "description": "If the file does not exist."
          }
        }
      }
    },
    "/api/file-manager/download-zip": {
      "post": {
        "tags": [
          "FileManager"
        ],
        "summary": "Downloads multiple files and folders as a ZIP archive.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,SYSADM`</i></b>",
        "operationId": "FileManager_DownloadZip",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The request containing paths to include in the ZIP.",
            "schema": {
              "$ref": "#/definitions/FileManagerDownloadZipRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the ZIP archive."
          }
        }
      }
    },
    "/api/file-manager/preview": {
      "get": {
        "tags": [
          "FileManager"
        ],
        "summary": "Previews a file by streaming its content.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,SYSADM`</i></b>",
        "operationId": "FileManager_Preview",
        "parameters": [
          {
            "type": "string",
            "name": "path",
            "in": "query",
            "description": "The path of the file to preview.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the file content."
          },
          "404": {
            "description": "If the file does not exist."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/fuseki": {
      "get": {
        "tags": [
          "Fuseki"
        ],
        "operationId": "Fuseki_Get",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/YasguiResponseDto"
            }
          },
          "400": {
            "description": ""
          },
          "500": {
            "description": ""
          }
        }
      }
    },
    "/api/health": {
      "get": {
        "tags": [
          "Health"
        ],
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Health_Get",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/ServiceHealthDto"
            }
          },
          "503": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/ServiceHealthDto"
            }
          }
        }
      }
    },
    "/api/hostingidentifiers/type/{type}": {
      "get": {
        "tags": [
          "HostingIdentifiers"
        ],
        "summary": "Retrieves Git hosting identifiers based on the specified hosting type.",
        "operationId": "HostingIdentifiers_GetGitHostingIdentifierByGitHostingType",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "type",
            "in": "path",
            "required": true,
            "description": "The type of Git hosting.",
            "x-schema": {
              "$ref": "#/definitions/GitHostingType"
            },
            "x-nullable": false,
            "enum": [
              "AzureDevopsRepos",
              "GitLab"
            ]
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "A list of hosting identifiers.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/HostingIdentifierResponseDto"
              }
            }
          }
        }
      }
    },
    "/api/hostingidentifiers": {
      "post": {
        "tags": [
          "HostingIdentifiers"
        ],
        "summary": "Creates a new hosting identifier.",
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "HostingIdentifiers_CreateHostingIdentifier",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "dto",
            "in": "body",
            "required": true,
            "description": "The create hosting identifier request DTO.",
            "schema": {
              "$ref": "#/definitions/CreateHostingIdentifierRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "201": {
            "x-nullable": false,
            "description": "The created hosting identifier.",
            "schema": {
              "$ref": "#/definitions/HostingIdentifierResponseDto"
            }
          },
          "400": {
            "description": ""
          }
        }
      }
    },
    "/api/hostingidentifiers/{id}": {
      "put": {
        "tags": [
          "HostingIdentifiers"
        ],
        "summary": "Updates an existing hosting identifier.",
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "HostingIdentifiers_UpdateHostingIdentifier",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "integer",
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The ID of the hosting identifier to update.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "name": "dto",
            "in": "body",
            "required": true,
            "description": "The update hosting identifier request DTO.",
            "schema": {
              "$ref": "#/definitions/UpdateHostingIdentifierRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The updated hosting identifier.",
            "schema": {
              "$ref": "#/definitions/HostingIdentifierResponseDto"
            }
          },
          "400": {
            "description": ""
          },
          "404": {
            "description": ""
          },
          "409": {
            "description": ""
          }
        }
      },
      "delete": {
        "tags": [
          "HostingIdentifiers"
        ],
        "summary": "Deletes a hosting identifier.",
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "HostingIdentifiers_DeleteHostingIdentifier",
        "parameters": [
          {
            "type": "integer",
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The ID of the hosting identifier to delete.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "204": {
            "description": "No content."
          },
          "404": {
            "description": ""
          },
          "409": {
            "description": ""
          }
        }
      },
      "get": {
        "tags": [
          "HostingIdentifiers"
        ],
        "summary": "Retrieves a hosting identifier by its ID.",
        "operationId": "HostingIdentifiers_GetHostingIdentifierById",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "integer",
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The ID of the hosting identifier.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The hosting identifier.",
            "schema": {
              "$ref": "#/definitions/HostingIdentifierResponseDto"
            }
          },
          "404": {
            "description": ""
          }
        }
      }
    },
    "/api/identifiers": {
      "get": {
        "tags": [
          "Identifiers"
        ],
        "summary": "Retrieves a list of identifiers.",
        "description": "This endpoint retrieves a collection of identifiers.\nThe identifiers are returned in the response as a list of IdentifierResponseDto.",
        "operationId": "Identifiers_GetIdentifier",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the list of identifiers.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/IdentifierResponseDto"
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Identifiers"
        ],
        "summary": "Create Identifier",
        "description": "\n\n <b><i>Role(s) required: `ONTADM`</i></b>",
        "operationId": "Identifiers_Create",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "name": "request",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/IdentifierCreateRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "201": {
            "description": "Return Created Response with 201"
          },
          "400": {
            "description": "Indicates that the request is invalid or the operation cannot be completed."
          },
          "500": {
            "description": "Indicates an internal server error during the operation."
          },
          "403": {
            "description": "Indicates that the user does not have permission to perform the operation."
          },
          "401": {
            "description": "Indicates that the user is not authenticated."
          }
        }
      }
    },
    "/api/identifiers/batch": {
      "post": {
        "tags": [
          "Identifiers"
        ],
        "summary": "Generates identifiers based on the provided request and context.",
        "description": "This endpoint generates identifiers based on the provided request and context.\nThe generated identifiers are returned in the response.\n\n <b><i>Role(s) required: `ONTADM,ONT,CTXADM,SME`</i></b>",
        "operationId": "Identifiers_GenerateIdentifiers",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The request data specifying the context and criteria for generating identifiers.",
            "schema": {
              "$ref": "#/definitions/IdentifierRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the list of generated identifiers.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/SourceWorkspaceResponseDto"
              }
            }
          },
          "404": {
            "description": "Indicates that the specified context is not found."
          },
          "400": {
            "description": "Indicates that the request is invalid or the operation cannot be completed."
          },
          "500": {
            "description": "Indicates an internal server error during the operation."
          }
        }
      }
    },
    "/api/identifiers/{id}": {
      "patch": {
        "tags": [
          "Identifiers"
        ],
        "summary": "Create Identifier",
        "description": "\n\n <b><i>Role(s) required: `ONTADM`</i></b>",
        "operationId": "Identifiers_Update",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "integer",
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Identifier Id Query Param",
            "format": "int32",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "Identifier Update Request Body",
            "schema": {
              "$ref": "#/definitions/IdentifierUpdateRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "201": {
            "description": "Return Created Response with 201"
          },
          "400": {
            "description": "Indicates that the request is invalid or the operation cannot be completed."
          },
          "500": {
            "description": "Indicates an internal server error during the operation."
          },
          "403": {
            "description": "Indicates that the user does not have permission to perform the operation."
          },
          "401": {
            "description": "Indicates that the user is not authenticated."
          }
        }
      },
      "get": {
        "tags": [
          "Identifiers"
        ],
        "summary": "Get Identifier By Id",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Identifiers_GetById",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "integer",
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Identifier Id",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Identifier Response by Id",
            "schema": {
              "$ref": "#/definitions/IdentifierResponseDto"
            }
          },
          "400": {
            "description": "Indicates that the request is invalid or the operation cannot be completed."
          },
          "500": {
            "description": "Indicates an internal server error during the operation."
          },
          "403": {
            "description": "Indicates that the user does not have permission to perform the operation."
          },
          "401": {
            "description": "Indicates that the user is not authenticated."
          }
        }
      }
    },
    "/api/migration/bom-characters-csv": {
      "post": {
        "tags": [
          "Migration"
        ],
        "summary": "Starts BOM character migration for the specified workspaces.",
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Migration_MigrateBomCharacters",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "name": "workspaceIds",
            "in": "body",
            "description": "List of workspace IDs to migrate. If null, all will be migrated.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "guid"
              }
            },
            "x-nullable": false
          },
          {
            "type": "boolean",
            "name": "forceMigrate",
            "in": "query",
            "description": "Whether to force migration even if already migrated.",
            "default": false,
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": true,
            "description": "Action result indicating migration started.",
            "schema": {
              "type": "file"
            }
          }
        }
      }
    },
    "/api/migration/bom-characters-status": {
      "get": {
        "tags": [
          "Migration"
        ],
        "summary": "Gets the BOM character migration status for all workspaces.",
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Migration_GetWorkspacesWithBomCharStatus",
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": true,
            "description": "Status information for each workspace regarding BOM character migration.",
            "schema": {
              "type": "file"
            }
          }
        }
      }
    },
    "/api/migration/duckdb": {
      "post": {
        "tags": [
          "Migration"
        ],
        "summary": "Starts DuckDB migration for the specified workspaces.",
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Migration_MigrateDuckDb",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "name": "workspaceIds",
            "in": "body",
            "description": "List of workspace IDs to migrate. If null, all will be migrated.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "guid"
              }
            },
            "x-nullable": false
          },
          {
            "type": "boolean",
            "name": "forceMigrate",
            "in": "query",
            "description": "Whether to force migration even if already migrated.",
            "default": false,
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": true,
            "description": "Action result indicating DuckDB migration started.",
            "schema": {
              "type": "file"
            }
          }
        }
      }
    },
    "/api/migration/duckdb-status": {
      "get": {
        "tags": [
          "Migration"
        ],
        "summary": "Gets the DuckDB migration status for all workspaces.",
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Migration_GetWorkspacesWithDuckdbStatus",
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": true,
            "description": "Status information for each workspace regarding DuckDB migration.",
            "schema": {
              "type": "file"
            }
          }
        }
      }
    },
    "/api/migration/lucene-search": {
      "post": {
        "tags": [
          "Migration"
        ],
        "summary": "Indexes workspaces in the Lucene search index. If workspaceIds is null, indexes all workspaces.",
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Migration_MigrateExistingWorkspace",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "name": "workspaceIds",
            "in": "body",
            "description": "List of workspace IDs to index in Lucene search.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "guid"
              }
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": true,
            "description": "Action result indicating Lucene indexing started.",
            "schema": {
              "type": "file"
            }
          }
        }
      }
    },
    "/api/migration/lucene-search-status": {
      "get": {
        "tags": [
          "Migration"
        ],
        "summary": "Gets the Lucene search index status for all workspaces.",
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Migration_GetWorkspacesWithLuceneStatus",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Status information for each workspace regarding Lucene search indexing.",
            "schema": {
              "$ref": "#/definitions/WorkspaceSearchMigrationResponseDto"
            }
          }
        }
      }
    },
    "/api/migration/invalid-directories": {
      "get": {
        "tags": [
          "Migration"
        ],
        "summary": "Get Invalid directory paths in storage.",
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Migration_GetInvalidDirectoryPaths",
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": true,
            "description": "List of invalid directory paths.",
            "schema": {
              "type": "file"
            }
          }
        }
      }
    },
    "/api/migration/invalid-directories/clean": {
      "post": {
        "tags": [
          "Migration"
        ],
        "summary": "Clean Invalid Directories and Files from Storage",
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Migration_CleanInvalidDirectoriesAndFiles",
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": true,
            "description": "",
            "schema": {
              "type": "file"
            }
          }
        }
      }
    },
    "/api/migration/system-user": {
      "post": {
        "tags": [
          "Migration"
        ],
        "summary": "Migrates existing database records to use the system user for CreatedBy fields.\nThis updates all records where CreatedBy is NULL to use the system user.",
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Migration_MigrateToSystemUser",
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": true,
            "description": "Number of records updated",
            "schema": {
              "type": "file"
            }
          }
        }
      }
    },
    "/api/migrations/duckdb-relocate": {
      "post": {
        "tags": [
          "Migrations"
        ],
        "summary": "Relocates DuckDB files from CIFS storage to local Docker volume via oerust.\nRun with dryRun=true first to preview, then keepSource=true to copy and verify,\nthen with no parameters for the final pass that deletes CIFS originals.\nIdempotent — destinations that already exist and verify are skipped.",
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Migrations_RelocateDuckdb",
        "parameters": [
          {
            "type": "boolean",
            "name": "dryRun",
            "in": "query",
            "default": false,
            "x-nullable": false
          },
          {
            "type": "boolean",
            "name": "keepSource",
            "in": "query",
            "default": false,
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": true,
            "description": "",
            "schema": {
              "type": "file"
            }
          }
        }
      }
    },
    "/api/monitoring/status": {
      "get": {
        "tags": [
          "Monitoring"
        ],
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Monitoring_Status",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "environment",
            "in": "query",
            "maxLength": 128,
            "minLength": 0,
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/MonitoringStatusDto"
            }
          }
        }
      }
    },
    "/api/monitoring/history": {
      "get": {
        "tags": [
          "Monitoring"
        ],
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Monitoring_History",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "ServiceName",
            "in": "query",
            "pattern": "^(IOTool|OERust|Fuseki|MSSQL|RepositoryStorage|SignalR|GitLab|GitLabSelfHosted|VeracityIdentity|VeracityApi|KeyVault)$",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Environment",
            "in": "query",
            "maxLength": 128,
            "minLength": 0,
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Status",
            "in": "query",
            "pattern": "^(Healthy|Degraded|Unhealthy|Unavailable|Unknown)$",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "FromUtc",
            "in": "query",
            "format": "date-time",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "ToUtc",
            "in": "query",
            "format": "date-time",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Search",
            "in": "query",
            "maxLength": 128,
            "minLength": 0,
            "x-nullable": true
          },
          {
            "type": "integer",
            "name": "Page",
            "in": "query",
            "format": "int32",
            "maximum": 1000000.0,
            "minimum": 1.0,
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "Limit",
            "in": "query",
            "format": "int32",
            "maximum": 200.0,
            "minimum": 1.0,
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/PaginatedDto_1"
            }
          }
        }
      }
    },
    "/api/monitoring/services/{serviceName}": {
      "get": {
        "tags": [
          "Monitoring"
        ],
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Monitoring_Service",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "serviceName",
            "in": "path",
            "required": true,
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "ServiceName",
            "in": "query",
            "pattern": "^(IOTool|OERust|Fuseki|MSSQL|RepositoryStorage|SignalR|GitLab|GitLabSelfHosted|VeracityIdentity|VeracityApi|KeyVault)$",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Environment",
            "in": "query",
            "maxLength": 128,
            "minLength": 0,
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Status",
            "in": "query",
            "pattern": "^(Healthy|Degraded|Unhealthy|Unavailable|Unknown)$",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "FromUtc",
            "in": "query",
            "format": "date-time",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "ToUtc",
            "in": "query",
            "format": "date-time",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Search",
            "in": "query",
            "maxLength": 128,
            "minLength": 0,
            "x-nullable": true
          },
          {
            "type": "integer",
            "name": "Page",
            "in": "query",
            "format": "int32",
            "maximum": 1000000.0,
            "minimum": 1.0,
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "Limit",
            "in": "query",
            "format": "int32",
            "maximum": 200.0,
            "minimum": 1.0,
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/MonitoringServiceDetailDto"
            }
          }
        }
      }
    },
    "/api/monitoring/timeline": {
      "get": {
        "tags": [
          "Monitoring"
        ],
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Monitoring_Timeline",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "environment",
            "in": "query",
            "maxLength": 128,
            "minLength": 0,
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "range",
            "in": "query",
            "pattern": "^(24h|7d|90d)$",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/MonitoringTimelineDto"
            }
          }
        }
      }
    },
    "/api/monitoring/history/{id}": {
      "get": {
        "tags": [
          "Monitoring"
        ],
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Monitoring_Detail",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "integer",
            "name": "id",
            "in": "path",
            "required": true,
            "format": "int64",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/MonitoringRecordDetailDto"
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies": {
      "post": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Creates a new ontology within the specified workspace.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "Ontologies_CreateOntology",
        "consumes": [
          "multipart/form-data"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace where the ontology will be created.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "file",
            "name": "file",
            "in": "formData",
            "description": "Lib Rdf file",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "OntName",
            "in": "formData",
            "description": "OntName of the ontology",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "Description",
            "in": "formData",
            "description": "Description of the ontology",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Title",
            "in": "formData",
            "description": "Title",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "RdfFile",
            "in": "formData",
            "description": "Rdf file name must be ended with .ttl",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "Ontology",
            "in": "formData",
            "description": "Ontology IRI",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "GraphName",
            "in": "formData",
            "description": "Graph name",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "OntType",
            "in": "formData",
            "description": "Ontology type, ontology type can be lib or ctx",
            "x-nullable": false
          },
          {
            "type": "array",
            "name": "Imports",
            "in": "formData",
            "description": "Dependent ontology Ids",
            "collectionFormat": "multi",
            "x-nullable": false,
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "type": "string",
            "name": "Header",
            "in": "formData",
            "description": "Header",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "SeeAlso",
            "in": "formData",
            "description": "SeeAlso",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Status",
            "in": "formData",
            "description": "Status",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "AuthoredBy",
            "in": "formData",
            "description": "Authored By",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "ContributedBy",
            "in": "formData",
            "description": "Contributed By",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "CreatedBy",
            "in": "formData",
            "description": "Created By",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Publisher",
            "in": "formData",
            "description": "Publisher",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "DerivedFrom",
            "in": "formData",
            "description": "Derived From",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "License",
            "in": "formData",
            "description": "License",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Subject",
            "in": "formData",
            "description": "Subject",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "ExampleResource",
            "in": "formData",
            "description": "Example Resource",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "DocumentationPage",
            "in": "formData",
            "description": "Documentation Page",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "PreferredNamespacePrefix",
            "in": "formData",
            "description": "Preferred Namespace Prefix",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "PreferredNamespaceUri",
            "in": "formData",
            "description": "Preferred Namespace Uri",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "FileFormat",
            "in": "formData",
            "description": "File Format",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "SparqlEndpoint",
            "in": "formData",
            "description": "Sparql Endpoint",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Tags",
            "in": "formData",
            "description": "Tags for the ontology requirement | asset | RDL | inferred-axioms",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "VersionIRI",
            "in": "formData",
            "description": "Version IRI",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "VersionInfo",
            "in": "formData",
            "description": "Version Info",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "PreviousVersion",
            "in": "formData",
            "description": "Previous Version",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "LastUpdateOn",
            "in": "formData",
            "description": "Last Update On",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Issued",
            "in": "formData",
            "description": "Issued",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Modified",
            "in": "formData",
            "description": "Modified",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "201": {
            "x-nullable": false,
            "description": "The ontology was successfully created within the workspace.",
            "schema": {
              "$ref": "#/definitions/OntologyDto"
            }
          },
          "400": {
            "description": "If any validation errors occur during the operation."
          },
          "403": {
            "description": "If the user is not owner of the workspace."
          },
          "500": {
            "description": "If any internal server error occurs during the ontology creation process."
          }
        }
      },
      "get": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Returns list of ontologies withing the specified workspace.",
        "operationId": "Ontologies_GetOntologies",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which to return the list of ontologies.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "type",
            "in": "query",
            "description": "The type of ontology, if type is passed as null then all type of ontologies will be return. Type value can be ctx or lib.",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The list of ontologies is returned.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/OntologyDto"
              }
            }
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies/{ontologyId}": {
      "delete": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Delete the ontology within the specified workspace.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "Ontologies_Delete",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which ontology will be deleted.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "ontologyId",
            "in": "path",
            "required": true,
            "description": "The ID of the ontology to be deleted.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Api will return 200 status code with no response body.",
            "schema": {
              "$ref": "#/definitions/OntologyDeleteResponseDto"
            }
          },
          "400": {
            "description": "The ontology type is lib."
          },
          "404": {
            "description": "The requested resource was not found."
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      },
      "get": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Return ontology details withing the specified workspace.",
        "operationId": "Ontologies_GetDetails",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which ontology details will be return.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "ontologyId",
            "in": "path",
            "required": true,
            "description": "The ID of the ontology.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Api will return 200 status code with mention response body.",
            "schema": {
              "$ref": "#/definitions/OntologyDetailsResponseDto"
            }
          },
          "400": {
            "description": "If the ontology file is not found."
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "404": {
            "description": "Ontology not found"
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      },
      "patch": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Edit ontology details withing the specified workspace.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "Ontologies_Edit",
        "consumes": [
          "multipart/form-data"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which ontology details will be return.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "ontologyId",
            "in": "path",
            "required": true,
            "description": "The ID of the ontology which will be edit",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "file",
            "name": "file",
            "in": "formData",
            "description": "Lib Rdf file",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "ontologyFileType",
            "in": "formData",
            "description": "Ontology File Type",
            "x-schema": {
              "$ref": "#/definitions/OntologyFileType"
            },
            "x-nullable": true,
            "enum": [
              "TTL",
              "OMN",
              "ORG"
            ]
          },
          {
            "type": "string",
            "name": "OntName",
            "in": "formData",
            "description": "Ontology name",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RdfFile",
            "in": "formData",
            "description": "Rdf file name",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "Header",
            "in": "formData",
            "description": "Header",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Title",
            "in": "formData",
            "description": "Title",
            "x-nullable": true
          },
          {
            "type": "array",
            "name": "Imports",
            "in": "formData",
            "description": "Dependent ontology Ids",
            "collectionFormat": "multi",
            "x-nullable": false,
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "type": "string",
            "name": "GraphName",
            "in": "formData",
            "description": "GraphName",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Ontology",
            "in": "formData",
            "description": "Ontology",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "Description",
            "in": "formData",
            "description": "Description",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "SeeAlso",
            "in": "formData",
            "description": "SeeAlso",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Status",
            "in": "formData",
            "description": "Status",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "AuthoredBy",
            "in": "formData",
            "description": "Authored By",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "ContributedBy",
            "in": "formData",
            "description": "Contributed By",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "CreatedBy",
            "in": "formData",
            "description": "Created By",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Publisher",
            "in": "formData",
            "description": "Publisher",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "DerivedFrom",
            "in": "formData",
            "description": "Derived From",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "License",
            "in": "formData",
            "description": "License",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Subject",
            "in": "formData",
            "description": "Subject",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "ExampleResource",
            "in": "formData",
            "description": "Example Resource",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "DocumentationPage",
            "in": "formData",
            "description": "Documentation Page",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "PreferredNamespacePrefix",
            "in": "formData",
            "description": "Preferred Namespace Prefix",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "PreferredNamespaceUri",
            "in": "formData",
            "description": "Preferred Namespace Uri",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "FileFormat",
            "in": "formData",
            "description": "File Format",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "SparqlEndpoint",
            "in": "formData",
            "description": "Sparql Endpoint",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "Tags",
            "in": "formData",
            "description": "Tags for the ontology requirement | asset | RDL | inferred-axioms",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The API will respond with a 200 status code, and the updated ontology record will be included in the response body.",
            "schema": {
              "$ref": "#/definitions/OntologyDetailsEditResponseDto"
            }
          },
          "400": {
            "description": "If the ontology file is not found or error occured in ontology engine."
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "404": {
            "description": "Ontology not found"
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies/{ontologyId}/parts": {
      "post": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Create ontology part within the specified workspace.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "Ontologies_CreatePart",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which ontology part will be created.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "ontologyId",
            "in": "path",
            "required": true,
            "description": "The ID of the ontology.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "name": "ontologyPartCreateRequest",
            "in": "body",
            "required": true,
            "description": "Part create parameter. Template and sourceIds both parameter is required to create a part.",
            "schema": {
              "$ref": "#/definitions/OntologyPartCreateRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Api will return 200 status code with no response body.",
            "schema": {
              "$ref": "#/definitions/OntologyCreatePartResponseDto"
            }
          },
          "400": {
            "description": "If there is any validation error."
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      },
      "get": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Returns list of ontology parts withing the specified workspace.",
        "operationId": "Ontologies_GetPart",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which ontology part will be return.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "ontologyId",
            "in": "path",
            "required": true,
            "description": "The ID of the ontology.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Api will return 200 status code with mention response body.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/OntologyPartResponseDto"
              }
            }
          },
          "400": {
            "description": "If the ontology/source/part file is not found."
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "404": {
            "description": "Ontology Id not found"
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies/{ontologyId}/parts/{partId}": {
      "patch": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Edit ontology part within the specified workspace.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "Ontologies_EditPart",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which ontology part will be edit.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "ontologyId",
            "in": "path",
            "required": true,
            "description": "The ID of the ontology.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "partId",
            "in": "path",
            "required": true,
            "description": "The ID of the ontology part which will be edited.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "name": "partRequest",
            "in": "body",
            "required": true,
            "description": "Part edit parameter. Template and sourceIds both parameter is required to edit a part.",
            "schema": {
              "$ref": "#/definitions/OntologyPartEditRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Api will return 200 status code with no response body.",
            "schema": {
              "$ref": "#/definitions/OntologyEditPartResponseDto"
            }
          },
          "400": {
            "description": "If the ontology/source/part file is not found."
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "404": {
            "description": "Ontology part not found"
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      },
      "delete": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Delete the ontology part within the specified workspace.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "Ontologies_DeletePart",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which ontology will be deleted.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "ontologyId",
            "in": "path",
            "required": true,
            "description": "The ID of the ontology",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "partId",
            "in": "path",
            "required": true,
            "description": "The ID of the ontology part to be deleted.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Api will return 200 status code with no response body.",
            "schema": {
              "$ref": "#/definitions/OntologyDeletePartResponseDto"
            }
          },
          "400": {
            "description": "The ontology type is lib."
          },
          "404": {
            "description": "The requested resource was not found."
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies/{ontologyId}/reload": {
      "post": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Reloads the ontology within the specified workspace.",
        "operationId": "Ontologies_Reload",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which the ontology will be reloaded.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "ontologyId",
            "in": "path",
            "required": true,
            "description": "The ID of the ontology to be reloaded.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Successfully reloaded the ontology. Returns ontology engine's errors/warning list.",
            "schema": {
              "$ref": "#/definitions/OntologyLibRefreshResponseDto"
            }
          },
          "400": {
            "description": "Bad request. If any error occured in ontology engine"
          },
          "403": {
            "description": "Forbidden. The user does not have access to the specified workspace."
          },
          "404": {
            "description": "Not Found. The ontology with the given ID was not found."
          },
          "500": {
            "description": "Internal Server Error. A server error occurred during the ontology reload."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies/reload-all": {
      "post": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Reloads all the ontologies within the specified workspace.",
        "operationId": "Ontologies_ReloadAll",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which the ontology will be reloaded.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Successfully reloaded the ontology. Returns ontology engine's errors/warning list.",
            "schema": {
              "$ref": "#/definitions/ReloadAllOntologiesResponseDto"
            }
          },
          "400": {
            "description": "Bad request. If any error occurred in the ontology engine."
          },
          "500": {
            "description": "Internal Server Error. A server error occurred during the ontology reload."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies/upload-ttl": {
      "post": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Uploads a TTL (Terse Triple Language) file containing ontology information for processing within the specified workspace.",
        "description": "\n\n <b><i>Role(s) required: `CTXADM,ONTADM`</i></b>",
        "operationId": "Ontologies_FetchLibOntologyInfo",
        "consumes": [
          "multipart/form-data"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace to which the ontology information belongs.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "file",
            "name": "libOntologyFile",
            "in": "formData",
            "description": "The TTL file containing ontology information to be uploaded.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the ontology information if the upload is successful.",
            "schema": {
              "$ref": "#/definitions/LibOntologyInfoResponseDto"
            }
          },
          "400": {
            "description": "Bad request. Indicates missing or invalid input data. Returns an error message if no file is uploaded or the file type is invalid."
          },
          "500": {
            "description": "Internal Server Error. Indicates a server error occurred during the ontology upload process."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies/{ontologyId}/increment-version": {
      "post": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Increments the version of the ontology within the specified workspace.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM`</i></b>",
        "operationId": "Ontologies_IncrementVersion",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace to which the ontology belongs.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "ontologyId",
            "in": "path",
            "required": true,
            "description": "The ID of the ontology to increment the version.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The request containing the version increment details.",
            "schema": {
              "$ref": "#/definitions/VersionIncrementRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "The ontology version is incremented successfully."
          },
          "400": {
            "description": "Bad request. Indicates missing or invalid input data."
          },
          "403": {
            "description": "Forbidden. The user does not have access to the specified workspace."
          },
          "404": {
            "description": "Not Found. The ontology with the given ID was not found."
          },
          "500": {
            "description": "Internal Server Error. A server error occurred during the ontology version increment."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies/pending-version-changes": {
      "get": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Retrieves the pending ontology version changes within the specified workspace.",
        "operationId": "Ontologies_GetPendingOntologyVersionChanges",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which to retrieve the pending ontology version changes.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The list of pending ontology version changes is returned.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/PendingOntologyVersionChangesDto"
              }
            }
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies/circular-imports": {
      "get": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Retrieves the circular imports for the specified workspace.",
        "description": "If no circular imports are found, API will return message `No circular imports found.`\n\n <b><i>Role(s) required: `CTXADM,ONTADM,ONT`</i></b>",
        "operationId": "Ontologies_GetCircularImports",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace for which to retrieve circular imports.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns a string indicating the circular imports for the specified workspace.",
            "schema": {
              "type": "string"
            }
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "500": {
            "description": "A server error occurred while processing the request."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies/graphs/positions": {
      "get": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Retrieves the React Flow graph positions for the specified workspace.",
        "description": "If no graph positions are found, the API will return `No Content`.",
        "operationId": "Ontologies_GetReactFlowPositions",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace for which to retrieve the React Flow graph positions.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the React Flow graph positions for the specified workspace.",
            "schema": {
              "$ref": "#/definitions/OntologyGraphResponseDto"
            }
          },
          "204": {
            "description": "No graph positions are available for the specified workspace."
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "500": {
            "description": "A server error occurred while processing the request."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies/graphs/positions-and-relations": {
      "post": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Saves the React Flow graph positions and ontology import relationships for the specified workspace.",
        "description": "This API saves the current layout of React Flow graph positions associated with the specified workspace.",
        "operationId": "Ontologies_SaveOntologyGraph",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace for which to save the React Flow graph positions.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The request payload containing the graph positions to be saved.",
            "schema": {
              "$ref": "#/definitions/OntologyGraphRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The graph positions were successfully saved.",
            "schema": {
              "type": "string"
            }
          },
          "403": {
            "description": "The user does not have access to save graph positions for the workspace."
          },
          "500": {
            "description": "A server error occurred while processing the request."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies/{ontologyId}/is-outdated": {
      "get": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Checks if the specified ontology is outdated within the workspace.",
        "operationId": "Ontologies_GetIsOntologyOutdatedByOntologyId",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "ontologyId",
            "in": "path",
            "required": true,
            "description": "The ID of the ontology to check.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns true if the ontology is outdated, otherwise false.",
            "schema": {
              "$ref": "#/definitions/OntologyVersionResponseDto"
            }
          },
          "404": {
            "description": "Ontology not found."
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies/lib/version-status": {
      "get": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Retrieves the ontology version status for the specified workspace.",
        "operationId": "Ontologies_GetOntologyVersionOutdatedStatus",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the workspace.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "\n            Returns the ontology version status, including whether the ontology \n            is up to date or outdated.\n            ",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/OntologyOutdatedStatusResponseDto"
              }
            }
          },
          "404": {
            "description": "No ontology version information found for the workspace."
          },
          "403": {
            "description": "The user does not have permission to access the workspace."
          },
          "500": {
            "description": "An unexpected server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies/{ontologyId}/lib/update": {
      "post": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Updates the remote ontology for the specified workspace and ontology.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "Ontologies_UpdateLibraryOntology",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "ontologyId",
            "in": "path",
            "required": true,
            "description": "The ID of the ontology to update remotely.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "The remote ontology was successfully updated."
          },
          "400": {
            "description": "Bad request. Indicates missing or invalid input data."
          },
          "403": {
            "description": "Forbidden. The user does not have access to the specified workspace."
          },
          "404": {
            "description": "Not Found. The ontology with the given ID was not found."
          },
          "500": {
            "description": "Internal Server Error. A server error occurred during the remote ontology update."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies/{ontologyId}/metadata": {
      "get": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Retrieves metadata (annotation properties) for the specified ontology.",
        "operationId": "Ontologies_GetMetadata",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "ontologyId",
            "in": "path",
            "required": true,
            "description": "The ID of the ontology.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Successfully retrieved ontology metadata.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/OntologyMetadataItemDto"
              }
            }
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "404": {
            "description": "The ontology was not found."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      },
      "post": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Updates or inserts metadata (annotation properties) for the specified ontology.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "Ontologies_UpsertMetadata",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "ontologyId",
            "in": "path",
            "required": true,
            "description": "The ID of the ontology.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "name": "metadata",
            "in": "body",
            "required": true,
            "description": "The metadata items to upsert.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/OntologyMetadataItemDto"
              }
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Successfully updated ontology metadata.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/OntologyMetadataItemDto"
              }
            }
          },
          "400": {
            "description": "Bad request. Invalid metadata format or ontology file not found."
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "404": {
            "description": "The ontology was not found."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontologies/{ontologyId}/metadata/schema": {
      "get": {
        "tags": [
          "Ontologies"
        ],
        "summary": "Retrieves metadata field schema for the specified ontology.",
        "operationId": "Ontologies_GetMetadataSchema",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "ontologyId",
            "in": "path",
            "required": true,
            "description": "The ID of the ontology.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Successfully retrieved ontology metadata schema.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/OntologyMetadataFieldSchemaDto"
              }
            }
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "404": {
            "description": "The ontology was not found."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontology-editor/{ontologyId}/source-file": {
      "put": {
        "tags": [
          "OntologyEditor"
        ],
        "summary": "Saves the authoritative library source file for an ontology using compare-and-replace semantics.\nThe request must include the SHA-256 hash of the content that was last downloaded.\nReturns HTTP 409 when the file has changed since the client loaded it.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "OntologyEditor_SaveSourceFile",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The workspace ID.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "ontologyId",
            "in": "path",
            "required": true,
            "description": "The ontology ID.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The file type, content, and expected source hash.",
            "schema": {
              "$ref": "#/definitions/OntologySourceFileSaveRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The file was saved; returns the new source hash and any reload warnings.",
            "schema": {
              "$ref": "#/definitions/OntologySourceFileSaveResponseDto"
            }
          },
          "400": {
            "description": "The file type is read-only, content is invalid, or the request is malformed."
          },
          "403": {
            "description": "The user is not the workspace owner or does not have edit permission."
          },
          "409": {
            "description": "The expected hash does not match the current file; the client must reload."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/ontology-editor/{ontologyId}/editor-symbols": {
      "get": {
        "tags": [
          "OntologyEditor"
        ],
        "summary": "Returns import-scoped symbols and prefixes backed by Fuseki named graphs.\nThe scope includes the current ontology and its transitive import closure.\nMissing or ambiguous graphs are reported as non-blocking warnings.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,STK,SME`</i></b>",
        "operationId": "OntologyEditor_GetEditorSymbols",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The workspace ID.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "ontologyId",
            "in": "path",
            "required": true,
            "description": "The ontology ID.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "boolean",
            "name": "forceRefresh",
            "in": "query",
            "description": "When true, bypass the server-side cache and re-query Fuseki.",
            "default": false,
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The symbol list, prefixes, warnings, and provenance metadata.",
            "schema": {
              "$ref": "#/definitions/OntologyEditorSymbolsResponseDto"
            }
          },
          "403": {
            "description": "The user is not the workspace owner or does not have download permission."
          }
        }
      }
    },
    "/api/personal-access-tokens": {
      "post": {
        "tags": [
          "PersonalAccessTokens"
        ],
        "summary": "Create Personal Access token to specific context",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME,SYSADM`</i></b>",
        "operationId": "PersonalAccessTokens_Create",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "pAtCreateRequestDto",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PATCreateRequestDTO"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/PATCreateResponseDto"
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/prefixes": {
      "get": {
        "tags": [
          "Prefixes"
        ],
        "summary": "Get Workspace Prefixes",
        "description": "Get All The Prefixes of this workspace.",
        "operationId": "Prefixes_Get",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the list of prefixes.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/PrefixResponseDto"
              }
            }
          },
          "404": {
            "description": "If the specified context is not found."
          },
          "400": {
            "description": "If the request is invalid or the operation cannot be completed."
          },
          "500": {
            "description": "If an internal server error occurs during the operation."
          }
        }
      },
      "post": {
        "tags": [
          "Prefixes"
        ],
        "summary": "Save Workspace Prefixes",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "Prefixes_Save",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "List of prefixes for bulk update in prefix file.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/PrefixRequestDto"
              }
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "On Successful Save will return 200 result."
          },
          "404": {
            "description": "If the specified context is not found."
          },
          "400": {
            "description": "If the request is invalid or the operation cannot be completed."
          },
          "500": {
            "description": "If an internal server error occurs during the operation."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/prefixes/lists": {
      "get": {
        "tags": [
          "Prefixes"
        ],
        "summary": "Retrieve the prefix list associated with a workspace.",
        "description": "Retrieves all the prefix list of the specified workspace.",
        "operationId": "Prefixes_GetList",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the list of prefix list.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/PrefixListResponseDto"
              }
            }
          },
          "404": {
            "description": "The specified workspace is not found."
          },
          "403": {
            "description": "The user is not the owner of the workspace."
          },
          "400": {
            "description": "The request is invalid or the operation cannot be completed."
          },
          "500": {
            "description": "Internal server error occurs during the operation."
          }
        }
      },
      "post": {
        "tags": [
          "Prefixes"
        ],
        "summary": "Save prefix list for a workspace.",
        "description": "This endpoint saves the list of prefixes for the specified workspace.\n\n <b><i>Role(s) required: `ONTADM,ONT`</i></b>",
        "operationId": "Prefixes_SaveList",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "Prefix list request DTO.",
            "schema": {
              "$ref": "#/definitions/PrefixListRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "201": {
            "description": "The prefix list is successfully saved."
          },
          "400": {
            "description": "Invalid request or operation cannot be completed."
          },
          "403": {
            "description": "The user is not the owner of the workspace."
          },
          "500": {
            "description": "Internal server error occurs during the operation."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/prefixes/lists/{prefixListId}": {
      "patch": {
        "tags": [
          "Prefixes"
        ],
        "summary": "Update the prefix list for a workspace.",
        "description": "Updates the prefix list associated with the specified workspace.\n\n <b><i>Role(s) required: `ONTADM,ONT`</i></b>",
        "operationId": "Prefixes_UpdateList",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "prefixListId",
            "in": "path",
            "required": true,
            "description": "The ID of the prefix list.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "Prefix list update request DTO.",
            "schema": {
              "$ref": "#/definitions/PrefixListUpdateRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "The prefix list is successfully updated."
          },
          "404": {
            "description": "The specified workspace or prefix list is not found."
          },
          "403": {
            "description": "The user is not the owner of the workspace."
          },
          "400": {
            "description": "Invalid request or operation cannot be completed."
          },
          "500": {
            "description": "Internal server error occurs during the operation."
          }
        }
      },
      "delete": {
        "tags": [
          "Prefixes"
        ],
        "summary": "Delete a prefix list associated with a workspace.",
        "description": "Deletes the prefix list corresponding to the specified workspace.\n\n <b><i>Role(s) required: `ONTADM,ONT`</i></b>",
        "operationId": "Prefixes_DeletePrefixList",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "prefixListId",
            "in": "path",
            "required": true,
            "description": "The ID of the prefix list.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Returns success upon deleting the prefix list."
          },
          "404": {
            "description": "The specified workspace or prefix list is not found."
          },
          "403": {
            "description": "The user is not the owner of the workspace."
          },
          "500": {
            "description": "Internal server error occurs during the operation."
          }
        }
      }
    },
    "/api/profile": {
      "get": {
        "tags": [
          "Profile"
        ],
        "summary": "Get Api for Retrieve Logged in User",
        "operationId": "Profile_GetProfile",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/ApplicationUserDto"
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Profile"
        ],
        "summary": "Deletes the current user's account (GDPR right to erasure).\nAnonymizes user data and cleans up associated workspaces.",
        "operationId": "Profile_DeleteAccount",
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Account deletion has been initiated."
          },
          "400": {
            "description": "Bad request. The user is the only System Administrator."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/profile/roles/{role}": {
      "patch": {
        "tags": [
          "Profile"
        ],
        "summary": "Update the user's active role.",
        "operationId": "Profile_UpdateRole",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "role",
            "in": "path",
            "required": true,
            "description": "The role that the user wants to set as the active role.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the updated active role information.",
            "schema": {
              "$ref": "#/definitions/ActiveRoleResponseDto"
            }
          },
          "400": {
            "description": "Bad request. The provided role is invalid or not allowed."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/profile/roles": {
      "get": {
        "tags": [
          "Profile"
        ],
        "summary": "Retrieve user roles and the active role.",
        "operationId": "Profile_GetRoles",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns user roles information including active role",
            "schema": {
              "$ref": "#/definitions/RoleResponseDto"
            }
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/qa/runs/{qaListId}": {
      "post": {
        "tags": [
          "QARuns"
        ],
        "summary": "Start a QA Run for a QA List",
        "description": "This API will run with Mocked QA Assurance Items\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,STK,SME`</i></b>",
        "operationId": "QARuns_Start",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "qaListId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "description": "Optional request payload (array form supported).",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/QARunStartRequestDto"
              }
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "QA Run started successfully"
          },
          "400": {
            "description": "Bad Request"
          },
          "404": {
            "description": "Not Found"
          },
          "500": {
            "description": "Internal Server Error"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/qa/runs/{id}/stop": {
      "post": {
        "tags": [
          "QARuns"
        ],
        "summary": "Stop running QA Run",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,STK,SME`</i></b>",
        "operationId": "QARuns_Stop",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "id",
            "in": "path",
            "required": true,
            "description": "QARunId",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "QA Run stopped successfully"
          },
          "400": {
            "description": "Bad Request"
          },
          "500": {
            "description": "Internal Server Error"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/qa/runs/{qaListId}/histories": {
      "get": {
        "tags": [
          "QARuns"
        ],
        "summary": "Retrieves the history of QA list runs for a specific QA list within the workspace.",
        "operationId": "QARuns_GetQARunHistories",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace containing the QA list.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "qaListId",
            "in": "path",
            "required": true,
            "description": "The ID of the QA list for which history is requested.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the last 10 history entries of QA list runs for the specified QA list.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/QAListRunHistoryResponseDto"
              }
            }
          },
          "403": {
            "description": "If the user is not the owner of the workspace."
          },
          "500": {
            "description": "If there is any internal server error while retrieving the QA list run history."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/qa/runs/{qaRunId}/steps": {
      "get": {
        "tags": [
          "QARuns"
        ],
        "summary": "Retrieves the steps for a specific QA list run within the workspace.",
        "operationId": "QARuns_GetQARunsSteps",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace containing the QA list.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "qaRunId",
            "in": "path",
            "required": true,
            "description": "The ID of the QA list run for which steps are requested.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the steps for the specified QA list run.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/QARunStepResponseDto"
              }
            }
          },
          "403": {
            "description": "If the user does not have permission to access the workspace."
          },
          "500": {
            "description": "If there is any internal server error while retrieving the QA list run steps."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/qa/runs/{qaRunStepId}/stepdetails": {
      "get": {
        "tags": [
          "QARuns"
        ],
        "summary": "Retrieves the detailed information for a specific step of a QA list run within the workspace.",
        "operationId": "QARuns_GetQARunStepDetails",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace containing the QA list run.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "qaRunStepId",
            "in": "path",
            "required": true,
            "description": "The ID of the specific step for which details are requested.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the detailed information for the specified step of the QA list run.",
            "schema": {
              "$ref": "#/definitions/QARunStepDetailsResponseDto"
            }
          },
          "403": {
            "description": "If the user does not have permission to access the workspace."
          },
          "404": {
            "description": "If the QA run step not found."
          },
          "500": {
            "description": "If there is any internal server error while retrieving the step details."
          }
        }
      }
    },
    "/api/quality-assurances/{contextId}": {
      "get": {
        "tags": [
          "QualityAssurances"
        ],
        "summary": "Get Quality Assurances by Context Id",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "QualityAssurances_GetByContextId",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "contextId",
            "in": "path",
            "required": true,
            "description": "Context Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns Quality Assurances",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/QualityAssuranceResponseDto"
              }
            }
          },
          "404": {
            "description": "If Quality Assurances not found"
          },
          "500": {
            "description": "If an error occurred"
          },
          "401": {
            "description": "If user is not authenticated"
          },
          "403": {
            "description": "If user is not authorized"
          },
          "400": {
            "description": "If request is invalid"
          }
        }
      }
    },
    "/api/quality-assurances/{workspaceId}/lists": {
      "get": {
        "tags": [
          "QualityAssurances"
        ],
        "summary": "Retrieve the Quality Assurance list by workspace Id",
        "operationId": "QualityAssurances_GetQAList",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The workspace Id for which to retrieve the Quality Assurance list",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the QA list with run log",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/QAListResponseDto"
              }
            }
          },
          "500": {
            "description": "If an internal server error occurs"
          },
          "403": {
            "description": "If the user is not authorized"
          }
        }
      }
    },
    "/api/quality-assurances/{contextId}/items": {
      "get": {
        "tags": [
          "QualityAssurances"
        ],
        "summary": "Get Quality Assurance Items by Context Id",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "QualityAssurances_GetItems",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "contextId",
            "in": "path",
            "required": true,
            "description": "Context Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns Quality Assurance Items",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/QualityAssuranceDto"
              }
            }
          },
          "404": {
            "description": "If Quality Assurance Items not found"
          },
          "500": {
            "description": "If an error occurred"
          },
          "401": {
            "description": "If user is not authenticated"
          },
          "403": {
            "description": "If user is not authorized"
          },
          "400": {
            "description": "If request is invalid"
          }
        }
      }
    },
    "/api/quality-assurances": {
      "post": {
        "tags": [
          "QualityAssurances"
        ],
        "summary": "Create Quality Assurance",
        "description": "\n\n <b><i>Role(s) required: `ONTADM`</i></b>",
        "operationId": "QualityAssurances_Create",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "Quality Assurance Request",
            "schema": {
              "$ref": "#/definitions/QualityAssuranceRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "201": {
            "description": "After Successful Creation"
          },
          "404": {
            "description": "If Quality Assurance Items not found"
          },
          "500": {
            "description": "If an error occurred"
          },
          "401": {
            "description": "If user is not authenticated"
          },
          "403": {
            "description": "If user is not authorized"
          },
          "400": {
            "description": "If request is invalid"
          }
        }
      }
    },
    "/api/quality-assurances/details/{id}": {
      "get": {
        "tags": [
          "QualityAssurances"
        ],
        "summary": "Get Quality Assurance by Id",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "QualityAssurances_Get",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Quality Assurance Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns Quality Assurance ",
            "schema": {
              "$ref": "#/definitions/QualityAssuranceResponseDto"
            }
          },
          "404": {
            "description": "If Quality Assurance Items not found"
          },
          "500": {
            "description": "If an error occurred"
          },
          "401": {
            "description": "If user is not authenticated"
          },
          "403": {
            "description": "If user is not authorized"
          },
          "400": {
            "description": "If request is invalid"
          }
        }
      }
    },
    "/api/quality-assurances/{id}": {
      "patch": {
        "tags": [
          "QualityAssurances"
        ],
        "summary": "Update Quality Assurance by Id",
        "description": "\n\n <b><i>Role(s) required: `ONTADM`</i></b>",
        "operationId": "QualityAssurances_Update",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Quality Assurance Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/QualityAssuranceRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "After successful update"
          },
          "404": {
            "description": "If Quality Assurance Items not found"
          },
          "500": {
            "description": "If an error occurred"
          },
          "401": {
            "description": "If user is not authenticated"
          },
          "403": {
            "description": "If user is not authorized"
          },
          "400": {
            "description": "If request is invalid"
          }
        }
      },
      "delete": {
        "tags": [
          "QualityAssurances"
        ],
        "summary": "Delete Quality Assurance by Id",
        "description": "\n\n <b><i>Role(s) required: `ONTADM`</i></b>",
        "operationId": "QualityAssurances_Delete",
        "parameters": [
          {
            "type": "string",
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Quality Assurance Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "After successful delete"
          },
          "404": {
            "description": "If Quality Assurance Items not found"
          },
          "500": {
            "description": "If an error occurred"
          },
          "401": {
            "description": "If user is not authenticated"
          },
          "403": {
            "description": "If user is not authorized"
          },
          "400": {
            "description": "If request is invalid"
          }
        }
      }
    },
    "/api/quality-assurances/parameters/{qualityAssuranceId}": {
      "get": {
        "tags": [
          "QualityAssurances"
        ],
        "summary": "Get QA Step Parameters by Quality Assurance Id",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "QualityAssurances_GetQAStepParametersByQualityAssuranceId",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "qualityAssuranceId",
            "in": "path",
            "required": true,
            "description": "Quality Assurance Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns QA Step Parameters",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/QAStepParameterResponseDto"
              }
            }
          },
          "404": {
            "description": "If QA Step Parameters not found"
          },
          "500": {
            "description": "If an error occurred"
          },
          "401": {
            "description": "If user is not authenticated"
          },
          "403": {
            "description": "If user is not authorized"
          },
          "400": {
            "description": "If request is invalid"
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/query-builder/database/status": {
      "get": {
        "tags": [
          "QueryBuilder"
        ],
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "QueryBuilder_GetDatabaseStatus",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": true,
            "description": "",
            "schema": {
              "type": "file"
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/query-builder/catalog": {
      "get": {
        "tags": [
          "QueryBuilder"
        ],
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "QueryBuilder_GetCatalog",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": true,
            "description": "",
            "schema": {
              "type": "file"
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/query-builder/query/run": {
      "post": {
        "tags": [
          "QueryBuilder"
        ],
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "QueryBuilder_RunQuery",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "schema": {
              "additionalProperties": {}
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": true,
            "description": "",
            "schema": {
              "type": "file"
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/query-builder/queries": {
      "get": {
        "tags": [
          "QueryBuilder"
        ],
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "QueryBuilder_ListQueries",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": true,
            "description": "",
            "schema": {
              "type": "file"
            }
          }
        }
      },
      "post": {
        "tags": [
          "QueryBuilder"
        ],
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "QueryBuilder_SaveQuery",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "schema": {
              "additionalProperties": {}
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": true,
            "description": "",
            "schema": {
              "type": "file"
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/query-builder/queries/{queryId}": {
      "get": {
        "tags": [
          "QueryBuilder"
        ],
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "QueryBuilder_GetQuery",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "queryId",
            "in": "path",
            "required": true,
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": true,
            "description": "",
            "schema": {
              "type": "file"
            }
          }
        }
      },
      "delete": {
        "tags": [
          "QueryBuilder"
        ],
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "QueryBuilder_DeleteQuery",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "queryId",
            "in": "path",
            "required": true,
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": true,
            "description": "",
            "schema": {
              "type": "file"
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/reference-labels": {
      "get": {
        "tags": [
          "ReferenceLabels"
        ],
        "summary": "Gets the display label for one resource. Use csv://{file}:{row}:{column} for a direct\nsource-cell lookup, or a full/prefixed IRI for an ontology label. Returns the same\nstructured shape as the triplestore (sparql) endpoints.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,STK,SME`</i></b>",
        "operationId": "ReferenceLabels_GetLabel",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The workspace ID.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "resource",
            "in": "query",
            "description": "The typed resource string.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The resolved reference label.",
            "schema": {
              "$ref": "#/definitions/ReferenceLabelDto"
            }
          },
          "204": {
            "description": "No label is available for the resource."
          },
          "400": {
            "description": "The resource string is malformed."
          },
          "403": {
            "description": "User is not the workspace owner."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/reference-labels/resolve": {
      "post": {
        "tags": [
          "ReferenceLabels"
        ],
        "summary": "Resolves many resources in one request. Resources with no label are omitted rather\nthan returned as null. Returns the same structured shape as the sparql endpoints.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,STK,SME`</i></b>",
        "operationId": "ReferenceLabels_ResolveLabels",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The workspace ID.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The resources to resolve.",
            "schema": {
              "$ref": "#/definitions/ReferenceLabelsRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The resolved reference labels.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/ReferenceLabelDto"
              }
            }
          },
          "400": {
            "description": "A resource string is malformed."
          },
          "403": {
            "description": "User is not the workspace owner."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/reference-labels/sparql/resolve": {
      "post": {
        "tags": [
          "ReferenceLabels"
        ],
        "summary": "Resolves display labels for a batch of IRIs against the triplestore. The SPARQL query is\nbuilt on the server; the client supplies only the IRIs. IRIs without a label are omitted.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,STK,SME`</i></b>",
        "operationId": "ReferenceLabels_ResolveTriplestoreLabels",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The workspace ID.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The IRIs to resolve.",
            "schema": {
              "$ref": "#/definitions/SparqlLabelBatchRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The resolved reference labels.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/ReferenceLabelDto"
              }
            }
          },
          "403": {
            "description": "User is not the workspace owner."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/reference-labels/sparql/search": {
      "get": {
        "tags": [
          "ReferenceLabels"
        ],
        "summary": "Searches triplestore terms by label or IRI substring. The SPARQL query is built on the\nserver; the client supplies only the search text.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,STK,SME`</i></b>",
        "operationId": "ReferenceLabels_SearchTriplestoreLabels",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The workspace ID.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "query",
            "in": "query",
            "description": "The search text.",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "limit",
            "in": "query",
            "description": "Maximum number of results (capped server-side).",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The matching reference labels.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/ReferenceLabelDto"
              }
            }
          },
          "403": {
            "description": "User is not the workspace owner."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/reference-labels/sparql/all": {
      "get": {
        "tags": [
          "ReferenceLabels"
        ],
        "summary": "Returns every labelled term in the triplestore with its namespace/local-name split.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,STK,SME`</i></b>",
        "operationId": "ReferenceLabels_GetAllTriplestoreLabels",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The workspace ID.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "All reference labels in the triplestore.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/ReferenceLabelDto"
              }
            }
          },
          "403": {
            "description": "User is not the workspace owner."
          }
        }
      }
    },
    "/api/personal-access-tokens/validate": {
      "post": {
        "tags": [
          "RepositoryPat"
        ],
        "description": "\n\n <b><i>Role(s) required: `ONTADM`</i></b>",
        "operationId": "RepositoryPat_Validate",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "request",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/PATCreateRequestDTO"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/RepositoryPatValidationDto"
              }
            }
          }
        }
      }
    },
    "/api/personal-access-tokens/repository-status": {
      "get": {
        "tags": [
          "RepositoryPat"
        ],
        "description": "\n\n <b><i>Role(s) required: `ONTADM`</i></b>",
        "operationId": "RepositoryPat_Status",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "boolean",
            "name": "refresh",
            "in": "query",
            "default": false,
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/RepositoryAccessResponseDto"
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/{entityId}/requirements/explorations/by-requirements": {
      "get": {
        "tags": [
          "Requirements"
        ],
        "summary": "Retrieves requirements for a specific entity within a workspace.",
        "description": "`This API returns a mock value.`",
        "operationId": "Requirements_GetRequirements",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace containing the entity.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "entityId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the entity to fetch requirements for.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the requirements for the specified entity.",
            "schema": {
              "$ref": "#/definitions/RequirementsResponseDto"
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/{entityId}/requirements/explorations/by-requirements/{requirementId}/individuals": {
      "get": {
        "tags": [
          "Requirements"
        ],
        "summary": "Retrieves individuals for a specific requirement within a workspace.",
        "description": "`This API returns a mock value.`",
        "operationId": "Requirements_GetIndividualByRequirements",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace containing the entity.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "entityId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the entity to fetch requirements for.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "requirementId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the requirement to fetch individual for.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the individual for the specified requirement.",
            "schema": {
              "$ref": "#/definitions/RequirementsResponseDto"
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/{entityId}/requirements/explorations/by-individuals": {
      "get": {
        "tags": [
          "Requirements"
        ],
        "summary": "Retrieves individual requirements for a specific entity within a workspace.",
        "description": "`This API returns a mock value.`",
        "operationId": "Requirements_GetIndividualRequirement",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace containing the entity.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "entityId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the entity to fetch requirements for.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the requirements for the specified entity.",
            "schema": {
              "$ref": "#/definitions/RequirementsResponseDto"
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/{entityId}/requirements/explorations/by-individuals/{individualId}/requirements": {
      "get": {
        "tags": [
          "Requirements"
        ],
        "summary": "Retrieves requirement for a specific individual within a workspace.",
        "description": "`This API returns a mock value.`",
        "operationId": "Requirements_GetRequirementsByIndividual",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace containing the entity.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "entityId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the entity to fetch requirements for.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "individualId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the individual to fetch requirements for.",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the individual for the specified requirement.",
            "schema": {
              "$ref": "#/definitions/RequirementsResponseDto"
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/search": {
      "get": {
        "tags": [
          "Search"
        ],
        "summary": "Fuzzy Search for a term in the workspace in datafile csv and ttl",
        "operationId": "Search_GetSearchResult",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace ID",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "searchTerm",
            "in": "query",
            "description": "Search String",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "searchType",
            "in": "query",
            "x-schema": {
              "$ref": "#/definitions/SearchType"
            },
            "x-nullable": true,
            "enum": [
              "Datafile",
              "TTL"
            ]
          },
          {
            "type": "string",
            "name": "fileName",
            "in": "query",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Once Successfully Retrieve Search Result from Workspace.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/SearchResultDto"
              }
            }
          },
          "400": {
            "description": "Bad request, possibly due to invalid parameters."
          },
          "404": {
            "description": "File not found."
          },
          "403": {
            "description": "Forbidden, user does not have the required access to the workspace."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/shacl-files": {
      "get": {
        "tags": [
          "ShaclFiles"
        ],
        "operationId": "ShaclFiles_GetFiles",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/ShaclFileDto"
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "ShaclFiles"
        ],
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "ShaclFiles_CreateFile",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ShaclFileContentRequest"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          },
          "400": {
            "description": ""
          },
          "403": {
            "description": ""
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/shacl-files/{fileName}/content": {
      "get": {
        "tags": [
          "ShaclFiles"
        ],
        "operationId": "ShaclFiles_GetFileContent",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "fileName",
            "in": "path",
            "required": true,
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "type": "string"
            }
          },
          "404": {
            "description": ""
          }
        }
      },
      "put": {
        "tags": [
          "ShaclFiles"
        ],
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "ShaclFiles_SaveFileContent",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "fileName",
            "in": "path",
            "required": true,
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/ShaclFileContentUpdateRequest"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          },
          "400": {
            "description": ""
          },
          "403": {
            "description": ""
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/shacl-files/upload": {
      "post": {
        "tags": [
          "ShaclFiles"
        ],
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "ShaclFiles_UploadFile",
        "consumes": [
          "multipart/form-data"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "file",
            "name": "file",
            "in": "formData",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          },
          "400": {
            "description": ""
          },
          "403": {
            "description": ""
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/shacl-files/{fileName}": {
      "delete": {
        "tags": [
          "ShaclFiles"
        ],
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "ShaclFiles_DeleteFile",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "fileName",
            "in": "path",
            "required": true,
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "204": {
            "description": ""
          },
          "404": {
            "description": ""
          },
          "403": {
            "description": ""
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/shacl-files/{fileName}/mappings": {
      "get": {
        "tags": [
          "ShaclFiles"
        ],
        "operationId": "ShaclFiles_GetMappings",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "fileName",
            "in": "path",
            "required": true,
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/ShaclMappingDto"
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "ShaclFiles"
        ],
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "ShaclFiles_UpsertMappings",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "fileName",
            "in": "path",
            "required": true,
            "x-nullable": false
          },
          {
            "name": "rows",
            "in": "body",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/ShaclMappingDto"
              }
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          },
          "403": {
            "description": ""
          }
        }
      },
      "delete": {
        "tags": [
          "ShaclFiles"
        ],
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "ShaclFiles_DeleteMappings",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "fileName",
            "in": "path",
            "required": true,
            "x-nullable": false
          },
          {
            "name": "ontologyIds",
            "in": "body",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "204": {
            "description": ""
          },
          "403": {
            "description": ""
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/shacl-files/{fileName}/has-mappings": {
      "get": {
        "tags": [
          "ShaclFiles"
        ],
        "operationId": "ShaclFiles_HasMappings",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "fileName",
            "in": "path",
            "required": true,
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "type": "boolean"
            }
          }
        }
      }
    },
    "/api/sparql/{queryType}": {
      "get": {
        "tags": [
          "Sparql"
        ],
        "summary": "Retrieves saved SPARQL files based on the query type and workspace ID.",
        "operationId": "Sparql_GetSavedSparqlFiles",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "queryType",
            "in": "path",
            "required": true,
            "description": "The type of SPARQL query (e.g., Common, Context).",
            "x-schema": {
              "$ref": "#/definitions/SparqlQueryType"
            },
            "x-nullable": false,
            "enum": [
              "Common",
              "Context"
            ]
          },
          {
            "type": "string",
            "name": "workspaceId",
            "in": "query",
            "description": "The ID of the workspace.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "An array of saved SPARQL file names.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "400": {
            "description": "When workspaceId is not provided."
          }
        }
      },
      "post": {
        "tags": [
          "Sparql"
        ],
        "summary": "Saves a SPARQL query of the specified type.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Sparql_SaveSparqlQuery",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "queryType",
            "in": "path",
            "required": true,
            "description": "The type of SPARQL query being saved.",
            "x-schema": {
              "$ref": "#/definitions/SparqlQueryType"
            },
            "x-nullable": false,
            "enum": [
              "Common",
              "Context"
            ]
          },
          {
            "name": "saveRequest",
            "in": "body",
            "required": true,
            "description": "DTO containing details of the SPARQL query to be saved.",
            "schema": {
              "$ref": "#/definitions/SparqlSaveRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "201": {
            "description": "Returned upon successful creation of the SPARQL query."
          },
          "400": {
            "description": "Returned if the request is malformed or contains invalid data."
          },
          "403": {
            "description": "Returned if the user does not have permission to save the query."
          },
          "500": {
            "description": "Returned if an unexpected error occurs during the save operation."
          }
        }
      }
    },
    "/api/sparql/{queryType}/{fileNameWithExtension}": {
      "get": {
        "tags": [
          "Sparql"
        ],
        "summary": "Retrieves the content of a saved SPARQL file based on the query type, file name with extension, and workspace ID.",
        "operationId": "Sparql_GetSavedSparqlFileContent",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "queryType",
            "in": "path",
            "required": true,
            "description": "The type of SPARQL query (e.g., Common, Context).",
            "x-schema": {
              "$ref": "#/definitions/SparqlQueryType"
            },
            "x-nullable": false,
            "enum": [
              "Common",
              "Context"
            ]
          },
          {
            "type": "string",
            "name": "fileNameWithExtension",
            "in": "path",
            "required": true,
            "description": "The name of the saved SPARQL file along with its extension.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "workspaceId",
            "in": "query",
            "description": "The ID of the workspace.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The content of the saved SPARQL file.",
            "schema": {
              "type": "string"
            }
          },
          "400": {
            "description": "When workspaceId is not provided."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/sparql/common/{fileNameWithExtension}": {
      "post": {
        "tags": [
          "Sparql"
        ],
        "summary": "Execute the saved SPARQL query based on the file name with extension, workspace ID, and provided SPARQL variables' values.",
        "operationId": "Sparql_ExecuteSparql",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace where the query will be executed.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "fileNameWithExtension",
            "in": "path",
            "required": true,
            "description": "The name of the saved SPARQL file along with its extension.",
            "x-nullable": false
          },
          {
            "type": "object",
            "name": "queries",
            "in": "query",
            "description": "The variable list of the SPARQL query. Pass the queries parameter as an object from Swagger UI and follow the general process to pass multiple query strings for other environments.\n            Example: To pass query strings like `?query1=query1-value&query2=query2-value` use `{\"query1\":\"query1-value\",\"query2\":\"query2-value\"}`",
            "x-nullable": false,
            "additionalProperties": {
              "type": "string"
            }
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the execution result of SPARQL.",
            "schema": {}
          },
          "400": {
            "description": "If there is any error that occurred in OE."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/templates": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "Get stottr templates name list withing the specified workspace.",
        "operationId": "Templates_Get",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which ontology details will be return.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "templateType",
            "in": "query",
            "description": "The type of the template. Valid values are **ContextOnly**, **All**. If no value pass then **ContextOnly** will be consider",
            "x-schema": {
              "$ref": "#/definitions/StottrTemplateType"
            },
            "x-nullable": true,
            "enum": [
              "ContextOnly",
              "All"
            ]
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The API will respond with a 200 status code, and stottr template list will be included in the response body.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/TemplateResponseDto"
              }
            }
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/templates/{templateUId}": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "Get template details by workspace id and templateUid.",
        "operationId": "Templates_GetTemplateDetails",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which template details will be return.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "templateUId",
            "in": "path",
            "required": true,
            "description": "Template Uid, templateUid value will be stottr template name",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The API will respond with a 200 status code, and template details will be included in the response body.",
            "schema": {
              "$ref": "#/definitions/TemplateDetailsResponseDto"
            }
          },
          "400": {
            "description": "If the ontology/template file is not found."
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "404": {
            "description": "Template not found"
          },
          "500": {
            "description": "Internal server error."
          }
        }
      },
      "put": {
        "tags": [
          "Templates"
        ],
        "summary": "Edits the content of a template file by workspace ID and template UID.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT`</i></b>",
        "operationId": "Templates_EditTemplate",
        "consumes": [
          "multipart/form-data"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace where the template will be edited.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "templateUId",
            "in": "path",
            "required": true,
            "description": "Template Uid, templateUid value will be stottr/botter template name",
            "x-nullable": false
          },
          {
            "type": "file",
            "name": "file",
            "in": "formData",
            "description": "The template file to upload. The filename must be specified in the from body as file",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "type",
            "in": "formData",
            "description": "The type of the template. Valid values are **stottr**,**bottr**.This value should be passed in the from body.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The template was successfully edited.",
            "schema": {
              "$ref": "#/definitions/TemplateDetailsResponseDto"
            }
          },
          "400": {
            "description": "The ontology/template file is not found or the uploaded file is not valid."
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "404": {
            "description": "The Template was not found"
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/templates/upload": {
      "post": {
        "tags": [
          "Templates"
        ],
        "summary": "Uploads a template file.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,ONT,CTXADM`</i></b>",
        "operationId": "Templates_UploadTemplate",
        "consumes": [
          "multipart/form-data"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace where the template will be edited.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "file",
            "name": "file",
            "in": "formData",
            "description": "The template file to upload. The filename must be specified in the from body as file",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "type",
            "in": "formData",
            "description": "The type of the template. Valid values are **stottr**,**bottr**.This value should be passed in the from body.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The template was successfully uploaded.",
            "schema": {
              "$ref": "#/definitions/TemplateDetailsResponseDto"
            }
          },
          "400": {
            "description": "Failed to upload in the ontology engine or file type is invalid."
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/templates/check-sql": {
      "post": {
        "tags": [
          "Templates"
        ],
        "summary": "Check the sql query is valid or not on template file.",
        "operationId": "Templates_CheckSql",
        "consumes": [
          "multipart/form-data"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "file",
            "name": "file",
            "in": "formData",
            "description": "Bottr File as filestream",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "The template sql has executed successfully.",
            "schema": {}
          },
          "400": {
            "description": ""
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/templates/{fileName}": {
      "delete": {
        "tags": [
          "Templates"
        ],
        "summary": "Deletes a bottr file.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,ONT,CTXADM`</i></b>",
        "operationId": "Templates_DeleteBottr",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the Bottr workspace.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "fileName",
            "in": "path",
            "required": true,
            "description": "The name of the file to be deleted.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "An asynchronous operation that represents the deletion of the file."
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "404": {
            "description": "The file is not present in the workspace."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/templates/{fileName}/rename-bottr-file": {
      "put": {
        "tags": [
          "Templates"
        ],
        "summary": "Renames a bottr file.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,ONT,CTXADM`</i></b>",
        "operationId": "Templates_RenameBottr",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace where the template will be renamed.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "fileName",
            "in": "path",
            "required": true,
            "description": "The current name of the file to be renamed.",
            "x-nullable": false
          },
          {
            "name": "requestDto",
            "in": "body",
            "required": true,
            "description": "The data transfer object containing the new name for the file.",
            "schema": {
              "$ref": "#/definitions/BottrFileRenameRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "An asynchronous operation that represents the renaming of the file."
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "404": {
            "description": "The file is not present in the workspace."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/templates/{type}/{templateName}/associated-templates": {
      "get": {
        "tags": [
          "Templates"
        ],
        "summary": "Retrieves the associated templates for a given template in a workspace.",
        "operationId": "Templates_GetAssociatedTemplates",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "type",
            "in": "path",
            "required": true,
            "description": "The type of the template (Bottr or Stottr).",
            "x-schema": {
              "$ref": "#/definitions/TemplateType"
            },
            "x-nullable": false,
            "enum": [
              "Stottr",
              "Bottr"
            ]
          },
          {
            "type": "string",
            "name": "templateName",
            "in": "path",
            "required": true,
            "description": "The name of the template to find associated templates for.",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the list of associated templates.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/templates/create-empty": {
      "post": {
        "tags": [
          "Templates"
        ],
        "summary": "Adds a template with the specified type and empty content.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,ONT,CTXADM`</i></b>",
        "operationId": "Templates_AddTemplate",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace where the template will be added.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/TemplateCreateRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "The template was successfully added."
          },
          "400": {
            "description": "Invalid template type."
          },
          "403": {
            "description": "The user does not have access to the workspace."
          },
          "500": {
            "description": "Internal server error."
          }
        }
      }
    },
    "/api/updates": {
      "get": {
        "tags": [
          "Updates"
        ],
        "summary": "Get User Updates",
        "operationId": "Updates_Get",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns a list of user updates.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/UpdateResponseDto"
              }
            }
          },
          "400": {
            "description": "If the user doesn't have a Personal Access Token (PAT) set."
          },
          "403": {
            "description": "If the PAT token has expired."
          },
          "500": {
            "description": "An unexpected server error occurred."
          }
        }
      }
    },
    "/api/updates/migrate": {
      "post": {
        "tags": [
          "Updates"
        ],
        "summary": "Migrate existing update's record based on latest DB schema. This is a temporary endpoint, and we will remove it once the migration is complete.",
        "operationId": "Updates_Update",
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        }
      }
    },
    "/api/updates/failed-migration": {
      "delete": {
        "tags": [
          "Updates"
        ],
        "summary": "Delete record which failed to migrate. This is a temporary endpoint, and we will remove it once the migration is complete.",
        "operationId": "Updates_Delete",
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        }
      }
    },
    "/api/users/{id}/repository-access": {
      "get": {
        "tags": [
          "UserRepositoryAccess"
        ],
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "UserRepositoryAccess_Get",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "id",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/RepositoryAccessResponseDto"
            }
          }
        }
      },
      "put": {
        "tags": [
          "UserRepositoryAccess"
        ],
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "UserRepositoryAccess_Set",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "id",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/RepositoryAccessAssignmentDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/RepositoryAccessResponseDto"
            }
          }
        }
      }
    },
    "/api/users/repository-access/assignable": {
      "get": {
        "tags": [
          "UserRepositoryAccess"
        ],
        "description": "\n\n <b><i>Role(s) required: `SYSADM,ONTADM`</i></b>",
        "operationId": "UserRepositoryAccess_Assignable",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/RepositoryAccessResponseDto"
            }
          }
        }
      }
    },
    "/api/users/repository-access/coverage": {
      "get": {
        "tags": [
          "UserRepositoryAccess"
        ],
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "UserRepositoryAccess_Coverage",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/RepositoryAccessResponseDto"
              }
            }
          }
        }
      }
    },
    "/api/users/repository-access/coverage/remediate": {
      "post": {
        "tags": [
          "UserRepositoryAccess"
        ],
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "UserRepositoryAccess_Remediate",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "request",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/RepositoryCoverageRemediationDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/RepositoryAccessResponseDto"
            }
          }
        }
      }
    },
    "/api/users/with-roles": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Gets the list of users with roles and contexts.",
        "description": "\n\n <b><i>Role(s) required: `SYSADM,ONTADM`</i></b>",
        "operationId": "Users_GetUsersWithRoles",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the list of users with roles and contexts.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/UserResponseDto"
              }
            }
          },
          "403": {
            "description": "If the user does not have permission to access this api."
          },
          "500": {
            "description": "If there is an internal server error."
          }
        }
      }
    },
    "/api/users": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Gets the list of users.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,SYSADM,CTXADM`</i></b>",
        "operationId": "Users_GetUsers",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the list of users",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/ApplicationUserResponseDto"
              }
            }
          },
          "403": {
            "description": "If the user does not have permission to access this api."
          },
          "500": {
            "description": "If there is an internal server error."
          }
        }
      },
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Create User to Application db and veracity service",
        "description": "\n\n <b><i>Role(s) required: `SYSADM,ONTADM`</i></b>",
        "operationId": "Users_Create",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "name": "request",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/UserCreateRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "201": {
            "description": "Return Created Response with 201"
          },
          "400": {
            "description": "If the request is invalid or the operation cannot be completed."
          },
          "500": {
            "description": "If there is an internal server error."
          },
          "403": {
            "description": "If the user does not have permission to access this api."
          },
          "401": {
            "description": "If the user is not authenticated."
          }
        }
      }
    },
    "/api/users/{userId}/contexts": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Gets the list of context user has permission.",
        "description": "\n\n <b><i>Role(s) required: `SYSADM,ONTADM,CTXADM`</i></b>",
        "operationId": "Users_GetUserContexts",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "userId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the list of user's  allowed contexts.",
            "schema": {
              "$ref": "#/definitions/UserAllowedContextsResponseDto"
            }
          },
          "403": {
            "description": "If the user does not have permission to access this api."
          },
          "500": {
            "description": "If there is an internal server error."
          }
        }
      }
    },
    "/api/users/{id}": {
      "patch": {
        "tags": [
          "Users"
        ],
        "summary": "Updates the user details in the application database and remove/update in veracity service.",
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Users_Update",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "id",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the user to be updated.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The data transfer object containing the updated user details.",
            "schema": {
              "$ref": "#/definitions/UpdateUserRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "The user details were successfully updated."
          },
          "403": {
            "description": "The user does not have permission to update this user's details."
          },
          "500": {
            "description": "An internal server error occurred while updating the user details."
          }
        }
      }
    },
    "/api/users/notifications": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Retrieves notifications for the current user based on their role.",
        "operationId": "Users_GetNotifications",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the list of notifications.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/UserNotificationResponseDto"
              }
            }
          },
          "500": {
            "description": "An internal server error occurred while fetching notifications."
          }
        }
      }
    },
    "/api/users/migrate": {
      "get": {
        "tags": [
          "Users"
        ],
        "description": "\n\n <b><i>Role(s) required: `SYSADM,ONTADM`</i></b>",
        "operationId": "Users_MigrateUsers",
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          },
          "403": {
            "description": ""
          },
          "500": {
            "description": ""
          }
        }
      }
    },
    "/api/users/{id}/pat-info": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Retrieves the Personal Access Token (PAT) information for a specific user.",
        "description": "\n\n <b><i>Role(s) required: `SYSADM`</i></b>",
        "operationId": "Users_GetPATInfo",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "id",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Successfully retrieved the user's PAT information.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/UserPatInfoResponseDto"
              }
            }
          },
          "403": {
            "description": "The user does not have permission to access this information."
          },
          "500": {
            "description": "An internal server error occurred while retrieving PAT information."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/versions": {
      "get": {
        "tags": [
          "Versions"
        ],
        "summary": "Retrieves versions associated with a specific workspace.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,STK,SME`</i></b>",
        "operationId": "Versions_Get",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the workspace.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the list of versions as a successful response.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/VersionResponseDto"
              }
            }
          },
          "400": {
            "description": "If the user don't have any personal access token."
          },
          "403": {
            "description": "If the user don't have permission to access this api."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/versions/merge-pending-tags": {
      "get": {
        "tags": [
          "Versions"
        ],
        "summary": "Retrieves versions associated with a specific workspace which is pending to merge.",
        "operationId": "Versions_GetPendingMergedVersion",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the workspace.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the list of merge pending versions as a successful response.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "400": {
            "description": "If the user don't have any personal access token."
          },
          "403": {
            "description": "If the user don't have permission to access this api."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/versions/latest": {
      "get": {
        "tags": [
          "Versions"
        ],
        "summary": "Latest Workspace version",
        "operationId": "Versions_GetWorkspaceVersion",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the latest workspace version as a successful response.",
            "schema": {
              "$ref": "#/definitions/WorkspaceVersionResponseDto"
            }
          },
          "400": {
            "description": "If the user don't have any personal access token."
          },
          "403": {
            "description": "If the user don't have permission to access this api."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Get all the accessible workspace of logged in user",
        "operationId": "Workspaces_Get",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "integer",
            "name": "page",
            "in": "query",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "integer",
            "name": "limit",
            "in": "query",
            "format": "int32",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "searchString",
            "in": "query",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "orderBy",
            "in": "query",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "direction",
            "in": "query",
            "x-schema": {
              "$ref": "#/definitions/Direction"
            },
            "default": "Asc",
            "x-nullable": false,
            "enum": [
              "Asc",
              "Desc"
            ]
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/PaginatedWorkspaceResponseDto"
            }
          }
        }
      },
      "post": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Create new Workspace from workspace | create branch from branch",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Workspaces_Create",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "name": "workspaceCreateRequestDto",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/WorkspaceCreateRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "When Workspace Create Successful",
            "schema": {
              "$ref": "#/definitions/WorkspaceResponseDto"
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Update Workspace",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Workspaces_Update",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "id",
            "in": "query",
            "description": "Workspace id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "workspaceUpdateRequestDto",
            "in": "body",
            "required": true,
            "description": "Workspace Update Request DTO with only Description field",
            "schema": {
              "$ref": "#/definitions/WorkspaceUpdateRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "When Workspace Create Successful"
          },
          "403": {
            "description": "If user is not owner of the workspace"
          },
          "500": {
            "description": "Any kind of internal server error occurred"
          }
        }
      }
    },
    "/api/workspaces/{id}": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Get workspace details",
        "operationId": "Workspaces_Get2",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Workspace id, database primary key which details will be retrieved",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/WorkspaceDetailsResponseDto"
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/tasks": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Paginated devOps workspace",
        "operationId": "Workspaces_GetTasks",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id Database Generated or IOTools System Generated Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "cursor",
            "in": "query",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "startDate",
            "in": "query",
            "description": "If a start date is provided, filters tasks created on or after the specified start date.",
            "format": "date-time",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "endDate",
            "in": "query",
            "description": "If an end date is provided, filters tasks created before the specified end date.",
            "format": "date-time",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "status",
            "in": "query",
            "description": "If a status value is provided, filters tasks based on the specified status.",
            "x-nullable": true
          },
          {
            "type": "string",
            "name": "search",
            "in": "query",
            "description": "Search value to filter tasks by title and description.",
            "x-nullable": true
          },
          {
            "type": "boolean",
            "name": "isAscending",
            "in": "query",
            "description": "this will execute devops asc or desc based on passed value but default is false",
            "default": false,
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/TaskResponseDto"
            }
          }
        }
      },
      "post": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Create task to azure devOps with devOps Tag wp-{workspaceId}",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Workspaces_CreateTaskToWorkspace",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id Database Generated or IOTools System Generated Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "taskCreateRequestDto",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/TaskCreateRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          },
          "403": {
            "description": "When PAT token has expired"
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/tasks/status": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Get task all possible states",
        "operationId": "Workspaces_GetTaskStatus",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id Database Generated or IOTools System Generated Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}": {
      "delete": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Delete Workspace from Database and Delete Branch from Azure DevOps",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Workspaces_Delete",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id Database Generated or IOTools System Generated Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "On Successful workspace delete"
          },
          "403": {
            "description": "When PAT token has expired"
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/tasks/{taskId}": {
      "patch": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Update Azure DevOps task and move to Active | Closed Status",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Workspaces_UpdateTask",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id Database Generated or IOTools System Generated Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "taskId",
            "in": "path",
            "required": true,
            "description": "Azure DevOps Task Id",
            "x-nullable": false
          },
          {
            "name": "taskUpdateRequestDto",
            "in": "body",
            "required": true,
            "description": "Task Complete request dto",
            "schema": {
              "$ref": "#/definitions/TaskUpdateRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          },
          "403": {
            "description": "When PAT token has expired"
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/users": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Get Users who have access to the workspace",
        "operationId": "Workspaces_GetUsers",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id Database Generated or IOTools System Generated Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/ApplicationUserDto"
              }
            }
          },
          "403": {
            "description": "When PAT token has expired"
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/pull-request": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Create Pull Request to Azure DevOps",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Workspaces_CreatePR",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id Database Generated or IOTools System Generated Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "createPrRequestDto",
            "in": "body",
            "required": true,
            "description": "PR Request Dto",
            "schema": {
              "$ref": "#/definitions/CreatePrRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          },
          "403": {
            "description": "When PAT token has expired"
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/commit": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Commit Existing change and push to Azure DevOps",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Workspaces_CommitAndPushToDevOps",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id Database Generated or IOTools System Generated Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "commitRequestDto",
            "in": "body",
            "required": true,
            "schema": {
              "$ref": "#/definitions/CommitRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          },
          "403": {
            "description": "When PAT token has expired"
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/sources": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Retrieve a list of ontology sources based on the workspace ID.",
        "operationId": "Workspaces_GetSource",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns List of Ontology Source",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/OntologySourceResponseDto"
              }
            }
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/history": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Retrive Git Logs for this repository",
        "operationId": "Workspaces_GetGitLogs",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "IOTool Workspace Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/GitLogsResponseDto"
            }
          },
          "403": {
            "description": "When PAT token has expired"
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/download": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Returns the binary stream file within the specified workspace.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,STK,SME`</i></b>",
        "operationId": "Workspaces_Download",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which to download file/files",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "requestDto",
            "in": "body",
            "required": true,
            "description": "File download parameters. The file will be downloaded based on the type parameter.\n            If the FileIdentifiers array is empty then all files of the type will be downloaded and if not then only files with the given file identifier will be downloaded.",
            "schema": {
              "$ref": "#/definitions/DownloadRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns binary stream.",
            "schema": {
              "$ref": "#/definitions/File"
            }
          },
          "403": {
            "description": "The user does not have access to the workspace. | PAT has expired exception"
          },
          "400": {
            "description": "The file wants to download is not valid"
          },
          "500": {
            "description": "An server error is occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/fileinfo-with-content": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Returns the binary stream file within the specified workspace.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,STK,SME`</i></b>",
        "operationId": "Workspaces_DownloadFileInfoWithContent",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which to download file/files",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "requestDto",
            "in": "body",
            "required": true,
            "description": "File download parameters. The file will be downloaded based on the type parameter.\n            If the FileIdentifiers array is empty then all files of the type will be downloaded and if not then only files with the given file identifier will be downloaded.",
            "schema": {
              "$ref": "#/definitions/DownloadRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns file information with content.",
            "schema": {
              "$ref": "#/definitions/DownloadFileResponseDto"
            }
          },
          "403": {
            "description": "The user does not have access to the workspace. | PAT has expired exception"
          },
          "400": {
            "description": "The file to download is not valid"
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/dependencies": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Return List of ontologies dependencies for passed parameter workspaceId",
        "operationId": "Workspaces_GetDependencies",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id for ontology",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "List of Ontology dependency",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/OntologyDependencyResponseDto"
              }
            }
          },
          "403": {
            "description": "The user does not have owner of the workspace."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/mappings": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Return list of bottr files name withing the specified workspace.",
        "operationId": "Workspaces_GetMapping",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which to return the list of ontologies.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "List of bottr file names",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "403": {
            "description": "The user does not have owner of the workspace."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/mappings/{templateUId}": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Return list of bottr files name withing the specified workspace.",
        "operationId": "Workspaces_GetBottrTemplateDetails",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which to return the list of ontologies.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "templateUId",
            "in": "path",
            "required": true,
            "description": "Template Uid, templateUid value will be bottr file name",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "List of bottr file names",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "403": {
            "description": "The user does not have owner of the workspace."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/build": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Build ontology by workspace id.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Workspaces_Build",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which to return the list of ontologies.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "buildRequest",
            "in": "body",
            "required": true,
            "description": "Build parameters.template name will be null when build type is all ontologies",
            "schema": {
              "$ref": "#/definitions/BuildRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "",
            "schema": {
              "$ref": "#/definitions/BuildResponseDto"
            }
          },
          "400": {
            "description": "The Ontology API returned errors during the build process."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      },
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Built ontology information by workspace id.",
        "operationId": "Workspaces_GetBuildInfo",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns build information",
            "schema": {
              "$ref": "#/definitions/BuildInfoResponseDto"
            }
          },
          "400": {
            "description": "On bad request."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/graph": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Get graph file by workspace id.",
        "operationId": "Workspaces_GetGraph",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which to return the graph file.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/pull": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Update workspace by pulling from default branch",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME,STK`</i></b>",
        "operationId": "Workspaces_Pull",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id which will pull from default branch",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": ""
          },
          "403": {
            "description": "When PAT token has expired"
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/diff/{diffType}": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Retrieves a list of changes, either for the current uncommitted changes or the changes between the current and default workspace.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Workspaces_GetDiff",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "The ID of the workspace from which to retrieve the changes.",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "diffType",
            "in": "path",
            "required": true,
            "description": "The type of changes, which can be either **uncommitted** or **branch**.",
            "x-schema": {
              "$ref": "#/definitions/DiffType"
            },
            "x-nullable": false,
            "enum": [
              "Uncommitted",
              "Default"
            ]
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns a list of changes.",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/definitions/GitChangeResponseDto"
              }
            }
          },
          "400": {
            "description": "Indicates that the default workspace has not been configured or set."
          },
          "403": {
            "description": "The user does not owner of the workspace."
          },
          "500": {
            "description": "A server error occurred."
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/reset": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Discard Current Changes on The file from Local Git Repository",
        "description": "\n\n <b><i>Role(s) required: `CTXADM,ONTADM,ONT,SME`</i></b>",
        "operationId": "Workspaces_ResetFile",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "resetFileRequestDto",
            "in": "body",
            "required": true,
            "description": "Relative File Path ex. file\\filename.ext",
            "schema": {
              "$ref": "#/definitions/ResetFileRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "On Successful reset"
          },
          "400": {
            "description": "If file path is not valid"
          },
          "403": {
            "description": "If user is not owner of the workspace"
          },
          "500": {
            "description": "Any kind of internal server error occurred"
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/tasks/conflict-resolve": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "summary": "create merge request task by workspace id",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Workspaces_CreateMergeRequestTask",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "On Successful merge task creation successful"
          },
          "400": {
            "description": "Invalid workspace id has passed"
          },
          "403": {
            "description": "If user is not owner of the workspace"
          },
          "500": {
            "description": "Any kind of internal server error occurred"
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/conflicts/start": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Start (or resume) an in-UI merge conflict resolution session for a workspace.\nPerforms a local merge of the target branch into the workspace branch and returns the\nconflicted files. Provider-agnostic: resolving and pushing also makes an open MR/PR mergeable.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Workspaces_StartConflictResolution",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "Which workflow triggered resolution (pull-from-default or merge-request).",
            "schema": {
              "$ref": "#/definitions/StartConflictResolutionRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the conflict session (conflicted files, or a clean session).",
            "schema": {
              "$ref": "#/definitions/ConflictSessionResponseDto"
            }
          },
          "403": {
            "description": "If the user is not the owner of the workspace."
          },
          "500": {
            "description": ""
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/conflicts": {
      "get": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Get the current merge conflict resolution session state for a workspace.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Workspaces_GetConflicts",
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "source",
            "in": "query",
            "description": "Which workflow the session belongs to. Defaults to pull-from-default.",
            "x-schema": {
              "$ref": "#/definitions/ConflictSource"
            },
            "default": "PullFromDefault",
            "x-nullable": false,
            "enum": [
              "PullFromDefault",
              "MergeRequest"
            ]
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the conflict session (conflicted files, or a clean session).",
            "schema": {
              "$ref": "#/definitions/ConflictSessionResponseDto"
            }
          },
          "403": {
            "description": "If the user is not the owner of the workspace."
          },
          "500": {
            "description": ""
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/conflicts/resolve": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Resolve a single conflicted file, either with final merged text or a whole-file choice\n(ours/theirs/both). Returns the remaining conflicts.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Workspaces_ResolveConflict",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "The file to resolve and its resolution.",
            "schema": {
              "$ref": "#/definitions/ResolveConflictRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Returns the updated conflict session.",
            "schema": {
              "$ref": "#/definitions/ConflictSessionResponseDto"
            }
          },
          "400": {
            "description": "If no merge is in progress or the file path is invalid."
          },
          "403": {
            "description": "If the user is not the owner of the workspace."
          },
          "500": {
            "description": ""
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/conflicts/complete": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Finalize a conflict resolution session once all files are resolved: commit the merge and push.\nAfter this the workspace branch is up to date and any open merge request becomes mergeable.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Workspaces_CompleteMerge",
        "consumes": [
          "application/json",
          "text/json",
          "application/*+json"
        ],
        "produces": [
          "text/plain",
          "application/json",
          "text/json"
        ],
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "name": "request",
            "in": "body",
            "required": true,
            "description": "Commit message for the merge commit.",
            "schema": {
              "$ref": "#/definitions/CompleteMergeRequestDto"
            },
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "x-nullable": false,
            "description": "Merge committed and pushed.",
            "schema": {
              "$ref": "#/definitions/CompleteMergeResponseDto"
            }
          },
          "400": {
            "description": "If conflicts are still unresolved or no merge is in progress."
          },
          "403": {
            "description": "If the user is not the owner of the workspace."
          },
          "500": {
            "description": ""
          }
        }
      }
    },
    "/api/workspaces/{workspaceId}/conflicts/abort": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Abort the in-progress merge and reset the workspace to its pre-merge state.",
        "description": "\n\n <b><i>Role(s) required: `ONTADM,CTXADM,ONT,SME`</i></b>",
        "operationId": "Workspaces_AbortMerge",
        "parameters": [
          {
            "type": "string",
            "name": "workspaceId",
            "in": "path",
            "required": true,
            "description": "Workspace Id",
            "format": "guid",
            "x-nullable": false
          },
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "Merge aborted."
          },
          "403": {
            "description": "If the user is not the owner of the workspace."
          },
          "500": {
            "description": ""
          }
        }
      }
    },
    "/api/workspaces/migrate-rt-status": {
      "post": {
        "tags": [
          "Workspaces"
        ],
        "summary": "Migrates RT (Release Train) status on all existing workspaces.",
        "description": "This endpoint triggers a migration process to update the RT status for all existing workspaces in the system.\n\n <b><i>Role(s) required: `ONTADM,SYSADM`</i></b>",
        "operationId": "Workspaces_MigrateRtStatusOnExistingWorkspace",
        "parameters": [
          {
            "type": "string",
            "name": "RequestVerificationToken",
            "in": "header",
            "description": "Anti-CSRF request verification token. Not needed for GET and HEAD requests.",
            "default": ""
          }
        ],
        "responses": {
          "200": {
            "description": "RT Status migration completed successfully."
          },
          "500": {
            "description": "A server error occurred during migration."
          }
        }
      }
    }
  },
  "definitions": {
    "ContextResponseDto": {
      "type": "object",
      "description": "Context Response Dto | Repository",
      "required": [
        "id",
        "name",
        "url",
        "identifiers",
        "status",
        "retryCount"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "System generated guid | db uniqueidentifier",
          "format": "guid"
        },
        "name": {
          "type": "string",
          "description": "repository name",
          "example": "IOTool-context-repository"
        },
        "url": {
          "type": "string",
          "description": "Repository Url in Azure DevOps which will be responsible for cloning from AzureDevOps",
          "example": "https://dnvgl-one.visualstudio.com/DefaultCollection/IOTOOLS-TEST/_git/IOTOOLS-TEST"
        },
        "identifiers": {
          "type": "array",
          "description": "List of Identifier associate with context",
          "items": {
            "$ref": "#/definitions/ContextIdentifierResponseDto"
          }
        },
        "status": {
          "description": "Status of the context",
          "allOf": [
            {
              "$ref": "#/definitions/ContextStatus"
            }
          ]
        },
        "failureReason": {
          "type": "string",
          "description": "Failure reason if the context creation failed"
        },
        "retryCount": {
          "type": "integer",
          "description": "Number of retry attempts made",
          "format": "int32"
        }
      }
    },
    "ContextIdentifierResponseDto": {
      "type": "object",
      "required": [
        "identifierFormatId",
        "format",
        "createdBy",
        "createdAt"
      ],
      "properties": {
        "identifierFormatId": {
          "type": "integer",
          "description": "ID of the identifier format",
          "format": "int32"
        },
        "format": {
          "type": "string",
          "description": "Identifier format string"
        },
        "description": {
          "type": "string",
          "description": "Description of the Identifier format"
        },
        "createdBy": {
          "type": "string",
          "description": "Who assign this identifier",
          "format": "guid"
        },
        "createdAt": {
          "type": "string",
          "description": "UTC Datetime of assignment",
          "format": "date-time"
        }
      }
    },
    "ContextStatus": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Pending",
        "InProgress",
        "Setup",
        "Ready",
        "Failed"
      ],
      "enum": [
        "Pending",
        "InProgress",
        "Setup",
        "Ready",
        "Failed"
      ]
    },
    "CurrentUserSourceWorkspaceResponseDto": {
      "type": "object",
      "required": [
        "hasReachedWorkspaceQuota",
        "sourceWorkspaces"
      ],
      "properties": {
        "hasReachedWorkspaceQuota": {
          "type": "boolean",
          "description": "Current user workspace quota reached or not"
        },
        "sourceWorkspaces": {
          "type": "array",
          "description": "List of source workspaces",
          "items": {
            "$ref": "#/definitions/SourceWorkspaceResponseDto"
          }
        }
      }
    },
    "SourceWorkspaceResponseDto": {
      "type": "object",
      "required": [
        "id",
        "name",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "System generate guid | database uniqueidentifier",
          "format": "guid"
        },
        "name": {
          "type": "string",
          "description": "azure devops branch name",
          "example": "workspace-1"
        },
        "status": {
          "description": "Workspace status",
          "allOf": [
            {
              "$ref": "#/definitions/WorkspaceStatus"
            }
          ]
        }
      }
    },
    "WorkspaceStatus": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "New",
        "Unsaved",
        "Staged",
        "AwaitingApproval",
        "Rejected"
      ],
      "enum": [
        "New",
        "Unsaved",
        "Staged",
        "AwaitingApproval",
        "Rejected"
      ]
    },
    "IdentifierResponseDto": {
      "type": "object",
      "description": "Represents the response data for an identifier.",
      "required": [
        "id",
        "format",
        "isActive"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "The id of the identifier.",
          "format": "int32"
        },
        "format": {
          "type": "string",
          "description": "The format is a string representation indicating the structure or style of the identifier."
        },
        "isActive": {
          "type": "boolean",
          "description": "IsActive indicating whether the identifier is active."
        },
        "lastGeneratedValue": {
          "type": "string",
          "description": "The last generated value of the identifier."
        },
        "description": {
          "type": "string",
          "description": "The description of the identifier."
        },
        "contexts": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/IdentifierContextDto"
          }
        }
      }
    },
    "IdentifierContextDto": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Context Id",
          "format": "guid"
        },
        "name": {
          "type": "string",
          "description": "Context Name"
        }
      }
    },
    "ContextCreateResponseDto": {
      "type": "object",
      "description": "Context Create Response Dto",
      "required": [
        "contextId",
        "repositoryPatSaved"
      ],
      "properties": {
        "contextId": {
          "type": "string",
          "description": "Context Id which is created",
          "format": "guid"
        },
        "repositoryPatSaved": {
          "type": "boolean"
        }
      }
    },
    "ContextCreateRequestDto": {
      "type": "object",
      "required": [
        "hostingIdentifierId",
        "pat",
        "gitProviderContextId"
      ],
      "properties": {
        "hostingIdentifierId": {
          "type": "integer",
          "description": "Gets or sets the hosting identifier ID of the context.",
          "format": "int32"
        },
        "pat": {
          "type": "string",
          "description": "Gets or sets the PAT of the Context creator."
        },
        "gitProviderContextId": {
          "type": "string",
          "description": "Gets or sets the ContextId which user wants to create.\n            "
        }
      }
    },
    "UserAssignResponseDto": {
      "type": "object",
      "required": [
        "issues"
      ],
      "properties": {
        "issues": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "UserContextRequestDto": {
      "type": "object",
      "required": [
        "userId",
        "roles"
      ],
      "properties": {
        "userId": {
          "type": "string",
          "description": "UserId.",
          "format": "guid"
        },
        "roles": {
          "type": "array",
          "description": "User roles for the specific context.",
          "items": {
            "$ref": "#/definitions/Role"
          }
        }
      }
    },
    "Role": {
      "type": "string",
      "description": "",
      "x-enumFlags": true,
      "x-enumNames": [
        "ONTADM",
        "CTXADM",
        "ONT",
        "STK",
        "SME",
        "SYSADM"
      ],
      "enum": [
        "ONTADM",
        "CTXADM",
        "ONT",
        "STK",
        "SME",
        "SYSADM"
      ]
    },
    "UserContextResponseDto": {
      "type": "object",
      "required": [
        "userId",
        "roles"
      ],
      "properties": {
        "userId": {
          "type": "string",
          "description": "User id",
          "format": "guid"
        },
        "roles": {
          "type": "array",
          "description": "User role for the context",
          "items": {
            "$ref": "#/definitions/Role"
          }
        }
      }
    },
    "AvailableContextResponseDto": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Git provider context ID"
        },
        "name": {
          "type": "string",
          "description": "Git provider context name"
        }
      }
    },
    "DataFileUpdateResponseDto": {
      "type": "object",
      "required": [
        "issues"
      ],
      "properties": {
        "issues": {
          "type": "array",
          "description": "Issues",
          "items": {
            "$ref": "#/definitions/OeIssueResponseDto"
          }
        }
      }
    },
    "OeIssueResponseDto": {
      "type": "object",
      "required": [
        "message",
        "warnings",
        "errors"
      ],
      "properties": {
        "message": {
          "type": "string",
          "description": "OE warning message"
        },
        "warnings": {
          "type": "array",
          "description": "OE warning details",
          "items": {
            "type": "string"
          }
        },
        "errors": {
          "type": "array",
          "description": "OE error details",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "DataFilesRequestDto": {
      "type": "object",
      "description": "Data Files Request ",
      "required": [
        "columns",
        "content"
      ],
      "properties": {
        "columns": {
          "type": "array",
          "description": "Data File Config Columns Definition",
          "items": {
            "$ref": "#/definitions/DataFileColumnDefinitionDto"
          }
        },
        "content": {
          "type": "array",
          "description": "Data File Content",
          "items": {}
        }
      }
    },
    "DataFileColumnDefinitionDto": {
      "type": "object",
      "required": [
        "id",
        "source_id",
        "colname",
        "seqno",
        "db_type",
        "visible"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Column Definition Id",
          "format": "int32"
        },
        "source_id": {
          "type": "integer",
          "description": "source_id -> column definition source identifier",
          "format": "int32"
        },
        "colname": {
          "type": "string",
          "description": "column name of content"
        },
        "seqno": {
          "type": "integer",
          "description": "column sequence number",
          "format": "int32"
        },
        "db_type": {
          "type": "string",
          "description": "database data type of the column"
        },
        "db_constraint": {
          "type": "string",
          "description": "database constraint type"
        },
        "identifier_format_id": {
          "type": "integer",
          "description": "Identifier format Id",
          "format": "int32"
        },
        "comment": {
          "type": "string",
          "description": "remarks of the column"
        },
        "rdf_type": {
          "type": "string",
          "description": "rdf_type of the column"
        },
        "visible": {
          "type": "integer",
          "description": "visibility of the column if 1 then visible else 0",
          "format": "int32"
        },
        "relation": {
          "description": "Relation filed will contains ag relation details",
          "allOf": [
            {
              "$ref": "#/definitions/DataFileAgLookUpRelationDto"
            }
          ]
        }
      }
    },
    "DataFileAgLookUpRelationDto": {
      "type": "object",
      "required": [
        "lookUpId",
        "mapDeFid"
      ],
      "properties": {
        "lookUpId": {
          "type": "integer",
          "description": "Look up table id",
          "format": "int32"
        },
        "agTable": {
          "type": "string",
          "description": "Ag table name"
        },
        "agColumn": {
          "type": "string",
          "description": "Ag column"
        },
        "mapData": {
          "type": "string",
          "description": "Map data file name"
        },
        "mapDeFid": {
          "type": "integer",
          "description": "Mapped filed Id",
          "format": "int32"
        },
        "lookUpTable": {
          "type": "string",
          "description": "Lookup table file name"
        },
        "idCol": {
          "type": "string",
          "description": "Lookup table id col name"
        },
        "labelCol": {
          "type": "string",
          "description": "Lookup table label col name"
        },
        "sparqlQry": {
          "type": "string",
          "description": "Lookup Sparql Query"
        }
      }
    },
    "UploadDataFileResponseDto": {
      "type": "object",
      "description": "UploadDataFileResponseDto",
      "required": [
        "issues"
      ],
      "properties": {
        "issues": {
          "type": "array",
          "description": "Issues",
          "items": {
            "$ref": "#/definitions/OeIssueResponseDto"
          }
        }
      }
    },
    "DataFileUploadAction": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Create",
        "Overwrite"
      ],
      "enum": [
        "Create",
        "Overwrite"
      ]
    },
    "DataFileDetailsResponseDto": {
      "type": "object",
      "required": [
        "ontologies",
        "parts",
        "fileContent",
        "columns"
      ],
      "properties": {
        "ontologies": {
          "type": "array",
          "description": "List of ontology Ids",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        },
        "parts": {
          "type": "array",
          "description": "List of Ontology Parts Ids",
          "items": {
            "type": "string"
          }
        },
        "fileContent": {
          "type": "array",
          "description": "Data File Csv content as JSON",
          "items": {}
        },
        "columns": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/DataFileColumnDefinitionDto"
          }
        }
      }
    },
    "AgRelationDto": {
      "type": "object",
      "required": [
        "id",
        "value"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "DataFileRenameRequestDto": {
      "type": "object",
      "required": [
        "fileName"
      ],
      "properties": {
        "fileName": {
          "type": "string",
          "description": "Represent new file name"
        }
      }
    },
    "EntityResponseDto": {
      "type": "object",
      "required": [
        "id",
        "name",
        "hasChildren",
        "needToLoadChildren",
        "children"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "hasChildren": {
          "type": "boolean"
        },
        "needToLoadChildren": {
          "type": "boolean"
        },
        "children": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/EntityChildResponseDto"
          }
        }
      }
    },
    "EntityChildResponseDto": {
      "type": "object",
      "required": [
        "id",
        "name",
        "hasChildren",
        "needToLoadChildren",
        "children"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "hasChildren": {
          "type": "boolean"
        },
        "needToLoadChildren": {
          "type": "boolean"
        },
        "children": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/EntityChildResponseDto"
          }
        }
      }
    },
    "EntityDetailsResponseDto": {
      "type": "object",
      "required": [
        "id",
        "name",
        "rdfFile",
        "iri",
        "type",
        "dependencies",
        "metadata",
        "description",
        "contexts",
        "constraints"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "rdfFile": {
          "type": "string"
        },
        "iri": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "dependencies": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "metadata": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/EntityDetailsMetaDataResponseDto"
          }
        },
        "description": {
          "type": "string"
        },
        "contexts": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/EntityDetailsMetaDataResponseDto"
          }
        },
        "constraints": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/EntityDetailsMetaDataResponseDto"
          }
        }
      }
    },
    "EntityDetailsMetaDataResponseDto": {
      "type": "object",
      "required": [
        "key",
        "keyname",
        "keyval"
      ],
      "properties": {
        "key": {
          "type": "string"
        },
        "keyname": {
          "type": "string"
        },
        "keyval": {
          "type": "string"
        }
      }
    },
    "FileItemDto": {
      "type": "object",
      "description": "Represents a file or directory item in the file tree.",
      "required": [
        "name",
        "path",
        "parentPath",
        "isDirectory",
        "updatedAt"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the file or directory."
        },
        "path": {
          "type": "string",
          "description": "The full path of the file or directory."
        },
        "parentPath": {
          "type": "string",
          "description": "The path of the parent directory."
        },
        "isDirectory": {
          "type": "boolean",
          "description": "Indicates whether this item is a directory."
        },
        "size": {
          "type": "integer",
          "description": "The size of the file in bytes (null for directories).",
          "format": "int64"
        },
        "updatedAt": {
          "type": "string",
          "description": "The last modification date and time.",
          "format": "date-time"
        }
      }
    },
    "FileManagerTreeRequestDto": {
      "type": "object",
      "description": "Request to read the file tree from a specified path.",
      "required": [
        "path"
      ],
      "properties": {
        "path": {
          "type": "string",
          "description": "The path to read the tree from."
        }
      }
    },
    "FileManagerActionResultDto": {
      "type": "object",
      "description": "Result of a single file manager action (create, rename, etc.).",
      "required": [
        "path",
        "name"
      ],
      "properties": {
        "path": {
          "type": "string",
          "description": "The path of the affected file or folder."
        },
        "name": {
          "type": "string",
          "description": "The name of the affected file or folder."
        },
        "suggestedName": {
          "type": "string",
          "description": "The suggested name if the original name was modified to avoid conflicts."
        }
      }
    },
    "FileManagerCreateFolderRequestDto": {
      "type": "object",
      "description": "Request to create a new folder.",
      "required": [
        "parentPath",
        "name"
      ],
      "properties": {
        "parentPath": {
          "type": "string",
          "description": "The parent directory path where the folder will be created."
        },
        "name": {
          "type": "string",
          "description": "The name of the folder to create."
        }
      }
    },
    "FileManagerCreateFileRequestDto": {
      "type": "object",
      "description": "Request to create a new file with a specific type.",
      "required": [
        "parentPath",
        "name",
        "fileType"
      ],
      "properties": {
        "parentPath": {
          "type": "string",
          "description": "The parent directory path where the file will be created."
        },
        "name": {
          "type": "string",
          "description": "The name of the file to create."
        },
        "fileType": {
          "type": "string",
          "description": "The type/extension of the file (e.g., .txt, .json, .md)."
        }
      }
    },
    "FileManagerErrorDto": {
      "type": "object",
      "description": "Error response for file manager operations.",
      "required": [
        "code",
        "message"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "The error code identifying the type of error."
        },
        "message": {
          "type": "string",
          "description": "A human-readable error message."
        },
        "suggestedName": {
          "type": "string",
          "description": "A suggested alternative name if the error is related to naming conflicts."
        }
      }
    },
    "FileManagerRenameRequestDto": {
      "type": "object",
      "description": "Request to rename a file or folder.",
      "required": [
        "path",
        "newName"
      ],
      "properties": {
        "path": {
          "type": "string",
          "description": "The current path of the file or folder."
        },
        "newName": {
          "type": "string",
          "description": "The new name for the file or folder."
        }
      }
    },
    "FileManagerBatchActionResultDto": {
      "type": "object",
      "description": "Result of a batch file manager action containing multiple items.",
      "required": [
        "items",
        "deletedItems"
      ],
      "properties": {
        "items": {
          "type": "array",
          "description": "The list of action results for each processed item.",
          "items": {
            "$ref": "#/definitions/FileManagerActionResultDto"
          }
        },
        "deletedItems": {
          "type": "array",
          "description": "Backwards-compatible alias for the list of processed items when the action was a delete.",
          "items": {
            "$ref": "#/definitions/FileManagerActionResultDto"
          }
        }
      }
    },
    "FileManagerDeleteRequestDto": {
      "type": "object",
      "description": "Request to delete one or more files or folders.",
      "required": [
        "paths"
      ],
      "properties": {
        "paths": {
          "type": "array",
          "description": "The list of paths to delete.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "FileManagerTransferRequestDto": {
      "type": "object",
      "description": "Request to copy or move files or folders.",
      "required": [
        "sourcePaths",
        "destinationPath"
      ],
      "properties": {
        "sourcePaths": {
          "type": "array",
          "description": "The list of source paths to transfer.",
          "items": {
            "type": "string"
          }
        },
        "destinationPath": {
          "type": "string",
          "description": "The destination path where items will be transferred."
        }
      }
    },
    "FileManagerDownloadZipRequestDto": {
      "type": "object",
      "description": "Request to download multiple files or folders as a ZIP archive.",
      "required": [
        "paths"
      ],
      "properties": {
        "paths": {
          "type": "array",
          "description": "The list of paths to include in the ZIP archive.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "YasguiResponseDto": {
      "type": "object",
      "required": [
        "sparql",
        "get",
        "queryReasoning",
        "update"
      ],
      "properties": {
        "sparql": {
          "type": "string",
          "description": "Sparql endpoint"
        },
        "get": {
          "type": "string",
          "description": "Sparql Get dataset name"
        },
        "queryReasoning": {
          "type": "string",
          "description": "Query reasoning dataset name"
        },
        "update": {
          "type": "string",
          "description": "Update endpoint"
        }
      }
    },
    "ServiceHealthDto": {
      "type": "object",
      "required": [
        "serviceName",
        "status",
        "checkedAtUtc",
        "dependencies",
        "metadataWarnings"
      ],
      "properties": {
        "serviceName": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "buildNumber": {
          "type": "string"
        },
        "gitCommit": {
          "type": "string"
        },
        "environment": {
          "type": "string"
        },
        "buildTimestampUtc": {
          "type": "string",
          "format": "date-time"
        },
        "deployedAtUtc": {
          "type": "string",
          "format": "date-time"
        },
        "status": {
          "type": "string"
        },
        "checkedAtUtc": {
          "type": "string",
          "format": "date-time"
        },
        "dependencies": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/DependencyHealthDto"
          }
        },
        "metadataWarnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "DependencyHealthDto": {
      "type": "object",
      "required": [
        "name",
        "status"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "responseTimeMs": {
          "type": "integer",
          "format": "int64"
        },
        "errorCode": {
          "type": "string"
        },
        "errorMessage": {
          "type": "string"
        },
        "critical": {
          "type": "boolean"
        }
      }
    },
    "HostingIdentifierResponseDto": {
      "type": "object",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "gitHostingIdentifier": {
          "type": "string"
        }
      }
    },
    "GitHostingType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "AzureDevopsRepos",
        "GitLab"
      ],
      "enum": [
        "AzureDevopsRepos",
        "GitLab"
      ]
    },
    "CreateHostingIdentifierRequestDto": {
      "type": "object",
      "required": [
        "gitHostingType",
        "gitHostingIdentifier",
        "isGLSHServer",
        "config"
      ],
      "properties": {
        "gitHostingType": {
          "$ref": "#/definitions/GitHostingType"
        },
        "gitHostingIdentifier": {
          "type": "string"
        },
        "isGLSHServer": {
          "type": "boolean"
        },
        "config": {
          "$ref": "#/definitions/HostingIdentifierConfigDto"
        }
      }
    },
    "HostingIdentifierConfigDto": {
      "type": "object",
      "properties": {
        "azureDevOps": {
          "$ref": "#/definitions/HostingIdentifierAzureDevOpsDto"
        },
        "gitLab": {
          "$ref": "#/definitions/HostingIdentifierGitLabDto"
        }
      }
    },
    "HostingIdentifierAzureDevOpsDto": {
      "type": "object",
      "required": [
        "organizationUrl"
      ],
      "properties": {
        "organizationUrl": {
          "type": "string"
        }
      }
    },
    "HostingIdentifierGitLabDto": {
      "type": "object",
      "required": [
        "graphQlUrl",
        "apiUrl"
      ],
      "properties": {
        "graphQlUrl": {
          "type": "string"
        },
        "apiUrl": {
          "type": "string"
        }
      }
    },
    "UpdateHostingIdentifierRequestDto": {
      "type": "object",
      "required": [
        "gitHostingType",
        "gitHostingIdentifier",
        "isGLSHServer",
        "config"
      ],
      "properties": {
        "gitHostingType": {
          "$ref": "#/definitions/GitHostingType"
        },
        "gitHostingIdentifier": {
          "type": "string"
        },
        "isGLSHServer": {
          "type": "boolean"
        },
        "config": {
          "$ref": "#/definitions/HostingIdentifierConfigDto"
        }
      }
    },
    "IdentifierRequestDto": {
      "type": "object",
      "description": "Represents the request data for generating identifiers.",
      "required": [
        "identifierFormatId"
      ],
      "properties": {
        "count": {
          "type": "integer",
          "description": "Gets or initializes the number of identifiers to generate. Defaults is 1 if not specified.",
          "format": "int32"
        },
        "identifierFormatId": {
          "type": "integer",
          "description": "Gets or initializes the identifier format ID.",
          "format": "int32"
        },
        "tableName": {
          "type": "string",
          "description": "Gets or initializes the table name for which the identifiers will be generated.\nIf not specified, it will be treated as manual."
        },
        "contextId": {
          "type": "string",
          "description": "ContextId for which the identifier will be generated ",
          "format": "guid"
        }
      }
    },
    "IdentifierCreateRequestDto": {
      "type": "object",
      "required": [
        "format",
        "comment"
      ],
      "properties": {
        "format": {
          "type": "string",
          "description": "Format of Identifier sample {123}, PC:{123}}"
        },
        "comment": {
          "type": "string",
          "description": "Identifier Comment"
        }
      }
    },
    "IdentifierUpdateRequestDto": {
      "type": "object",
      "required": [
        "format",
        "comment",
        "isActive"
      ],
      "properties": {
        "format": {
          "type": "string",
          "description": "Format of Identifier sample {123}, PC:{123}}"
        },
        "comment": {
          "type": "string",
          "description": "Identifier Comment"
        },
        "isActive": {
          "type": "boolean",
          "description": "Activate or Deactivate Identifier with boolean flag"
        }
      }
    },
    "WorkspaceSearchMigrationResponseDto": {
      "type": "object",
      "required": [
        "count",
        "workspaces"
      ],
      "properties": {
        "count": {
          "type": "integer",
          "format": "int32"
        },
        "workspaces": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/WorkspaceSearchMigrationDto"
          }
        }
      }
    },
    "WorkspaceSearchMigrationDto": {
      "type": "object",
      "required": [
        "workspaceId",
        "workspaceName",
        "contextId",
        "luceneMigrated"
      ],
      "properties": {
        "workspaceId": {
          "type": "string",
          "format": "guid"
        },
        "workspaceName": {
          "type": "string"
        },
        "contextId": {
          "type": "string",
          "format": "guid"
        },
        "luceneMigrated": {
          "type": "boolean"
        }
      }
    },
    "MonitoringStatusDto": {
      "type": "object",
      "required": [
        "serverTimeUtc",
        "staleAfterSeconds",
        "services"
      ],
      "properties": {
        "serverTimeUtc": {
          "type": "string",
          "format": "date-time"
        },
        "staleAfterSeconds": {
          "type": "integer",
          "format": "int32"
        },
        "services": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/ServiceStatusDto"
          }
        },
        "overallStatus": {
          "type": "string"
        }
      }
    },
    "ServiceStatusDto": {
      "type": "object",
      "required": [
        "serviceName",
        "environment",
        "effectiveStatus",
        "last24Hours",
        "last7Days",
        "isConfigured"
      ],
      "properties": {
        "serviceName": {
          "type": "string"
        },
        "environment": {
          "type": "string"
        },
        "effectiveStatus": {
          "type": "string"
        },
        "latest": {
          "$ref": "#/definitions/MonitoringRecordDto"
        },
        "healthResponse": {
          "$ref": "#/definitions/ServiceHealthDto"
        },
        "lastValidCheckUtc": {
          "type": "string",
          "format": "date-time"
        },
        "lastHealthyCheckUtc": {
          "type": "string",
          "format": "date-time"
        },
        "latestFailure": {
          "$ref": "#/definitions/MonitoringRecordDto"
        },
        "last24Hours": {
          "$ref": "#/definitions/SampleStatisticsDto"
        },
        "last7Days": {
          "$ref": "#/definitions/SampleStatisticsDto"
        },
        "latestObservedChange": {
          "$ref": "#/definitions/MonitoringRecordDto"
        },
        "displayName": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "isConfigured": {
          "type": "boolean"
        },
        "parentService": {
          "type": "string"
        }
      }
    },
    "MonitoringRecordDto": {
      "type": "object",
      "required": [
        "id",
        "serviceName",
        "environment",
        "status",
        "scheduledAtUtc",
        "monitoringIntervalSeconds",
        "checkedAtUtc",
        "recordedAtUtc"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "serviceName": {
          "type": "string"
        },
        "environment": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "isReachable": {
          "type": "boolean"
        },
        "httpStatusCode": {
          "type": "integer"
        },
        "responseTimeMs": {
          "type": "integer",
          "format": "int64"
        },
        "version": {
          "type": "string"
        },
        "buildNumber": {
          "type": "string"
        },
        "gitCommit": {
          "type": "string"
        },
        "buildTimestampUtc": {
          "type": "string",
          "format": "date-time"
        },
        "deployedAtUtc": {
          "type": "string",
          "format": "date-time"
        },
        "scheduledAtUtc": {
          "type": "string",
          "format": "date-time"
        },
        "monitoringIntervalSeconds": {
          "type": "integer",
          "format": "int32"
        },
        "checkedAtUtc": {
          "type": "string",
          "format": "date-time"
        },
        "recordedAtUtc": {
          "type": "string",
          "format": "date-time"
        },
        "errorCode": {
          "type": "string"
        },
        "errorMessage": {
          "type": "string"
        }
      }
    },
    "SampleStatisticsDto": {
      "type": "object",
      "required": [
        "fromUtc",
        "toUtc",
        "recordedSamples",
        "healthySamples",
        "degradedSamples",
        "isCoverageKnown",
        "isWindowComplete"
      ],
      "properties": {
        "fromUtc": {
          "type": "string",
          "format": "date-time"
        },
        "toUtc": {
          "type": "string",
          "format": "date-time"
        },
        "recordedSamples": {
          "type": "integer",
          "format": "int32"
        },
        "healthySamples": {
          "type": "integer",
          "format": "int32"
        },
        "degradedSamples": {
          "type": "integer",
          "format": "int32"
        },
        "availabilityPercent": {
          "type": "number",
          "format": "double"
        },
        "averageResponseTimeMs": {
          "type": "number",
          "format": "double"
        },
        "expectedSamples": {
          "type": "integer",
          "format": "int64"
        },
        "missingSamples": {
          "type": "integer",
          "format": "int64"
        },
        "isCoverageKnown": {
          "type": "boolean"
        },
        "isWindowComplete": {
          "type": "boolean"
        }
      }
    },
    "PaginatedDto_1": {
      "type": "object",
      "required": [
        "items",
        "page",
        "limit",
        "total"
      ],
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/MonitoringRecordDto"
          }
        },
        "page": {
          "type": "integer",
          "format": "int32"
        },
        "limit": {
          "type": "integer",
          "format": "int32"
        },
        "total": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "MonitoringServiceDetailDto": {
      "type": "object",
      "required": [
        "status",
        "observedChanges"
      ],
      "properties": {
        "status": {
          "$ref": "#/definitions/ServiceStatusDto"
        },
        "observedChanges": {
          "$ref": "#/definitions/PaginatedDto_1"
        },
        "incidents": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/MonitoringIncidentDto"
          }
        }
      }
    },
    "MonitoringIncidentDto": {
      "type": "object",
      "required": [
        "startedAtUtc",
        "worstStatus",
        "samples"
      ],
      "properties": {
        "startedAtUtc": {
          "type": "string",
          "format": "date-time"
        },
        "endedAtUtc": {
          "type": "string",
          "format": "date-time"
        },
        "worstStatus": {
          "type": "string"
        },
        "samples": {
          "type": "integer",
          "format": "int32"
        },
        "errorCode": {
          "type": "string"
        },
        "errorMessage": {
          "type": "string"
        }
      }
    },
    "MonitoringTimelineDto": {
      "type": "object",
      "required": [
        "range",
        "fromUtc",
        "toUtc",
        "bucketSeconds",
        "services"
      ],
      "properties": {
        "range": {
          "type": "string"
        },
        "fromUtc": {
          "type": "string",
          "format": "date-time"
        },
        "toUtc": {
          "type": "string",
          "format": "date-time"
        },
        "bucketSeconds": {
          "type": "integer",
          "format": "int32"
        },
        "services": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/ServiceTimelineDto"
          }
        }
      }
    },
    "ServiceTimelineDto": {
      "type": "object",
      "required": [
        "serviceName",
        "buckets"
      ],
      "properties": {
        "serviceName": {
          "type": "string"
        },
        "availabilityPercent": {
          "type": "number",
          "format": "double"
        },
        "averageResponseTimeMs": {
          "type": "number",
          "format": "double"
        },
        "buckets": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/TimelineBucketDto"
          }
        }
      }
    },
    "TimelineBucketDto": {
      "type": "object",
      "required": [
        "startUtc",
        "status",
        "samples",
        "healthy",
        "degraded",
        "failed",
        "unknown"
      ],
      "properties": {
        "startUtc": {
          "type": "string",
          "format": "date-time"
        },
        "status": {
          "type": "string"
        },
        "samples": {
          "type": "integer",
          "format": "int32"
        },
        "healthy": {
          "type": "integer",
          "format": "int32"
        },
        "degraded": {
          "type": "integer",
          "format": "int32"
        },
        "failed": {
          "type": "integer",
          "format": "int32"
        },
        "unknown": {
          "type": "integer",
          "format": "int32"
        },
        "averageResponseTimeMs": {
          "type": "number",
          "format": "double"
        },
        "maxResponseTimeMs": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "MonitoringRecordDetailDto": {
      "type": "object",
      "required": [
        "record"
      ],
      "properties": {
        "record": {
          "$ref": "#/definitions/MonitoringRecordDto"
        },
        "healthResponse": {
          "$ref": "#/definitions/ServiceHealthDto"
        }
      }
    },
    "OntologyDto": {
      "id": "OntologyDto",
      "title": "OntologyDto",
      "type": "object",
      "required": [
        "ontology",
        "issues"
      ],
      "properties": {
        "ontology": {
          "$ref": "#/definitions/OntologyBasicResponseDto"
        },
        "issues": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/OeIssueResponseDto"
          }
        }
      }
    },
    "OntologyBasicResponseDto": {
      "type": "object",
      "required": [
        "id",
        "ontName",
        "rdfFile",
        "ontology",
        "ontType",
        "title",
        "contextVersion",
        "workspaceVersion"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Ontology id",
          "format": "int32"
        },
        "ontName": {
          "type": "string",
          "description": "Ontology Name"
        },
        "rdfFile": {
          "type": "string",
          "description": "RDF File name"
        },
        "ontology": {
          "type": "string",
          "description": "Ontology IRI"
        },
        "ontType": {
          "type": "string",
          "description": "Ontology Type"
        },
        "title": {
          "type": "string",
          "description": "Title"
        },
        "contextVersion": {
          "type": "string",
          "description": "Latest Ontology Exist on Default Branch"
        },
        "workspaceVersion": {
          "type": "string",
          "description": "Ontology Tag exist on the current branch"
        },
        "imports": {
          "type": "array",
          "description": "Ontology Dependencies",
          "items": {
            "$ref": "#/definitions/OntologyDependencyResponseDto"
          }
        }
      }
    },
    "OntologyDependencyResponseDto": {
      "type": "object",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Ontology Id",
          "format": "int32"
        },
        "ontName": {
          "type": "string",
          "description": "Ontology Name"
        }
      }
    },
    "OntologyDeleteResponseDto": {
      "type": "object",
      "required": [
        "issues"
      ],
      "properties": {
        "issues": {
          "type": "array",
          "description": "Issues",
          "items": {
            "$ref": "#/definitions/OeIssueResponseDto"
          }
        }
      }
    },
    "OntologyCreatePartResponseDto": {
      "type": "object",
      "required": [
        "issues"
      ],
      "properties": {
        "issues": {
          "type": "array",
          "description": "Issues",
          "items": {
            "$ref": "#/definitions/OeIssueResponseDto"
          }
        }
      }
    },
    "OntologyPartCreateRequestDto": {
      "type": "object",
      "required": [
        "template",
        "sourceIds"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Name"
        },
        "template": {
          "type": "string",
          "description": "Template name (bottr file name with extension)"
        },
        "comment": {
          "type": "string",
          "description": "Comment"
        },
        "sourceIds": {
          "type": "array",
          "description": "Source Ids",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        }
      }
    },
    "OntologyEditPartResponseDto": {
      "type": "object",
      "required": [
        "issues"
      ],
      "properties": {
        "issues": {
          "type": "array",
          "description": "Issues",
          "items": {
            "$ref": "#/definitions/OeIssueResponseDto"
          }
        }
      }
    },
    "OntologyPartEditRequestDto": {
      "type": "object",
      "required": [
        "ontologyId",
        "template",
        "sourceIds"
      ],
      "properties": {
        "ontologyId": {
          "type": "integer",
          "description": "OntologyId",
          "format": "int32"
        },
        "name": {
          "type": "string",
          "description": "Name\n "
        },
        "template": {
          "type": "string",
          "description": "Template name (bottr file name with extension)"
        },
        "comment": {
          "type": "string",
          "description": "Comment"
        },
        "sourceIds": {
          "type": "array",
          "description": "Source Ids",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        }
      }
    },
    "OntologyDeletePartResponseDto": {
      "type": "object",
      "required": [
        "issues"
      ],
      "properties": {
        "issues": {
          "type": "array",
          "description": "Issues",
          "items": {
            "$ref": "#/definitions/OeIssueResponseDto"
          }
        }
      }
    },
    "OntologyPartResponseDto": {
      "type": "object",
      "required": [
        "id",
        "ontologyId",
        "sourceIds",
        "sources",
        "isBuilt"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Part ID",
          "format": "int32"
        },
        "name": {
          "type": "string",
          "description": "Part Name"
        },
        "ontologyId": {
          "type": "integer",
          "description": "Ontology Id",
          "format": "int32"
        },
        "sourceIds": {
          "type": "array",
          "description": "Source Id",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        },
        "sources": {
          "type": "string",
          "description": "Part Source File name"
        },
        "template": {
          "type": "string",
          "description": "Stottr file "
        },
        "mapping": {
          "type": "string",
          "description": "Mapping (bottr file name with extension)"
        },
        "comment": {
          "type": "string",
          "description": "Comment"
        },
        "isBuilt": {
          "type": "boolean",
          "description": "Is the part built or not"
        }
      }
    },
    "OntologyDetailsResponseDto": {
      "type": "object",
      "required": [
        "id",
        "ontName",
        "rdfFile",
        "title",
        "ontType",
        "ontology"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "ID",
          "format": "int32"
        },
        "ontName": {
          "type": "string",
          "description": "Ontology name"
        },
        "rdfFile": {
          "type": "string",
          "description": "Rdf file name"
        },
        "title": {
          "type": "string",
          "description": "Title"
        },
        "header": {
          "type": "string",
          "description": "Header"
        },
        "ontType": {
          "type": "string",
          "description": "Ontology Type"
        },
        "imports": {
          "type": "array",
          "description": "Dependent ontology Id's array\n ",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        },
        "graphName": {
          "type": "string",
          "description": "GraphName"
        },
        "ontology": {
          "type": "string",
          "description": "Ontology"
        },
        "versionIRI": {
          "type": "string",
          "description": "VersionIRI"
        },
        "versionInfo": {
          "type": "string",
          "description": "VersionInfo"
        },
        "description": {
          "type": "string",
          "description": "Description"
        },
        "seeAlso": {
          "type": "string",
          "description": "SeeAlso"
        },
        "status": {
          "type": "string",
          "description": "Status"
        },
        "previousVersion": {
          "type": "string",
          "description": "PreviousVersion"
        },
        "lastUpdateOn": {
          "type": "string",
          "description": "LastUpdateOn"
        },
        "issued": {
          "type": "string",
          "description": "Issued"
        },
        "modified": {
          "type": "string",
          "description": "Modified"
        },
        "changeNote": {
          "type": "string",
          "description": "Change Note"
        },
        "changeNoteTime": {
          "type": "string",
          "description": "Change Note Time"
        },
        "changeNoteWho": {
          "type": "string",
          "description": "Change Note Who"
        },
        "authoredBy": {
          "type": "string",
          "description": "Authored By"
        },
        "contributedBy": {
          "type": "string",
          "description": "Contributed By"
        },
        "createdBy": {
          "type": "string",
          "description": "Created By"
        },
        "publisher": {
          "type": "string",
          "description": "Publisher"
        },
        "derivedFrom": {
          "type": "string",
          "description": "Derived From"
        },
        "license": {
          "type": "string",
          "description": "License"
        },
        "subject": {
          "type": "string",
          "description": "Subject"
        },
        "exampleResource": {
          "type": "string",
          "description": "Example Resource"
        },
        "documentationPage": {
          "type": "string",
          "description": "Documentation Page"
        },
        "preferredNamespacePrefix": {
          "type": "string",
          "description": "Preferred Namespace Prefix"
        },
        "preferredNamespaceUri": {
          "type": "string",
          "description": "Preferred Namespace Uri"
        },
        "fileFormat": {
          "type": "string",
          "description": "File Format"
        },
        "sparqlEndpoint": {
          "type": "string",
          "description": "Sparql Endpoint"
        },
        "tags": {
          "type": "string",
          "description": "Tags for ontology requirement | asset | RDL | inferred-axioms"
        }
      }
    },
    "OntologyDetailsEditResponseDto": {
      "type": "object",
      "required": [
        "ontology",
        "issues"
      ],
      "properties": {
        "ontology": {
          "description": "Ontology",
          "allOf": [
            {
              "$ref": "#/definitions/OntologyDetailsResponseDto"
            }
          ]
        },
        "issues": {
          "type": "array",
          "description": "Issues",
          "items": {
            "$ref": "#/definitions/OeIssueResponseDto"
          }
        }
      }
    },
    "OntologyFileType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "TTL",
        "OMN",
        "ORG"
      ],
      "enum": [
        "TTL",
        "OMN",
        "ORG"
      ]
    },
    "OntologyLibRefreshResponseDto": {
      "type": "object",
      "required": [
        "issues"
      ],
      "properties": {
        "issues": {
          "type": "array",
          "description": "Issues",
          "items": {
            "$ref": "#/definitions/OeIssueResponseDto"
          }
        }
      }
    },
    "ReloadAllOntologiesResponseDto": {
      "type": "object",
      "required": [
        "issues"
      ],
      "properties": {
        "issues": {
          "type": "array",
          "description": "Issues",
          "items": {
            "$ref": "#/definitions/OeIssueResponseDto"
          }
        }
      }
    },
    "LibOntologyInfoResponseDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Ontology name"
        },
        "iri": {
          "type": "string",
          "description": "Iri"
        },
        "title": {
          "type": "string",
          "description": "Title of the ontology"
        },
        "graphName": {
          "type": "string",
          "description": "Graph name"
        },
        "description": {
          "type": "string",
          "description": "Description of the ontology"
        },
        "ontName": {
          "type": "string",
          "description": "Ontology name"
        },
        "rdfFile": {
          "type": "string",
          "description": "RDF file associated with the ontology"
        },
        "header": {
          "type": "string",
          "description": "Header information of the ontology"
        },
        "ontType": {
          "type": "string",
          "description": "Type of the ontology"
        },
        "imports": {
          "type": "string",
          "description": "Imported ontologies"
        },
        "ontology": {
          "type": "string",
          "description": "Ontology content"
        },
        "versionIRI": {
          "type": "string",
          "description": "Version IRI of the ontology"
        },
        "versionInfo": {
          "type": "string",
          "description": "Version information of the ontology"
        },
        "seeAlso": {
          "type": "string",
          "description": "Additional references or links related to the ontology"
        },
        "status": {
          "type": "string",
          "description": "Status of the ontology"
        },
        "previousVersion": {
          "type": "string",
          "description": "Previous version of the ontology"
        },
        "lastUpdateOn": {
          "type": "string",
          "description": "Last update timestamp of the ontology",
          "format": "date-time"
        },
        "issued": {
          "type": "string",
          "description": "Issued date of the ontology",
          "format": "date-time"
        },
        "modified": {
          "type": "string",
          "description": "Last modified date of the ontology",
          "format": "date-time"
        },
        "changeNote": {
          "type": "string",
          "description": "Notes about changes made to the ontology"
        },
        "changeNoteTime": {
          "type": "string",
          "description": "Timestamp of the change note",
          "format": "date-time"
        },
        "changeNoteWho": {
          "type": "string",
          "description": "Author of the change note"
        },
        "authoredBy": {
          "type": "string",
          "description": "Author of the ontology"
        },
        "contributedBy": {
          "type": "string",
          "description": "Contributors to the ontology"
        },
        "createdBy": {
          "type": "string",
          "description": "Creator of the ontology"
        },
        "publisher": {
          "type": "string",
          "description": "Publisher of the ontology"
        },
        "derivedFrom": {
          "type": "string",
          "description": "Source from which the ontology is derived"
        },
        "license": {
          "type": "string",
          "description": "License information of the ontology"
        },
        "subject": {
          "type": "string",
          "description": "Subject of the ontology"
        },
        "exampleResource": {
          "type": "string",
          "description": "Example resources related to the ontology"
        },
        "documentationPage": {
          "type": "string",
          "description": "Documentation page of the ontology"
        },
        "preferredNamespacePrefix": {
          "type": "string",
          "description": "Preferred namespace prefix for the ontology"
        },
        "preferredNamespaceUri": {
          "type": "string",
          "description": "Preferred namespace URI for the ontology"
        },
        "fileFormat": {
          "type": "string",
          "description": "File format of the ontology"
        },
        "sparqlEndpoint": {
          "type": "string",
          "description": "SPARQL endpoint for querying the ontology"
        },
        "tags": {
          "type": "string",
          "description": "Tags associated with the ontology"
        }
      }
    },
    "VersionIncrementRequestDto": {
      "type": "object",
      "required": [
        "versionIncrementType",
        "changeNote"
      ],
      "properties": {
        "versionIncrementType": {
          "description": "Type of Version Increment Type in Ontology (Major, Minor, Patch)",
          "allOf": [
            {
              "$ref": "#/definitions/VersionIncrementType"
            }
          ]
        },
        "changeNote": {
          "type": "string",
          "description": "Note for the version increment"
        }
      }
    },
    "VersionIncrementType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Major",
        "Minor",
        "Patch"
      ],
      "enum": [
        "Major",
        "Minor",
        "Patch"
      ]
    },
    "PendingOntologyVersionChangesDto": {
      "type": "object",
      "required": [
        "ontologyId",
        "ontologyName"
      ],
      "properties": {
        "ontologyId": {
          "type": "integer",
          "description": "Ontology Id",
          "format": "int32"
        },
        "ontologyName": {
          "type": "string",
          "description": "Name of the ontology"
        }
      }
    },
    "OntologyGraphResponseDto": {
      "type": "object",
      "required": [
        "layout",
        "positions"
      ],
      "properties": {
        "layout": {
          "description": "Layout of the saved graph.",
          "allOf": [
            {
              "$ref": "#/definitions/ReactFlowLayout"
            }
          ]
        },
        "positions": {
          "type": "array",
          "description": "Positions of the graph.",
          "items": {
            "$ref": "#/definitions/OntologyGraphPositionsResponseDto"
          }
        }
      }
    },
    "ReactFlowLayout": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "TB",
        "LR"
      ],
      "enum": [
        "TB",
        "LR"
      ]
    },
    "OntologyGraphPositionsResponseDto": {
      "type": "object",
      "required": [
        "id",
        "positionX",
        "positionY",
        "type",
        "name",
        "isCollapsed"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Node id (bubble id)"
        },
        "positionX": {
          "type": "number",
          "description": "Ontology bubble position X",
          "format": "double"
        },
        "positionY": {
          "type": "number",
          "description": "Ontology bubble position Y",
          "format": "double"
        },
        "type": {
          "type": "string",
          "description": "Node Type"
        },
        "name": {
          "type": "string",
          "description": "Name of the node"
        },
        "parentId": {
          "type": "string",
          "description": "Parent id of the node"
        },
        "originalSize": {
          "description": "Original size of the node",
          "allOf": [
            {
              "$ref": "#/definitions/OntologyGraphPositionsNodeSizeResponseDto"
            }
          ]
        },
        "originalPosition": {
          "description": "Original position of the node",
          "allOf": [
            {
              "$ref": "#/definitions/OntologyGraphNodePositionResponseDto"
            }
          ]
        },
        "isCollapsed": {
          "type": "boolean",
          "description": "Is the node collapsed state or not"
        }
      }
    },
    "OntologyGraphPositionsNodeSizeResponseDto": {
      "type": "object",
      "required": [
        "width",
        "height"
      ],
      "properties": {
        "width": {
          "type": "number",
          "description": "Width of the node",
          "format": "double"
        },
        "height": {
          "type": "number",
          "description": "Height of the node",
          "format": "double"
        }
      }
    },
    "OntologyGraphNodePositionResponseDto": {
      "type": "object",
      "required": [
        "x",
        "y"
      ],
      "properties": {
        "x": {
          "type": "number",
          "description": "Node x position",
          "format": "double"
        },
        "y": {
          "type": "number",
          "description": "Node Y position",
          "format": "double"
        }
      }
    },
    "OntologyGraphRequestDto": {
      "type": "object",
      "required": [
        "layout",
        "positions",
        "relations"
      ],
      "properties": {
        "layout": {
          "description": "Layout of the graph",
          "allOf": [
            {
              "$ref": "#/definitions/ReactFlowLayout"
            }
          ]
        },
        "positions": {
          "type": "array",
          "description": "Graph bubble positions",
          "items": {
            "$ref": "#/definitions/OntologyGraphPositionsRequestDto"
          }
        },
        "relations": {
          "type": "array",
          "description": "Ontology import relations\n ",
          "items": {
            "$ref": "#/definitions/OntologyImportRequestDto"
          }
        }
      }
    },
    "OntologyGraphPositionsRequestDto": {
      "type": "object",
      "required": [
        "id",
        "positionX",
        "positionY",
        "type",
        "name",
        "isCollapsed"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Node id"
        },
        "positionX": {
          "type": "number",
          "description": "Ontology bubble position X",
          "format": "double"
        },
        "positionY": {
          "type": "number",
          "description": "Ontology bubble position Y",
          "format": "double"
        },
        "type": {
          "type": "string",
          "description": "Node Type"
        },
        "name": {
          "type": "string",
          "description": "Name of the node"
        },
        "parentId": {
          "type": "string",
          "description": "Parent id of the node"
        },
        "originalSize": {
          "description": "Original size of the node",
          "allOf": [
            {
              "$ref": "#/definitions/OntologyGraphPositionsNodeSizeRequestDto"
            }
          ]
        },
        "originalPosition": {
          "description": "Original position of the node",
          "allOf": [
            {
              "$ref": "#/definitions/OntologyGraphNodePositionRequestDto"
            }
          ]
        },
        "isCollapsed": {
          "type": "boolean",
          "description": "Is the node collapsed state or not"
        }
      }
    },
    "OntologyGraphPositionsNodeSizeRequestDto": {
      "type": "object",
      "required": [
        "width",
        "height"
      ],
      "properties": {
        "width": {
          "type": "number",
          "description": "Width of the node",
          "format": "double"
        },
        "height": {
          "type": "number",
          "description": "Height of the node",
          "format": "double"
        }
      }
    },
    "OntologyGraphNodePositionRequestDto": {
      "type": "object",
      "required": [
        "x",
        "y"
      ],
      "properties": {
        "x": {
          "type": "number",
          "description": "Node x position",
          "format": "double"
        },
        "y": {
          "type": "number",
          "description": "Node Y position",
          "format": "double"
        }
      }
    },
    "OntologyImportRequestDto": {
      "type": "object",
      "required": [
        "sourceId",
        "targetId",
        "type"
      ],
      "properties": {
        "sourceId": {
          "type": "integer",
          "description": "Source id of the ontology",
          "format": "int32"
        },
        "targetId": {
          "type": "integer",
          "description": "Import ontology id",
          "format": "int32"
        },
        "type": {
          "description": "Import type ",
          "allOf": [
            {
              "$ref": "#/definitions/OntologyImportRequestType"
            }
          ]
        }
      }
    },
    "OntologyImportRequestType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Add",
        "Delete"
      ],
      "enum": [
        "Add",
        "Delete"
      ]
    },
    "OntologyVersionResponseDto": {
      "type": "object",
      "required": [
        "ontologyId",
        "localOntologyVersion",
        "remoteOntologyVersion",
        "isOutdated"
      ],
      "properties": {
        "ontologyId": {
          "type": "integer",
          "description": "Ontology Id",
          "format": "int32"
        },
        "localOntologyVersion": {
          "type": "string",
          "description": "Current workspace ontology version"
        },
        "remoteOntologyVersion": {
          "type": "string",
          "description": "Remote ontology version"
        },
        "isOutdated": {
          "type": "boolean",
          "description": "value indicating whether the local ontology version is outdated compared to the remote ontology version."
        }
      }
    },
    "OntologyOutdatedStatusResponseDto": {
      "type": "object",
      "description": "Represents the status of an ontology regarding whether it is outdated compared to the latest version.",
      "required": [
        "ontologyId",
        "workspaceVersion",
        "latestVersion",
        "isOutdated",
        "statusUpdatedOn"
      ],
      "properties": {
        "ontologyId": {
          "type": "integer",
          "description": "Ontology identifier.",
          "format": "int32"
        },
        "workspaceVersion": {
          "type": "string",
          "description": "the version of the ontology in the workspace"
        },
        "latestVersion": {
          "type": "string",
          "description": "the latest available version of the ontology"
        },
        "isOutdated": {
          "type": "boolean",
          "description": "a value indicating whether the ontology is outdated"
        },
        "statusUpdatedOn": {
          "type": "string",
          "description": "the date and time when the status was last updated.",
          "format": "date-time"
        }
      }
    },
    "OntologyMetadataItemDto": {
      "type": "object",
      "description": "Represents a single ontology metadata annotation property (name/value pair)",
      "required": [
        "name",
        "value"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Property name as CURIE or IRI (e.g., \"dc:description\", \"dcterms:title\", \"rdfs:comment\")"
        },
        "value": {
          "type": "string",
          "description": "Property value as a literal string or URI"
        }
      }
    },
    "OntologyMetadataFieldSchemaDto": {
      "type": "object",
      "required": [
        "name",
        "field",
        "access",
        "visible",
        "store",
        "isCustom"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "field": {
          "type": "string"
        },
        "key": {
          "type": "string"
        },
        "ui": {
          "type": "string"
        },
        "uiEdit": {
          "type": "string"
        },
        "access": {
          "$ref": "#/definitions/AccessKind"
        },
        "visible": {
          "$ref": "#/definitions/VisibilityKind"
        },
        "store": {
          "$ref": "#/definitions/StoreKind"
        },
        "isCustom": {
          "type": "boolean"
        }
      }
    },
    "AccessKind": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Readonly",
        "Edit",
        "Delete"
      ],
      "enum": [
        "Readonly",
        "Edit",
        "Delete"
      ]
    },
    "VisibilityKind": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Show",
        "Hide"
      ],
      "enum": [
        "Show",
        "Hide"
      ]
    },
    "StoreKind": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Z",
        "M",
        "D"
      ],
      "enum": [
        "Z",
        "M",
        "D"
      ]
    },
    "OntologySourceFileSaveResponseDto": {
      "type": "object",
      "required": [
        "newSourceHash",
        "isPersisted",
        "indexStatus",
        "reloadWarnings"
      ],
      "properties": {
        "newSourceHash": {
          "type": "string",
          "description": "The SHA-256 hex hash of the newly saved content; used as the expected token for the next save."
        },
        "isPersisted": {
          "type": "boolean",
          "description": "True when the source file was written to disk."
        },
        "indexStatus": {
          "type": "string",
          "description": "Symbol-index freshness after a successful save: \"pending\" (invalidated, reload not attempted),\n\"stale\" (cache cleared but Fuseki upload has not yet reflected the change),\nor \"unknown\" (state cannot be determined)."
        },
        "reloadWarnings": {
          "type": "array",
          "description": "Non-empty when the save succeeded but a post-save step produced warnings.\nThe saved file is intact regardless of warnings.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "OntologySourceFileSaveRequestDto": {
      "type": "object",
      "required": [
        "fileType",
        "content",
        "expectedSourceHash"
      ],
      "properties": {
        "fileType": {
          "type": "string",
          "description": "The ontology serialization type being saved (TTL, OMN, or ORG)."
        },
        "content": {
          "type": "string",
          "description": "The new file content as a UTF-8 string."
        },
        "expectedSourceHash": {
          "type": "string",
          "description": "The SHA-256 hex hash of the content that was last loaded by the client.\nThe save is rejected with HTTP 409 when this does not match the current file hash."
        }
      }
    },
    "OntologyEditorSymbolsResponseDto": {
      "type": "object",
      "required": [
        "ontologyId",
        "directImportIds",
        "resolvedImportIds",
        "prefixes",
        "symbols",
        "warnings",
        "isComplete",
        "isTruncated",
        "version",
        "freshnessState"
      ],
      "properties": {
        "ontologyId": {
          "type": "integer",
          "format": "int32"
        },
        "directImportIds": {
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        },
        "resolvedImportIds": {
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        },
        "prefixes": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/OntologyEditorPrefixDto"
          }
        },
        "symbols": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/OntologyEditorSymbolDto"
          }
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "isComplete": {
          "type": "boolean",
          "description": "False when one or more import graphs could not be queried."
        },
        "isTruncated": {
          "type": "boolean",
          "description": "True when the symbol list was capped at the server maximum (20 000)."
        },
        "version": {
          "type": "string",
          "description": "Cache key composed of workspace, ontology, scope, upload/build token, and backend version."
        },
        "freshnessState": {
          "type": "string",
          "description": "fresh | stale | pending | unknown — describes how current the symbol data is."
        }
      }
    },
    "OntologyEditorPrefixDto": {
      "type": "object",
      "required": [
        "prefix",
        "namespace",
        "sourceOntologyId"
      ],
      "properties": {
        "prefix": {
          "type": "string"
        },
        "namespace": {
          "type": "string"
        },
        "sourceOntologyId": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "OntologyEditorSymbolDto": {
      "type": "object",
      "required": [
        "iri",
        "rdfTypes",
        "sourceOntologyId",
        "sourceOntologyName",
        "sourceGraph",
        "sourceScope"
      ],
      "properties": {
        "iri": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "rdfTypes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "definition": {
          "type": "string"
        },
        "comment": {
          "type": "string"
        },
        "sourceOntologyId": {
          "type": "integer",
          "format": "int32"
        },
        "sourceOntologyName": {
          "type": "string"
        },
        "sourceGraph": {
          "type": "string",
          "description": "The Fuseki named graph that provided this symbol."
        },
        "sourceScope": {
          "type": "string",
          "description": "current | direct-import | transitive-import"
        }
      }
    },
    "PATCreateResponseDto": {
      "type": "object",
      "required": [
        "issues",
        "savedContextIds"
      ],
      "properties": {
        "issues": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "savedContextIds": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "guid"
          }
        }
      }
    },
    "PATCreateRequestDTO": {
      "type": "object",
      "description": "Personal Access Token Create Request Dto",
      "required": [
        "hostingIdentifierId",
        "personalAccessToken",
        "isReadonly",
        "scope"
      ],
      "properties": {
        "hostingIdentifierId": {
          "type": "integer",
          "description": "HostingIdentifier Id as foreign key and must have in the database as referential integrity",
          "format": "int32"
        },
        "personalAccessToken": {
          "type": "string",
          "description": "Personal access token which is generated from azure devops"
        },
        "isReadonly": {
          "type": "boolean"
        },
        "scope": {
          "$ref": "#/definitions/PatScope"
        },
        "contextIds": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "guid"
          }
        }
      }
    },
    "PatScope": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Host",
        "Repository"
      ],
      "enum": [
        "Host",
        "Repository"
      ]
    },
    "PrefixResponseDto": {
      "type": "object",
      "required": [
        "key",
        "value"
      ],
      "properties": {
        "key": {
          "type": "string",
          "description": "Key of the prefix"
        },
        "value": {
          "type": "string",
          "description": "Value of the prefix"
        }
      }
    },
    "PrefixRequestDto": {
      "type": "object",
      "required": [
        "key",
        "value"
      ],
      "properties": {
        "key": {
          "type": "string",
          "description": "Key of the prefix"
        },
        "value": {
          "type": "string",
          "description": "Value of the prefix"
        }
      }
    },
    "PrefixListResponseDto": {
      "type": "object",
      "required": [
        "id",
        "name",
        "prefixType",
        "prefixes"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Id of the prefix list",
          "format": "int32"
        },
        "name": {
          "type": "string",
          "description": "Prefix list name"
        },
        "prefixType": {
          "description": "Type of the prefix list",
          "allOf": [
            {
              "$ref": "#/definitions/PrefixType"
            }
          ]
        },
        "prefixes": {
          "type": "array",
          "description": "List of prefixes associate with this list",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "PrefixType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Stottr",
        "Bottr",
        "Sparql"
      ],
      "enum": [
        "Stottr",
        "Bottr",
        "Sparql"
      ]
    },
    "PrefixListRequestDto": {
      "type": "object",
      "required": [
        "name",
        "prefixType",
        "prefixes"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of prefix list."
        },
        "prefixType": {
          "description": "Type of the prefix list.",
          "allOf": [
            {
              "$ref": "#/definitions/PrefixType"
            }
          ]
        },
        "prefixes": {
          "type": "array",
          "description": "List of the prefix which will be tagged with prefixList.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "PrefixListUpdateRequestDto": {
      "type": "object",
      "required": [
        "name",
        "prefixes"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of prefix list."
        },
        "prefixes": {
          "type": "array",
          "description": "List of the prefix which will be tagged with prefixList.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "ApplicationUserDto": {
      "type": "object",
      "description": "ApplicationUserDto data read from Authenticated user claims",
      "required": [
        "id",
        "veracityUserId",
        "firstName",
        "lastName",
        "email",
        "hasPat",
        "repositoriesNeedingAttention"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "IOTool System Generated UserId",
          "format": "guid",
          "example": "1f3e0159-a657-43f8-bc96-5538a7c1ab2f"
        },
        "veracityUserId": {
          "type": "string",
          "description": "Veracity UserId, Retrieve from Veracity Claims",
          "format": "guid",
          "example": "1f3e0159-a657-43f8-bc96-5538a7c1ab2f"
        },
        "firstName": {
          "type": "string",
          "description": "Veracity First Name and stored in IOTools db also"
        },
        "lastName": {
          "type": "string",
          "description": "Veracity Last Name and stored in IO tools db also"
        },
        "email": {
          "type": "string",
          "description": "Veracity Email address Retrieve from authenticated claim and stored in IO tools db also",
          "example": "example@dnv.com"
        },
        "hasPat": {
          "type": "boolean",
          "description": "User has pat or not"
        },
        "repositoriesNeedingAttention": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "ActiveRoleResponseDto": {
      "type": "object",
      "required": [
        "role"
      ],
      "properties": {
        "role": {
          "type": "string"
        }
      }
    },
    "RoleResponseDto": {
      "type": "object",
      "required": [
        "roles",
        "activeRole"
      ],
      "properties": {
        "roles": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "activeRole": {
          "type": "string"
        }
      }
    },
    "QARunStartRequestDto": {
      "type": "object",
      "properties": {
        "stepId": {
          "type": "string"
        },
        "parameters": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/QAStepParameterDto"
          }
        }
      }
    },
    "QAStepParameterDto": {
      "type": "object",
      "required": [
        "key",
        "value"
      ],
      "properties": {
        "key": {
          "type": "string"
        },
        "value": {}
      }
    },
    "QAListRunHistoryResponseDto": {
      "type": "object",
      "required": [
        "id",
        "name",
        "status",
        "startedAt",
        "runSteps"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Qa run Id",
          "format": "guid"
        },
        "name": {
          "type": "string",
          "description": "QA run Name"
        },
        "status": {
          "description": "QA run Status",
          "allOf": [
            {
              "$ref": "#/definitions/QARunStatus"
            }
          ]
        },
        "startedAt": {
          "type": "string",
          "description": "QA run Start time",
          "format": "date-time"
        },
        "endedAt": {
          "type": "string",
          "description": "QA run end time",
          "format": "date-time"
        },
        "runSteps": {
          "type": "array",
          "description": "QA run steps",
          "items": {
            "$ref": "#/definitions/QAListRunStepHistoryResponseDto"
          }
        }
      }
    },
    "QARunStatus": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Queue",
        "Running",
        "Success",
        "Failed",
        "CancelledByUser",
        "CancelledByException"
      ],
      "enum": [
        "Queue",
        "Running",
        "Success",
        "Failed",
        "CancelledByUser",
        "CancelledByException"
      ]
    },
    "QAListRunStepHistoryResponseDto": {
      "type": "object",
      "required": [
        "name",
        "status"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "QA run step name"
        },
        "status": {
          "description": "QA run status",
          "allOf": [
            {
              "$ref": "#/definitions/QARunStatus"
            }
          ]
        }
      }
    },
    "QARunStepResponseDto": {
      "type": "object",
      "required": [
        "id",
        "name",
        "startedAt",
        "status",
        "order"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "QA run step Id",
          "format": "guid"
        },
        "name": {
          "type": "string",
          "description": "QA run step Name"
        },
        "startedAt": {
          "type": "string",
          "description": "QA run step started at",
          "format": "date-time"
        },
        "endedAt": {
          "type": "string",
          "description": "QA run step ended at",
          "format": "date-time"
        },
        "status": {
          "description": "QA run step status",
          "allOf": [
            {
              "$ref": "#/definitions/QARunStatus"
            }
          ]
        },
        "order": {
          "type": "integer",
          "description": "QA run step order",
          "format": "int32"
        }
      }
    },
    "QARunStepDetailsResponseDto": {
      "type": "object",
      "required": [
        "name",
        "status"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "QA run step name"
        },
        "status": {
          "description": "QA run step status",
          "allOf": [
            {
              "$ref": "#/definitions/QARunStatus"
            }
          ]
        },
        "summary": {
          "type": "string",
          "description": "QA run step summary"
        }
      }
    },
    "QualityAssuranceResponseDto": {
      "type": "object",
      "required": [
        "id",
        "name",
        "qualityAssuranceItems",
        "isCommon"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Id of Quality Assurance",
          "format": "guid"
        },
        "name": {
          "type": "string",
          "description": "Name of Quality Assurance"
        },
        "qualityAssuranceItems": {
          "type": "array",
          "description": "List of Quality Assurance Items",
          "items": {
            "$ref": "#/definitions/QualityAssuranceDto"
          }
        },
        "isCommon": {
          "type": "boolean",
          "description": "Is this Quality Assurance common across all contexts"
        }
      }
    },
    "QualityAssuranceDto": {
      "type": "object",
      "required": [
        "stepId",
        "name",
        "shortName"
      ],
      "properties": {
        "stepId": {
          "type": "string",
          "description": "Quality Assurance Id",
          "format": "guid"
        },
        "name": {
          "type": "string",
          "description": "Quality Assurance Name"
        },
        "shortName": {
          "type": "string",
          "description": "Quality Assurance Description"
        }
      }
    },
    "QAListResponseDto": {
      "type": "object",
      "required": [
        "qaListId",
        "qaListName"
      ],
      "properties": {
        "qaListId": {
          "type": "string",
          "description": "QA List Id",
          "format": "guid"
        },
        "qaListName": {
          "type": "string",
          "description": "QA List Name"
        },
        "lastRunTitle": {
          "type": "string",
          "description": "Last Run Title Generated From System"
        },
        "lastRunId": {
          "type": "string",
          "description": "Last Run Id",
          "format": "guid"
        },
        "status": {
          "description": "Queue | Running | Success | Failed | CancelledByUser | CancelledByException",
          "allOf": [
            {
              "$ref": "#/definitions/QARunStatus"
            }
          ]
        },
        "startedAt": {
          "type": "string",
          "description": "QA Run Started At",
          "format": "date-time"
        },
        "endedAt": {
          "type": "string",
          "description": "QA Run Ended At",
          "format": "date-time"
        }
      }
    },
    "QualityAssuranceRequestDto": {
      "type": "object",
      "required": [
        "name",
        "items",
        "isCommon"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the quality assurance list."
        },
        "items": {
          "type": "array",
          "description": "Items of the quality assurance list.",
          "items": {
            "type": "string",
            "format": "guid"
          }
        },
        "isCommon": {
          "type": "boolean",
          "description": "Common quality assurance across all contexts."
        },
        "contextId": {
          "type": "string",
          "description": "If Is Common True then ContextId will be null if Common False Then ContextId Must Have Value",
          "format": "guid"
        }
      }
    },
    "QAStepParameterResponseDto": {
      "type": "object",
      "required": [
        "id",
        "displayName",
        "ontologyEngineParameterName",
        "uiParameterType",
        "uiDataSourceKey",
        "isRequired",
        "isAllowAll",
        "description",
        "stepName"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Parameter Id",
          "format": "guid"
        },
        "displayName": {
          "type": "string",
          "description": "Display Name"
        },
        "ontologyEngineParameterName": {
          "type": "string",
          "description": "Ontology Engine Parameter Name"
        },
        "uiParameterType": {
          "description": "UI Element Type ",
          "allOf": [
            {
              "$ref": "#/definitions/UIParameterType"
            }
          ]
        },
        "uiDataSourceKey": {
          "description": "UI Data Source key ex for select | multiselect",
          "allOf": [
            {
              "$ref": "#/definitions/UIDataSourceKey"
            }
          ]
        },
        "isRequired": {
          "type": "boolean",
          "description": "Is Required"
        },
        "isAllowAll": {
          "type": "boolean",
          "description": "It will work only for select | multiselect UI types"
        },
        "description": {
          "type": "string",
          "description": "To Show Parameter Description in UI"
        },
        "stepName": {
          "type": "string",
          "description": "Step Name"
        }
      }
    },
    "UIParameterType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "InputBox",
        "DropDown",
        "CheckBox",
        "MultiSelect"
      ],
      "enum": [
        "InputBox",
        "DropDown",
        "CheckBox",
        "MultiSelect"
      ]
    },
    "UIDataSourceKey": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "OntologyList"
      ],
      "enum": [
        "OntologyList"
      ]
    },
    "ReferenceLabelDto": {
      "type": "object",
      "description": "A single resolved reference label: the IRI, its display label, and the\nnamespace/local-name split when available.",
      "required": [
        "iri",
        "label"
      ],
      "properties": {
        "iri": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "namespace": {
          "type": "string"
        },
        "localName": {
          "type": "string"
        }
      }
    },
    "ReferenceLabelsRequestDto": {
      "type": "object",
      "required": [
        "resources"
      ],
      "properties": {
        "resources": {
          "type": "array",
          "description": "Resources to resolve. Each entry is a full IRI, a prefixed name, or\ncsv://{file}:{row}:{column}. Entries without a label are omitted from the response.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "SparqlLabelBatchRequestDto": {
      "type": "object",
      "description": "A set of IRIs to look up in the triplestore for display labels.",
      "required": [
        "iris"
      ],
      "properties": {
        "iris": {
          "type": "array",
          "description": "The IRIs to resolve. Entries without a label are omitted from the response.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "RepositoryPatValidationDto": {
      "type": "object",
      "required": [
        "contextId",
        "name",
        "reachable",
        "reason"
      ],
      "properties": {
        "contextId": {
          "type": "string",
          "format": "guid"
        },
        "name": {
          "type": "string"
        },
        "reachable": {
          "type": "boolean"
        },
        "reason": {
          "type": "string"
        }
      }
    },
    "RepositoryAccessResponseDto": {
      "type": "object",
      "required": [
        "userId",
        "scope",
        "membershipSyncPending",
        "repositories",
        "assigned",
        "ready",
        "needingAttention"
      ],
      "properties": {
        "userId": {
          "type": "string",
          "format": "guid"
        },
        "scope": {
          "$ref": "#/definitions/OntAdmRepositoryScope"
        },
        "membershipSyncPending": {
          "type": "boolean"
        },
        "membershipSyncError": {
          "type": "string"
        },
        "membershipSyncNextAttemptAt": {
          "type": "string",
          "format": "date-time"
        },
        "repositories": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/RepositoryAccessRowDto"
          }
        },
        "assigned": {
          "type": "integer",
          "format": "int32"
        },
        "ready": {
          "type": "integer",
          "format": "int32"
        },
        "needingAttention": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "OntAdmRepositoryScope": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "All",
        "Selected"
      ],
      "enum": [
        "All",
        "Selected"
      ]
    },
    "RepositoryAccessRowDto": {
      "type": "object",
      "required": [
        "contextId",
        "name",
        "hostingIdentifierId",
        "host",
        "hostingType",
        "assigned",
        "managedByActor",
        "otherRoles",
        "status",
        "message"
      ],
      "properties": {
        "contextId": {
          "type": "string",
          "format": "guid"
        },
        "name": {
          "type": "string"
        },
        "hostingIdentifierId": {
          "type": "integer",
          "format": "int32"
        },
        "host": {
          "type": "string"
        },
        "hostingType": {
          "$ref": "#/definitions/GitHostingType"
        },
        "assigned": {
          "type": "boolean"
        },
        "managedByActor": {
          "type": "boolean"
        },
        "otherRoles": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "status": {
          "$ref": "#/definitions/RepositoryAccessStatus"
        },
        "patSource": {
          "$ref": "#/definitions/PatScope"
        },
        "checkedAt": {
          "type": "string",
          "format": "date-time"
        },
        "checkAttemptedAt": {
          "type": "string",
          "format": "date-time"
        },
        "nextCheckAt": {
          "type": "string",
          "format": "date-time"
        },
        "checkFailureMessage": {
          "type": "string"
        },
        "message": {
          "type": "string"
        }
      }
    },
    "RepositoryAccessStatus": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "NotAssigned",
        "PatMissing",
        "NoRemoteAccess",
        "PatExpired",
        "Ready"
      ],
      "enum": [
        "NotAssigned",
        "PatMissing",
        "NoRemoteAccess",
        "PatExpired",
        "Ready"
      ]
    },
    "RequirementsResponseDto": {
      "type": "object",
      "required": [
        "str",
        "results"
      ],
      "properties": {
        "str": {
          "description": "Str of requirements",
          "allOf": [
            {
              "$ref": "#/definitions/RequirementsHeadDto"
            }
          ]
        },
        "results": {
          "description": "Results of requirements",
          "allOf": [
            {
              "$ref": "#/definitions/RequirementsResultDto"
            }
          ]
        }
      }
    },
    "RequirementsHeadDto": {
      "type": "object",
      "required": [
        "vars"
      ],
      "properties": {
        "vars": {
          "type": "array",
          "description": "Vars of requirements head",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "RequirementsResultDto": {
      "type": "object",
      "required": [
        "bindings"
      ],
      "properties": {
        "bindings": {
          "type": "array",
          "description": "Bindings of requirements result",
          "items": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/definitions/RequirementsBindingsDto"
            }
          }
        }
      }
    },
    "RequirementsBindingsDto": {
      "type": "object",
      "required": [
        "type",
        "value"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of requirements bindings\n "
        },
        "value": {
          "type": "string",
          "description": "Value of requirements bindings"
        }
      }
    },
    "SearchResultDto": {
      "type": "object",
      "required": [
        "fileName",
        "results",
        "sumOfScores"
      ],
      "properties": {
        "fileName": {
          "type": "string"
        },
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/MatchedResultDto"
          }
        },
        "sumOfScores": {
          "type": "number",
          "format": "float"
        }
      }
    },
    "MatchedResultDto": {
      "type": "object",
      "required": [
        "highlightedContentPosition",
        "highlightedContent",
        "score"
      ],
      "properties": {
        "highlightedContentPosition": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/HighlightedPositionDto"
          }
        },
        "highlightedContent": {
          "type": "string"
        },
        "score": {
          "type": "number",
          "format": "float"
        }
      }
    },
    "HighlightedPositionDto": {
      "type": "object",
      "required": [
        "textStartPosition",
        "textEndPosition",
        "fragmentNumber",
        "lineNumber",
        "score"
      ],
      "properties": {
        "textStartPosition": {
          "type": "integer",
          "format": "int32"
        },
        "textEndPosition": {
          "type": "integer",
          "format": "int32"
        },
        "fragmentNumber": {
          "type": "integer",
          "format": "int32"
        },
        "lineNumber": {
          "type": "integer",
          "format": "int32"
        },
        "score": {
          "type": "number",
          "format": "float"
        }
      }
    },
    "SearchType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Datafile",
        "TTL"
      ],
      "enum": [
        "Datafile",
        "TTL"
      ]
    },
    "ShaclFileDto": {
      "type": "object",
      "required": [
        "fileName",
        "uploadedAt"
      ],
      "properties": {
        "fileName": {
          "type": "string"
        },
        "uploadedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "ShaclFileContentRequest": {
      "type": "object",
      "required": [
        "fileName"
      ],
      "properties": {
        "fileName": {
          "type": "string"
        },
        "content": {
          "type": "string"
        }
      }
    },
    "ShaclFileContentUpdateRequest": {
      "type": "object",
      "properties": {
        "content": {
          "type": "string"
        }
      }
    },
    "ShaclMappingDto": {
      "type": "object",
      "required": [
        "ontologyId",
        "shaclFileName",
        "remarks"
      ],
      "properties": {
        "ontologyId": {
          "type": "integer",
          "format": "int32"
        },
        "shaclFileName": {
          "type": "string"
        },
        "remarks": {
          "type": "string"
        }
      }
    },
    "SparqlQueryType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Common",
        "Context"
      ],
      "enum": [
        "Common",
        "Context"
      ]
    },
    "SparqlSaveRequestDto": {
      "type": "object",
      "required": [
        "name",
        "content"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "Sparql file name"
        },
        "content": {
          "type": "string",
          "description": "Sparql file content"
        },
        "workspaceId": {
          "type": "string",
          "description": "Workspace id is required to save context query",
          "format": "guid"
        }
      }
    },
    "TemplateResponseDto": {
      "type": "object",
      "required": [
        "name",
        "properties",
        "isLibTemplate"
      ],
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the template."
        },
        "properties": {
          "type": "array",
          "description": "A collection of properties defined in the template.",
          "items": {
            "$ref": "#/definitions/TemplatePropertyResponseDto"
          }
        },
        "isLibTemplate": {
          "type": "boolean",
          "description": "Indicates whether the template is a library template."
        }
      }
    },
    "TemplatePropertyResponseDto": {
      "type": "object",
      "required": [
        "modifier",
        "type",
        "name"
      ],
      "properties": {
        "modifier": {
          "type": "string",
          "description": "Modifier of the property"
        },
        "type": {
          "type": "string",
          "description": "The data type of the property."
        },
        "name": {
          "type": "string",
          "description": "The name of the property."
        }
      }
    },
    "StottrTemplateType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "ContextOnly",
        "All"
      ],
      "enum": [
        "ContextOnly",
        "All"
      ]
    },
    "TemplateDetailsResponseDto": {
      "type": "object",
      "required": [
        "fileName",
        "lineNumber",
        "fileContent"
      ],
      "properties": {
        "fileName": {
          "type": "string",
          "description": "File Name"
        },
        "ontologies": {
          "type": "string",
          "description": "Ontologies name with comma separate"
        },
        "parts": {
          "type": "string",
          "description": "Part names with comma separate"
        },
        "lineNumber": {
          "type": "integer",
          "description": "Stottr template starting line number",
          "format": "int32"
        },
        "fileContent": {
          "type": "string",
          "description": "Base64 string of a file"
        }
      }
    },
    "BottrFileRenameRequestDto": {
      "type": "object",
      "required": [
        "newFileName"
      ],
      "properties": {
        "newFileName": {
          "type": "string",
          "description": "New file name with extensions"
        }
      }
    },
    "TemplateType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Stottr",
        "Bottr"
      ],
      "enum": [
        "Stottr",
        "Bottr"
      ]
    },
    "TemplateCreateRequestDto": {
      "type": "object",
      "required": [
        "fileName",
        "fileType"
      ],
      "properties": {
        "fileName": {
          "type": "string",
          "description": "The name of the file to be created."
        },
        "fileType": {
          "description": "The content of the file to be created.",
          "allOf": [
            {
              "$ref": "#/definitions/TemplateType"
            }
          ]
        }
      }
    },
    "UpdateResponseDto": {
      "type": "object",
      "required": [
        "id",
        "title",
        "content",
        "createdAt",
        "type",
        "status",
        "isWorkspaceDeleted",
        "isViewed"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Update id",
          "format": "guid"
        },
        "title": {
          "type": "string",
          "description": "Title of the update"
        },
        "content": {
          "type": "string",
          "description": "Content of the update"
        },
        "createdAt": {
          "type": "string",
          "description": "Created At",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "description": "Updated At",
          "format": "date-time"
        },
        "workspaceId": {
          "type": "string",
          "description": "Workspace id of the update",
          "format": "guid"
        },
        "workspaceName": {
          "type": "string",
          "description": "Workspace name"
        },
        "type": {
          "description": "Update type",
          "allOf": [
            {
              "$ref": "#/definitions/UpdateType"
            }
          ]
        },
        "status": {
          "type": "string",
          "description": "Update Status"
        },
        "isWorkspaceDeleted": {
          "type": "boolean",
          "description": "Workspace is deleted or not"
        },
        "isViewed": {
          "type": "boolean",
          "description": "Has the user viewed the update"
        }
      }
    },
    "UpdateType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "PR",
        "Task",
        "PlainText"
      ],
      "enum": [
        "PR",
        "Task",
        "PlainText"
      ]
    },
    "RepositoryAccessAssignmentDto": {
      "type": "object",
      "required": [
        "scope",
        "contextIds"
      ],
      "properties": {
        "scope": {
          "$ref": "#/definitions/OntAdmRepositoryScope"
        },
        "contextIds": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "guid"
          }
        }
      }
    },
    "RepositoryCoverageRemediationDto": {
      "type": "object",
      "required": [
        "userId",
        "contextIds"
      ],
      "properties": {
        "userId": {
          "type": "string",
          "format": "guid"
        },
        "contextIds": {
          "type": "array",
          "items": {
            "type": "string",
            "format": "guid"
          }
        }
      }
    },
    "UserResponseDto": {
      "type": "object",
      "required": [
        "id",
        "firstName",
        "lastName",
        "email",
        "isActive",
        "repositoryAccessScope",
        "assignedRepositoryCount",
        "totalRepositoryCount",
        "repositoryAttentionCount",
        "roles",
        "contexts"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "User id",
          "format": "guid"
        },
        "firstName": {
          "type": "string",
          "description": "FirstName"
        },
        "lastName": {
          "type": "string",
          "description": "LastName"
        },
        "email": {
          "type": "string",
          "description": "Email"
        },
        "isActive": {
          "type": "boolean",
          "description": "User active status"
        },
        "repositoryAccessScope": {
          "$ref": "#/definitions/OntAdmRepositoryScope"
        },
        "assignedRepositoryCount": {
          "type": "integer",
          "format": "int32"
        },
        "totalRepositoryCount": {
          "type": "integer",
          "format": "int32"
        },
        "repositoryAttentionCount": {
          "type": "integer",
          "format": "int32"
        },
        "roles": {
          "type": "array",
          "description": "Roles",
          "items": {
            "type": "string"
          }
        },
        "contexts": {
          "type": "array",
          "description": "Contexts",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "ApplicationUserResponseDto": {
      "type": "object",
      "description": "Application User Response Dto",
      "required": [
        "id",
        "veracityUserId",
        "firstName",
        "lastName",
        "fullName",
        "emailAddress"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Application User Id",
          "format": "guid"
        },
        "veracityUserId": {
          "type": "string",
          "description": "User Veracity Id",
          "format": "guid"
        },
        "firstName": {
          "type": "string",
          "description": "User First Name"
        },
        "lastName": {
          "type": "string",
          "description": "User Last Name"
        },
        "fullName": {
          "type": "string",
          "description": "User Full Name"
        },
        "emailAddress": {
          "type": "string",
          "description": "User Email Address"
        }
      }
    },
    "UserAllowedContextsResponseDto": {
      "type": "object",
      "required": [
        "allowedDbContexts",
        "allowedGitProviderContexts"
      ],
      "properties": {
        "allowedDbContexts": {
          "type": "array",
          "description": "Allowed contexts list which is allowed in UserContexts table",
          "items": {
            "type": "string"
          }
        },
        "allowedGitProviderContexts": {
          "type": "array",
          "description": "List of contexts list which is allowed in git provider",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "UserCreateRequestDto": {
      "type": "object",
      "required": [
        "emailAddress",
        "firstName",
        "lastName",
        "isSysAdm",
        "isOntAdm"
      ],
      "properties": {
        "emailAddress": {
          "type": "string",
          "description": "Email Address of the user"
        },
        "firstName": {
          "type": "string",
          "description": "First Name of the user"
        },
        "lastName": {
          "type": "string",
          "description": "Last Name of the user"
        },
        "isSysAdm": {
          "type": "boolean",
          "description": "Is User System Admin"
        },
        "isOntAdm": {
          "type": "boolean",
          "description": "Is User Ontology Admin"
        },
        "repositoryAccess": {
          "$ref": "#/definitions/RepositoryAccessAssignmentDto"
        }
      }
    },
    "UpdateUserRequestDto": {
      "type": "object",
      "required": [
        "isSysAdm",
        "isOntAdm",
        "isActive"
      ],
      "properties": {
        "isSysAdm": {
          "type": "boolean",
          "description": "Is User System Admin"
        },
        "isOntAdm": {
          "type": "boolean",
          "description": "Is User Ontology Admin"
        },
        "isActive": {
          "type": "boolean",
          "description": "Status of the user"
        },
        "repositoryAccess": {
          "$ref": "#/definitions/RepositoryAccessAssignmentDto"
        }
      }
    },
    "UserNotificationResponseDto": {
      "type": "object",
      "required": [
        "notification",
        "type"
      ],
      "properties": {
        "notification": {
          "type": "string",
          "description": "Notification message"
        },
        "type": {
          "description": "Notification type",
          "allOf": [
            {
              "$ref": "#/definitions/UserNotificationType"
            }
          ]
        }
      }
    },
    "UserNotificationType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "ReadonlyPatMissing",
        "RepositoryPatMissing"
      ],
      "enum": [
        "ReadonlyPatMissing",
        "RepositoryPatMissing"
      ]
    },
    "UserPatInfoResponseDto": {
      "type": "object",
      "required": [
        "userPersonalAccessTokenId",
        "isReadonly",
        "gitHostingIdentifier",
        "gitHostingType",
        "isValidToken",
        "createOrUpdateUtcDateTime",
        "userPatAllowedContextInfos"
      ],
      "properties": {
        "userPersonalAccessTokenId": {
          "type": "string",
          "description": "User Personal Access Token id",
          "format": "guid"
        },
        "isReadonly": {
          "type": "boolean",
          "description": "Whether the token is read-only or not"
        },
        "gitHostingIdentifier": {
          "type": "string",
          "description": "Git hosting identifier name"
        },
        "gitHostingType": {
          "description": "Git hosting type",
          "allOf": [
            {
              "$ref": "#/definitions/GitHostingType"
            }
          ]
        },
        "isValidToken": {
          "type": "boolean",
          "description": "Is token valid"
        },
        "errorMessage": {
          "type": "string",
          "description": "Error occurred while fetching records from the Git provider."
        },
        "createOrUpdateUtcDateTime": {
          "type": "string",
          "description": "When the token created or last updated",
          "format": "date-time"
        },
        "userPatAllowedContextInfos": {
          "type": "array",
          "description": "Context associated with the pat",
          "items": {
            "$ref": "#/definitions/UserPatInfoAllowedContextResponseDto"
          }
        }
      }
    },
    "UserPatInfoAllowedContextResponseDto": {
      "type": "object",
      "required": [
        "id",
        "name",
        "isTokenAbleToAccessThisContextInRemote"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Context id",
          "format": "guid"
        },
        "name": {
          "type": "string",
          "description": "Context name"
        },
        "isTokenAbleToAccessThisContextInRemote": {
          "type": "boolean",
          "description": "Is token able to access this context in remote"
        }
      }
    },
    "VersionResponseDto": {
      "type": "object",
      "required": [
        "version",
        "taggedOn"
      ],
      "properties": {
        "version": {
          "type": "string",
          "description": "Version no"
        },
        "description": {
          "type": "string",
          "description": "Description of the version"
        },
        "taggedOn": {
          "type": "string",
          "description": "tag creation date time",
          "format": "date-time"
        },
        "type": {
          "description": "type of version context | ontology",
          "allOf": [
            {
              "$ref": "#/definitions/VersionType"
            }
          ]
        }
      }
    },
    "VersionType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Context",
        "Ontology"
      ],
      "enum": [
        "Context",
        "Ontology"
      ]
    },
    "WorkspaceVersionResponseDto": {
      "type": "object",
      "required": [
        "workspaceVersion",
        "contextVersion"
      ],
      "properties": {
        "workspaceVersion": {
          "type": "string",
          "description": "Workspace Max Version"
        },
        "contextVersion": {
          "type": "string",
          "description": "Context Version | Default Branch Max Version"
        }
      }
    },
    "PaginatedWorkspaceResponseDto": {
      "type": "object",
      "required": [
        "items",
        "page",
        "limit",
        "total"
      ],
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/WorkspaceResponseDto"
          }
        },
        "page": {
          "type": "integer",
          "format": "int32"
        },
        "limit": {
          "type": "integer",
          "format": "int32"
        },
        "total": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "WorkspaceResponseDto": {
      "type": "object",
      "description": "Workspace response dto",
      "required": [
        "id",
        "name",
        "author",
        "createdAt",
        "contextId",
        "contextName",
        "description",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "System Generated Id | db unique identifier",
          "format": "guid"
        },
        "name": {
          "type": "string",
          "description": "Workspace name | azure devops branch name"
        },
        "author": {
          "type": "string",
          "description": "Creator of the workspace | UserId from database"
        },
        "editedAt": {
          "type": "string",
          "description": "Last edited time in the workspace",
          "format": "date-time"
        },
        "createdAt": {
          "type": "string",
          "description": "Workspace created date and time",
          "format": "date-time"
        },
        "publishedAt": {
          "type": "string",
          "description": "Workspace published time | devops pull request created time",
          "format": "date-time"
        },
        "contextId": {
          "type": "string",
          "description": "Repository Id | foreign key of azure devops repository",
          "format": "guid"
        },
        "contextName": {
          "type": "string",
          "description": "Context Name / Repository Name"
        },
        "description": {
          "type": "string",
          "description": "Description of the workspace"
        },
        "status": {
          "description": "Status enum type value",
          "allOf": [
            {
              "$ref": "#/definitions/WorkspaceStatus"
            }
          ]
        }
      }
    },
    "Direction": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Asc",
        "Desc"
      ],
      "enum": [
        "Asc",
        "Desc"
      ]
    },
    "WorkspaceDetailsResponseDto": {
      "type": "object",
      "required": [
        "id",
        "name",
        "description",
        "createdAt",
        "status",
        "context",
        "activeTaskCount"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "System generated guid | db unique identifier",
          "format": "guid"
        },
        "name": {
          "type": "string",
          "description": "Workspace name | azure devops branch name"
        },
        "description": {
          "type": "string",
          "description": "workspace description"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "editedAt": {
          "type": "string",
          "format": "date-time"
        },
        "status": {
          "$ref": "#/definitions/WorkspaceStatus"
        },
        "context": {
          "$ref": "#/definitions/ContextForWorkspaceResponseDto"
        },
        "activeTaskCount": {
          "type": "integer",
          "description": "A count of current active and new tasks in workspace",
          "format": "int32"
        }
      }
    },
    "ContextForWorkspaceResponseDto": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Context Id",
          "format": "guid"
        },
        "name": {
          "type": "string",
          "description": "Context Name"
        }
      }
    },
    "WorkspaceCreateRequestDto": {
      "type": "object",
      "required": [
        "contextId",
        "name",
        "description",
        "isDefaultWorkspace"
      ],
      "properties": {
        "contextId": {
          "type": "string",
          "description": "Repository | Context Id , ref of DevOps repository",
          "format": "guid"
        },
        "sourceId": {
          "type": "string",
          "description": "Created from source workspace | branch",
          "format": "guid"
        },
        "name": {
          "type": "string",
          "description": "Workspace | branch name"
        },
        "description": {
          "type": "string",
          "description": "Workspace description"
        },
        "isDefaultWorkspace": {
          "type": "boolean",
          "description": "Workspace is default or not"
        }
      }
    },
    "WorkspaceUpdateRequestDto": {
      "type": "object",
      "required": [
        "description"
      ],
      "properties": {
        "description": {
          "type": "string"
        }
      }
    },
    "TaskResponseDto": {
      "type": "object",
      "description": "Paginated DevOps task response dto",
      "required": [
        "tasks"
      ],
      "properties": {
        "tasks": {
          "type": "array",
          "description": "List of DevOps Task",
          "items": {
            "$ref": "#/definitions/DevOpsTask"
          }
        },
        "nextPage": {
          "type": "string",
          "description": "Url that will provide data for next page"
        },
        "prevPage": {
          "type": "string",
          "description": "Url that will provide data for previous pages"
        }
      }
    },
    "DevOpsTask": {
      "type": "object",
      "required": [
        "id",
        "title",
        "description",
        "createdAt",
        "updatedAt",
        "status"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "azure devops task id"
        },
        "title": {
          "type": "string",
          "description": "Azure devops work item title"
        },
        "description": {
          "type": "string",
          "description": "Azure devops task description"
        },
        "createdAt": {
          "type": "string",
          "description": "azure devops task created time",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "description": "azure devops task last updated time",
          "format": "date-time"
        },
        "userId": {
          "type": "string",
          "description": "user id , in which the user assigned to the task",
          "format": "guid"
        },
        "status": {
          "type": "string",
          "description": "task status from devops ex. to do, closed , resolved"
        },
        "comments": {
          "type": "array",
          "description": "List of Comments from DevOps",
          "items": {
            "$ref": "#/definitions/CommentResponseDto"
          }
        }
      }
    },
    "CommentResponseDto": {
      "type": "object",
      "description": "Comment Response Dto",
      "required": [
        "text",
        "commentedBy",
        "commentByName",
        "createdOn"
      ],
      "properties": {
        "text": {
          "type": "string",
          "description": "Body text from Azure Devops"
        },
        "commentedBy": {
          "type": "string",
          "description": "Devops Commented By"
        },
        "commentByName": {
          "type": "string",
          "description": "Commentator Name From Devops"
        },
        "createdOn": {
          "type": "string",
          "description": "Comment Created On",
          "format": "date-time"
        }
      }
    },
    "TaskCreateRequestDto": {
      "type": "object",
      "required": [
        "title",
        "description",
        "userId"
      ],
      "properties": {
        "title": {
          "type": "string",
          "description": "Azure DevOps task title"
        },
        "description": {
          "type": "string",
          "description": "Azure DevOps Task Description"
        },
        "userId": {
          "type": "string",
          "description": "Assignee UserId which is IOTool UserId",
          "format": "guid"
        }
      }
    },
    "TaskUpdateRequestDto": {
      "type": "object",
      "description": "Task Complete Request Dto",
      "required": [
        "comment"
      ],
      "properties": {
        "comment": {
          "type": "string",
          "description": "Comment for Azure DevOps Task"
        },
        "status": {
          "type": "string",
          "description": "Azure DevOps Task Status Accept four Status Active | Removed | "
        }
      }
    },
    "CreatePrRequestDto": {
      "type": "object",
      "required": [
        "title",
        "comment"
      ],
      "properties": {
        "title": {
          "type": "string",
          "description": "Azure DevOps Pull Request Title"
        },
        "comment": {
          "type": "string",
          "description": "Azure DevOps Pull Request Comment"
        },
        "versionIncrementRequestDto": {
          "description": "Increment Version",
          "allOf": [
            {
              "$ref": "#/definitions/VersionIncrementRequestDto"
            }
          ]
        }
      }
    },
    "CommitRequestDto": {
      "type": "object",
      "description": "Got Commit Message Request Dto",
      "required": [
        "message"
      ],
      "properties": {
        "message": {
          "type": "string",
          "description": "Git Commit Message"
        }
      }
    },
    "OntologySourceResponseDto": {
      "type": "object",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Source id",
          "format": "int32"
        },
        "name": {
          "type": "string",
          "description": "Source name"
        }
      }
    },
    "GitLogsResponseDto": {
      "type": "object",
      "required": [
        "history"
      ],
      "properties": {
        "history": {
          "type": "array",
          "description": "Commit History",
          "items": {
            "$ref": "#/definitions/CommitResponseDto"
          }
        }
      }
    },
    "CommitResponseDto": {
      "type": "object",
      "required": [
        "commit",
        "author",
        "date",
        "message"
      ],
      "properties": {
        "commit": {
          "type": "string",
          "description": "Git Commit Id / Hash from Git"
        },
        "author": {
          "type": "string",
          "description": "Git Committed Author"
        },
        "date": {
          "type": "string",
          "description": "Git Commit Date",
          "format": "date-time"
        },
        "message": {
          "type": "string",
          "description": "Git Commit Message"
        }
      }
    },
    "File": {
      "type": "object",
      "x-abstract": true
    },
    "DownloadRequestDto": {
      "type": "object",
      "required": [
        "type",
        "includesImports",
        "fileIdentifiers"
      ],
      "properties": {
        "type": {
          "description": "Type of download content",
          "allOf": [
            {
              "$ref": "#/definitions/FileDownloadType"
            }
          ]
        },
        "includesImports": {
          "type": "boolean",
          "description": "Download ontology dependencies\n "
        },
        "fileIdentifiers": {
          "type": "array",
          "description": "File identifiers (can be file names or version numbers)",
          "items": {
            "type": "string"
          }
        },
        "ontologyFileType": {
          "$ref": "#/definitions/OntologyFileType"
        }
      }
    },
    "FileDownloadType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Ontology",
        "DataFile",
        "Stottr",
        "Bottr",
        "PartTtl",
        "Version"
      ],
      "enum": [
        "Ontology",
        "DataFile",
        "Stottr",
        "Bottr",
        "PartTtl",
        "Version"
      ]
    },
    "DownloadFileResponseDto": {
      "type": "object",
      "required": [
        "fileName",
        "content"
      ],
      "properties": {
        "fileName": {
          "type": "string",
          "description": "File name with extension"
        },
        "content": {
          "type": "string",
          "description": "File binary stream content",
          "format": "byte"
        },
        "isEditable": {
          "type": "boolean",
          "description": "Is File Editable"
        },
        "sourceHash": {
          "type": "string",
          "description": "SHA-256 hex hash of the file content at download time; used as the expected token for safe saves."
        },
        "authoritativeType": {
          "type": "string",
          "description": "The authoritative serialization type for this ontology (TTL, OMN, or ORG), or null when not a library ontology."
        },
        "readOnlyReason": {
          "type": "string",
          "description": "Human-readable reason this serialization is read-only, or null when editable."
        }
      }
    },
    "BuildResponseDto": {
      "type": "object",
      "required": [
        "warnings"
      ],
      "properties": {
        "message": {
          "type": "string"
        },
        "warnings": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "BuildRequestDto": {
      "type": "object",
      "required": [
        "buildType"
      ],
      "properties": {
        "buildType": {
          "description": "Types of build ALL | ONTOLOGY(S) | PART",
          "allOf": [
            {
              "$ref": "#/definitions/BuildType"
            }
          ]
        },
        "templateOrDataFileName": {
          "type": "string",
          "description": "Build Item file name from Datafile | Template"
        },
        "templateType": {
          "description": "Types of File Type",
          "allOf": [
            {
              "$ref": "#/definitions/BuildTemplateType"
            }
          ]
        },
        "partId": {
          "type": "integer",
          "description": "Part Id",
          "format": "int32"
        },
        "ontologyId": {
          "type": "integer",
          "description": "Ontology Id",
          "format": "int32"
        },
        "isEarlyPartPrettyPrint": {
          "type": "boolean",
          "description": "Early Part Printing Enable or Not ( on not it will pretty print part after building ontology )"
        },
        "excludePartIds": {
          "type": "array",
          "description": "List of Part IDs to exclude when building an ontology with exclusions. \nOnly used for BuildOntologyWithExclusions requests.",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        },
        "force": {
          "type": "boolean",
          "description": "When true, instructs the Ontology Engine to bypass its cache for this part build."
        }
      }
    },
    "BuildType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Parts",
        "Ontologies",
        "Ontology",
        "All",
        "OntologyWithExclusions",
        "Header"
      ],
      "enum": [
        "Parts",
        "Ontologies",
        "Ontology",
        "All",
        "OntologyWithExclusions",
        "Header"
      ]
    },
    "BuildTemplateType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Data",
        "Stottr",
        "Bottr"
      ],
      "enum": [
        "Data",
        "Stottr",
        "Bottr"
      ]
    },
    "BuildInfoResponseDto": {
      "type": "object",
      "required": [
        "ontologies",
        "parts"
      ],
      "properties": {
        "ontologies": {
          "type": "array",
          "description": "Built Ontologies",
          "items": {
            "$ref": "#/definitions/OntologyBuildInfoResponseDto"
          }
        },
        "parts": {
          "type": "array",
          "description": "Built Ontology Parts",
          "items": {
            "$ref": "#/definitions/OntologyPartBuildInfoResponseDto"
          }
        }
      }
    },
    "OntologyBuildInfoResponseDto": {
      "type": "object",
      "required": [
        "ontologyId",
        "lastBuiltAt",
        "isSuccess",
        "isBuildRequired",
        "tripleCount"
      ],
      "properties": {
        "ontologyId": {
          "type": "integer",
          "description": "Ontology Id",
          "format": "int32"
        },
        "lastBuiltAt": {
          "type": "string",
          "description": "last built time on utc",
          "format": "date-time"
        },
        "isSuccess": {
          "type": "boolean",
          "description": "Is Built Success"
        },
        "isBuildRequired": {
          "type": "boolean",
          "description": "Is Build Required | Any related changes in ontology like data file changes | template changes | part changes etc"
        },
        "tripleCount": {
          "type": "integer",
          "description": "Triplestore count",
          "format": "int32"
        }
      }
    },
    "OntologyPartBuildInfoResponseDto": {
      "type": "object",
      "required": [
        "partId",
        "lastBuiltAt",
        "isSuccess",
        "tripleCount"
      ],
      "properties": {
        "partId": {
          "type": "integer",
          "description": "Ontology part id",
          "format": "int32"
        },
        "lastBuiltAt": {
          "type": "string",
          "description": "Ontology Last Built Time on UTC",
          "format": "date-time"
        },
        "isSuccess": {
          "type": "boolean",
          "description": "Is Built Success"
        },
        "tripleCount": {
          "type": "integer",
          "description": "Triplestore count",
          "format": "int32"
        }
      }
    },
    "GitChangeResponseDto": {
      "type": "object",
      "required": [
        "fileName",
        "status"
      ],
      "properties": {
        "fileName": {
          "type": "string",
          "description": "File name"
        },
        "status": {
          "type": "string",
          "description": "Status"
        },
        "comparisonContent": {
          "type": "string",
          "description": "Comparison Content"
        },
        "currentContent": {
          "type": "string",
          "description": "Current Content"
        }
      }
    },
    "DiffType": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Uncommitted",
        "Default"
      ],
      "enum": [
        "Uncommitted",
        "Default"
      ]
    },
    "ResetFileRequestDto": {
      "type": "object",
      "required": [
        "filePath"
      ],
      "properties": {
        "filePath": {
          "type": "string",
          "description": "Relative File Path to Reset"
        }
      }
    },
    "ConflictSessionResponseDto": {
      "type": "object",
      "description": "Snapshot of an in-progress (or absent) merge conflict resolution session for a workspace.",
      "required": [
        "state",
        "source",
        "total",
        "resolved",
        "files"
      ],
      "properties": {
        "state": {
          "type": "string",
          "description": "clean | conflicts | completed | aborted."
        },
        "source": {
          "$ref": "#/definitions/ConflictSource"
        },
        "total": {
          "type": "integer",
          "description": "Number of files still in conflict.",
          "format": "int32"
        },
        "resolved": {
          "type": "integer",
          "description": "Files resolved in this session. The backend is stateless across requests and\nreports 0 here; the client tracks resolved progress against the initial list.",
          "format": "int32"
        },
        "files": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/MergeConflictFileResponseDto"
          }
        }
      }
    },
    "ConflictSource": {
      "type": "string",
      "description": "Identifies which workflow triggered an in-UI merge conflict resolution session.\nThe underlying resolution engine is identical for both; only the branch that is\nmerged into the workspace branch differs.",
      "x-enumNames": [
        "PullFromDefault",
        "MergeRequest"
      ],
      "enum": [
        "PullFromDefault",
        "MergeRequest"
      ]
    },
    "MergeConflictFileResponseDto": {
      "type": "object",
      "description": "A conflicted file surfaced to the client for three-way resolution.",
      "required": [
        "filePath",
        "status",
        "isBinary",
        "isResolved"
      ],
      "properties": {
        "filePath": {
          "type": "string",
          "description": "Repo-relative file path (forward slashes)."
        },
        "status": {
          "type": "string",
          "description": "Conflict shape, e.g. BothModified, AddedByBoth, DeletedByThem, DeletedByUs."
        },
        "baseContent": {
          "type": "string",
          "description": "Common ancestor content. Null for add/add conflicts."
        },
        "oursContent": {
          "type": "string",
          "description": "Workspace-branch content (ours). Null when deleted by us."
        },
        "theirsContent": {
          "type": "string",
          "description": "Incoming target-branch content (theirs). Null when deleted by them."
        },
        "mergedContent": {
          "type": "string",
          "description": "Working-tree content with conflict markers, used as the initial editable result."
        },
        "isBinary": {
          "type": "boolean",
          "description": "True when the file is binary; only whole-file (ours/theirs) resolution is possible."
        },
        "isResolved": {
          "type": "boolean",
          "description": "Always false for files returned by the backend (a resolved file leaves the conflict set).\nThe client uses it to track progress against the initially-returned list."
        }
      }
    },
    "StartConflictResolutionRequestDto": {
      "type": "object",
      "description": "Starts (or resumes) a merge conflict resolution session for a workspace.",
      "required": [
        "source"
      ],
      "properties": {
        "source": {
          "description": "Which workflow triggered resolution. Defaults to the pull-from-default flow.",
          "allOf": [
            {
              "$ref": "#/definitions/ConflictSource"
            }
          ]
        }
      }
    },
    "ResolveConflictRequestDto": {
      "type": "object",
      "description": "Resolves a single conflicted file. Provide either the final merged text via\nResolvedContent (text files) or a whole-file Choice\n(binary files, or taking one side wholesale).",
      "required": [
        "filePath",
        "source"
      ],
      "properties": {
        "filePath": {
          "type": "string",
          "description": "Repo-relative path of the conflicted file (forward slashes)."
        },
        "source": {
          "description": "Which workflow the conflict session belongs to.",
          "allOf": [
            {
              "$ref": "#/definitions/ConflictSource"
            }
          ]
        },
        "resolvedContent": {
          "type": "string",
          "description": "Final resolved text. Used when Choice is null."
        },
        "choice": {
          "description": "Whole-file resolution choice. Takes precedence over ResolvedContent when set.",
          "allOf": [
            {
              "$ref": "#/definitions/ConflictSide"
            }
          ]
        }
      }
    },
    "ConflictSide": {
      "type": "string",
      "description": "Whole-file resolution choice for a conflicted file. Used mainly for binary files\nor when the user wants to take one side wholesale instead of editing the merged text.",
      "x-enumNames": [
        "Ours",
        "Theirs",
        "Both"
      ],
      "enum": [
        "Ours",
        "Theirs",
        "Both"
      ]
    },
    "CompleteMergeResponseDto": {
      "type": "object",
      "description": "Result of finalizing a conflict resolution session (commit of the merge + push).",
      "required": [
        "success",
        "message"
      ],
      "properties": {
        "success": {
          "type": "boolean"
        },
        "message": {
          "type": "string"
        }
      }
    },
    "CompleteMergeRequestDto": {
      "type": "object",
      "description": "Finalizes a conflict resolution session by committing the merge and pushing.",
      "required": [
        "message"
      ],
      "properties": {
        "message": {
          "type": "string",
          "description": "Commit message for the merge commit."
        }
      }
    }
  }
}