{
   "openapi":"3.0.1",
   "info":{
      "title":"Across UJSE",
      "description":"Api Documentation",
      "termsOfService":"",
      "contact":{
         "email":""
      },
      "license":{
         "name":"Apache 2.0",
         "url":"http://www.apache.org/licenses/LICENSE-2.0"
      },
      "version":"1.0"
   },
   "servers":[
      {
         "url":"/across/1.0"
      }
   ],
   "security":[
      {
         "bearer-jwt":[
            "read",
            "write"
         ]
      },
      {
         "openid-connect":[
            "read",
            "write"
         ]
      }
   ],
   "paths":{
      "/workflowManagement/{workflowId}":{
         "put":{
            "tags":[
               "modelling-tool-api-controller"
            ],
            "summary":"update workflow trust label",
            "operationId":"updateWorkflow",
            "parameters":[
               {
                  "name":"workflowId",
                  "in":"path",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               },
               {
                  "name":"trust",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"boolean"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         },
         "delete":{
            "tags":[
               "modelling-tool-api-controller"
            ],
            "summary":"delete a Workflow giving workflowId",
            "operationId":"deleteWorkflow",
            "parameters":[
               {
                  "name":"workflowId",
                  "in":"path",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               },
               "204":{
                  "description":"No Content",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/workflowExecutionManagement/workflowName":{
         "put":{
            "tags":[
               "citizen-frontend-api-controller"
            ],
            "summary":"rename workflow name",
            "operationId":"workflowName",
            "parameters":[
               {
                  "name":"workflowInstanceId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               },
               {
                  "name":"name",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/UserWorkflowStore"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/workflowExecutionManagement/setWorkflowStatus":{
         "put":{
            "tags":[
               "citizen-frontend-api-controller"
            ],
            "summary":"setWorkflowStatus",
            "operationId":"setWorkflowStatus",
            "parameters":[
               {
                  "name":"workflowInstanceId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               },
               {
                  "name":"status",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/WorkflowStatusOutput"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/workflowExecutionManagement/setServiceStatus":{
         "put":{
            "tags":[
               "citizen-frontend-api-controller"
            ],
            "summary":"setServiceStatus",
            "operationId":"setServiceStatus",
            "parameters":[
               {
                  "name":"workflowInstanceId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               },
               {
                  "name":"phaseId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               },
               {
                  "name":"actionId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               },
               {
                  "name":"serviceId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"status",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "204":{
                  "description":"No Content",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/ActionServiceStatusOutput"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/workflowExecutionManagement/setServiceStatusAsynchronous":{
         "put":{
            "tags":[
               "citizen-frontend-api-controller"
            ],
            "summary":"setServiceStatusAsynchronous",
            "operationId":"setServiceStatusAsynchronous",
            "parameters":[
               {
                  "name":"status",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"token",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"serviceOutput",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "204":{
                  "description":"No Content",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/ActionServiceStatusOutput"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/workflowExecutionManagement/setActionStatus":{
         "put":{
            "tags":[
               "citizen-frontend-api-controller"
            ],
            "summary":"setActionStatus",
            "operationId":"setActionStatus",
            "parameters":[
               {
                  "name":"workflowInstanceId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               },
               {
                  "name":"phaseId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               },
               {
                  "name":"actionId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               },
               {
                  "name":"status",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string"
                  }
               }
            ],
            "responses":{
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/ActionStatusOutput"
                        }
                     }
                  }
               },
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/workflowExecutionManagement/killWorkflow":{
         "put":{
            "tags":[
               "citizen-frontend-api-controller"
            ],
            "summary":"kill a workflow",
            "operationId":"killWorkflow",
            "parameters":[
               {
                  "name":"workflowInstanceId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/WorkflowStatusOutput"
                        }
                     }
                  }
               },
               "204":{
                  "description":"No Content",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/workflowManagement":{
         "get":{
            "tags":[
               "modelling-tool-api-controller"
            ],
            "summary":"getAllWorkflows",
            "operationId":"getAllWorkflows",
            "responses":{
               "404":{
                  "description":"Not Found",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/WorkflowStore"
                           }
                        }
                     }
                  }
               },
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/WorkflowStore"
                           }
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/WorkflowStore"
                           }
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/WorkflowStore"
                           }
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         },
         "post":{
            "tags":[
               "modelling-tool-api-controller"
            ],
            "summary":"addOrUpdateWorkflow",
            "operationId":"addOrUpdateWorkflow",
            "requestBody":{
               "content":{
                  "multipart/form-data":{
                     "schema":{
                        "required":[
                           "json file"
                        ],
                        "type":"object",
                        "properties":{
                           "json file":{
                              "type":"string",
                              "format":"binary"
                           }
                        }
                     }
                  }
               }
            },
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/workflowExecutionManagement/executeService":{
         "post":{
            "tags":[
               "citizen-frontend-api-controller"
            ],
            "summary":"execute step",
            "operationId":"executeService",
            "parameters":[
               {
                  "name":"workflowInstanceId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               },
               {
                  "name":"phaseId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               },
               {
                  "name":"actionId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               },
               {
                  "name":"serviceId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"token",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               }
            ],
            "requestBody":{
               "content":{
                  "multipart/form-data":{
                     "schema":{
                        "required":[
                           "inputData"
                        ],
                        "type":"object",
                        "properties":{
                           "inputData":{
                              "type":"array",
                              "description":"Step input data",
                              "items":{
                                 "type":"string",
                                 "format":"binary"
                              }
                           }
                        }
                     }
                  }
               }
            },
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/ExecuteStepOutput"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/workflowExecutionManagement/createUserWorkflowInstance":{
         "post":{
            "tags":[
               "citizen-frontend-api-controller"
            ],
            "summary":"create a new workflow instance",
            "operationId":"createUserWorkflowInstance",
            "parameters":[
               {
                  "name":"countryOrigin",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"countryDestination",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"workflowType",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "enum":[
                        "study",
                        "work"
                     ]
                  }
               },
               {
                  "name":"name",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "204":{
                  "description":"No Content",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/UserWorkflowModel"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/logManagement":{
         "get":{
            "tags":[
               "log-api-controller"
            ],
            "summary":"get logs with no pagination",
            "operationId":"getAllLogs",
            "parameters":[
               {
                  "name":"workflowInstanceId",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"phaseId",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"actionId",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"serviceId",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/LogStore"
                           }
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/LogStore"
                           }
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/LogStore"
                           }
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         },
         "post":{
            "tags":[
               "log-api-controller"
            ],
            "summary":"save log",
            "operationId":"saveLog",
            "parameters":[
               {
                  "name":"description",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"workflowInstanceId",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"phaseId",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"actionId",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"serviceId",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               },
               "204":{
                  "description":"No Content",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/workflowManagement/getWorkflowsDescription":{
         "get":{
            "tags":[
               "modelling-tool-api-controller"
            ],
            "summary":"getWorkflowsDescription",
            "operationId":"getWorkflowsDescription",
            "responses":{
               "404":{
                  "description":"Not Found",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/WorkflowModel"
                           }
                        }
                     }
                  }
               },
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/WorkflowModel"
                           }
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/WorkflowModel"
                           }
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/WorkflowModel"
                           }
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/workflowManagement/getWorkflowTrust/{workflowId}":{
         "get":{
            "tags":[
               "modelling-tool-api-controller"
            ],
            "summary":"get workflow trust label",
            "operationId":"getWorkflowTrust",
            "parameters":[
               {
                  "name":"workflowId",
                  "in":"path",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               },
               "204":{
                  "description":"No Content",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               }
            }
         }
      },
      "/workflowManagement/getWorkflowDescriptionById/{workflowId}":{
         "get":{
            "tags":[
               "modelling-tool-api-controller"
            ],
            "summary":"getWorkflowDescriptionById",
            "operationId":"getWorkflowDescriptionById",
            "parameters":[
               {
                  "name":"workflowId",
                  "in":"path",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               }
            ],
            "responses":{
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/WorkflowModel"
                        }
                     }
                  }
               },
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json;charset=utf-8":{
                        "schema":{
                           "$ref":"#/components/schemas/WorkflowModel"
                        }
                     }
                  }
               },
               "204":{
                  "description":"No Content",
                  "content":{
                     "application/json;charset=utf-8":{
                        "schema":{
                           "$ref":"#/components/schemas/WorkflowModel"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json;charset=utf-8":{
                        "schema":{
                           "$ref":"#/components/schemas/WorkflowModel"
                        }
                     }
                  }
               }
            }
         }
      },
      "/workflowManagement/getWorkflowById/{workflowId}":{
         "get":{
            "tags":[
               "modelling-tool-api-controller"
            ],
            "summary":"getWorkflowById",
            "operationId":"getWorkflowById",
            "parameters":[
               {
                  "name":"workflowId",
                  "in":"path",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "type":"string",
                              "format":"byte"
                           }
                        }
                     }
                  }
               },
               "204":{
                  "description":"No Content",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "type":"string",
                              "format":"byte"
                           }
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "type":"string",
                              "format":"byte"
                           }
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               }
            }
         }
      },
      "/workflowExecutionManagement/getWorkflowStatus":{
         "get":{
            "tags":[
               "citizen-frontend-api-controller"
            ],
            "summary":"getWorkflowStatus",
            "operationId":"getWorkflowStatus",
            "parameters":[
               {
                  "name":"workflowInstanceId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/WorkflowStatusOutput"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/workflowExecutionManagement/getUserWorkflowsInstances":{
         "get":{
            "tags":[
               "citizen-frontend-api-controller"
            ],
            "summary":"get list of workflow instances of a user",
            "operationId":"getUserWorkflowsInstances",
            "parameters":[
               {
                  "name":"countryOrigin",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"countryDestination",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"workflowType",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string",
                     "enum":[
                        "study",
                        "work"
                     ]
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/UserWorkflowModel"
                           }
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/UserWorkflowModel"
                           }
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/UserWorkflowModel"
                           }
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/workflowExecutionManagement/getUserWorkflowInstanceById":{
         "get":{
            "tags":[
               "citizen-frontend-api-controller"
            ],
            "summary":"get an existing workflow instance",
            "operationId":"getUserWorkflowInstanceById",
            "parameters":[
               {
                  "name":"workflowInstanceId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/UserWorkflowModel"
                           }
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/UserWorkflowModel"
                           }
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"array",
                           "items":{
                              "$ref":"#/components/schemas/UserWorkflowModel"
                           }
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/workflowExecutionManagement/getServiceInfo":{
         "get":{
            "tags":[
               "citizen-frontend-api-controller"
            ],
            "summary":"get service info",
            "operationId":"getServiceInfo",
            "parameters":[
               {
                  "name":"serviceId",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"string"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "type":"object"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/ServiceStore"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/logManagement/StatisticsInfo":{
         "get":{
            "tags":[
               "log-api-controller"
            ],
            "summary":"get statiscs info",
            "operationId":"getStatisticsInfo",
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/StatisticsInfo"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/StatisticsInfo"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/StatisticsInfo"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/logManagement/Paged":{
         "get":{
            "tags":[
               "log-api-controller"
            ],
            "summary":"get logs with pagination",
            "operationId":"getAllLogsPaged",
            "parameters":[
               {
                  "name":"workflowInstanceId",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"phaseId",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"actionId",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"serviceId",
                  "in":"query",
                  "required":false,
                  "schema":{
                     "type":"string"
                  }
               },
               {
                  "name":"pageNo",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"integer",
                     "format":"int32"
                  }
               },
               {
                  "name":"pageSize",
                  "in":"query",
                  "required":true,
                  "schema":{
                     "type":"integer",
                     "format":"int32"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/LogResponse"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/LogResponse"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "application/json":{
                        "schema":{
                           "$ref":"#/components/schemas/LogResponse"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      },
      "/workflowExecutionManagement/{workflowInstanceId}":{
         "delete":{
            "tags":[
               "citizen-frontend-api-controller"
            ],
            "summary":"delete a workflowInstance",
            "operationId":"deleteWorkflowInstance",
            "parameters":[
               {
                  "name":"workflowInstanceId",
                  "in":"path",
                  "required":true,
                  "schema":{
                     "type":"string",
                     "format":"uuid"
                  }
               }
            ],
            "responses":{
               "401":{
                  "description":"Unauthorized",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               },
               "204":{
                  "description":"No Content",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               },
               "403":{
                  "description":"Forbidden",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               },
               "200":{
                  "description":"OK",
                  "content":{
                     "text/plain":{
                        "schema":{
                           "type":"string"
                        }
                     }
                  }
               }
            },
            "security":[
               {
                  "bearer-jwt":[

                  ]
               },
               {
                  "openid-connect":[

                  ]
               }
            ]
         }
      }
   },
   "components":{
      "schemas":{
         "UserWorkflowStore":{
            "type":"object",
            "properties":{
               "workflowInstanceId":{
                  "type":"string",
                  "format":"uuid"
               },
               "createdAt":{
                  "type":"integer",
                  "format":"int64"
               },
               "userId":{
                  "type":"string",
                  "format":"uuid"
               },
               "workflowId":{
                  "type":"string",
                  "format":"uuid"
               },
               "workflowType":{
                  "type":"string"
               },
               "countryOrigin":{
                  "type":"string"
               },
               "countryDestination":{
                  "type":"string"
               },
               "workflowStatus":{
                  "type":"string"
               },
               "trust":{
                  "type":"boolean"
               },
               "workflowContent":{
                  "type":"string"
               },
               "name":{
                  "type":"string"
               },
               "description":{
                  "type":"string"
               }
            }
         },
         "WorkflowStatusOutput":{
            "type":"object",
            "properties":{
               "workflowInstanceId":{
                  "type":"string",
                  "format":"uuid"
               },
               "status":{
                  "type":"string"
               }
            }
         },
         "ActionServiceStatusOutput":{
            "type":"object",
            "properties":{
               "workflowInstanceId":{
                  "type":"string",
                  "format":"uuid"
               },
               "phaseId":{
                  "type":"string",
                  "format":"uuid"
               },
               "actionId":{
                  "type":"string",
                  "format":"uuid"
               },
               "serviceId":{
                  "type":"string"
               },
               "status":{
                  "type":"string"
               },
               "serviceOutput":{
                  "type":"string"
               }
            }
         },
         "ActionStatusOutput":{
            "type":"object",
            "properties":{
               "workflowInstanceId":{
                  "type":"string",
                  "format":"uuid"
               },
               "phaseId":{
                  "type":"string",
                  "format":"uuid"
               },
               "actionId":{
                  "type":"string",
                  "format":"uuid"
               },
               "status":{
                  "type":"string"
               }
            }
         },
         "ExecuteStepOutput":{
            "type":"object",
            "properties":{
               "stepStatus":{
                  "type":"string"
               },
               "outputData":{
                  "type":"array",
                  "items":{
                     "$ref":"#/components/schemas/OutputDataElem"
                  }
               }
            }
         },
         "OutputDataElem":{
            "type":"object",
            "properties":{
               "outputId":{
                  "type":"string"
               },
               "title":{
                  "type":"string"
               },
               "type":{
                  "type":"string"
               },
               "language":{
                  "type":"string"
               },
               "description":{
                  "type":"string"
               },
               "content":{
                  "type":"array",
                  "items":{
                     "type":"string",
                     "format":"byte"
                  }
               },
               "contentType":{
                  "type":"string"
               }
            }
         },
         "UserWorkflowModel":{
            "type":"object",
            "properties":{
               "workflowInstanceId":{
                  "type":"string",
                  "format":"uuid"
               },
               "workflowContent":{
                  "type":"string"
               },
               "servicesWithoutConsent":{
                  "type":"string"
               },
               "description":{
                  "type":"string"
               },
               "createdAt":{
                  "type":"integer",
                  "format":"int64"
               },
               "name":{
                  "type":"string"
               },
               "userId":{
                  "type":"string",
                  "format":"uuid"
               },
               "workflowId":{
                  "type":"string",
                  "format":"uuid"
               },
               "workflowType":{
                  "type":"string"
               },
               "countryOrigin":{
                  "type":"string"
               },
               "countryDestination":{
                  "type":"string"
               },
               "workflowStatus":{
                  "type":"string"
               },
               "trust":{
                  "type":"boolean"
               }
            },
            "xml":{
               "name":"UserWorkflowModel"
            }
         },
         "WorkflowStore":{
            "type":"object",
            "properties":{
               "workflowId":{
                  "type":"string",
                  "format":"uuid"
               },
               "workflowType":{
                  "type":"string"
               },
               "countryOrigin":{
                  "type":"string"
               },
               "countryDestination":{
                  "type":"string"
               },
               "trust":{
                  "type":"boolean"
               },
               "jsonfile":{
                  "type":"array",
                  "items":{
                     "type":"string",
                     "format":"byte"
                  }
               },
               "jsonfileInternal":{
                  "type":"array",
                  "items":{
                     "type":"string",
                     "format":"byte"
                  }
               },
               "jsonfileName":{
                  "type":"string"
               }
            }
         },
         "WorkflowModel":{
            "type":"object",
            "properties":{
               "workflowContent":{
                  "type":"string"
               },
               "description":{
                  "type":"string"
               },
               "workflowId":{
                  "type":"string",
                  "format":"uuid"
               },
               "workflowType":{
                  "type":"string"
               },
               "countryOrigin":{
                  "type":"string"
               },
               "countryDestination":{
                  "type":"string"
               }
            },
            "xml":{
               "name":"WorkflowModel"
            }
         },
         "InputData":{
            "type":"object",
            "properties":{
               "inputId":{
                  "type":"string"
               },
               "type":{
                  "type":"string"
               },
               "multiple":{
                  "type":"boolean"
               },
               "description":{
                  "type":"array",
                  "items":{
                     "$ref":"#/components/schemas/InputDataDescription"
                  }
               },
               "required":{
                  "type":"boolean"
               },
               "source":{
                  "$ref":"#/components/schemas/InputSource"
               },
               "readonly":{
                  "type":"boolean"
               },
               "datamap":{
                  "type":"string"
               }
            }
         },
         "InputDataDescription":{
            "type":"object",
            "properties":{
               "title":{
                  "type":"string"
               },
               "description":{
                  "type":"string"
               },
               "locale":{
                  "type":"string"
               }
            }
         },
         "InputSource":{
            "type":"object",
            "properties":{
               "accessUrl":{
                  "type":"string"
               },
               "format":{
                  "type":"string"
               },
               "description":{
                  "type":"array",
                  "items":{
                     "$ref":"#/components/schemas/LocaleDescription"
                  }
               }
            }
         },
         "LocaleDescription":{
            "type":"object",
            "properties":{
               "description":{
                  "type":"string"
               },
               "locale":{
                  "type":"string"
               }
            }
         },
         "ServiceStore":{
            "type":"object",
            "properties":{
               "channel":{
                  "type":"string"
               },
               "contact":{
                  "type":"string"
               },
               "location":{
                  "type":"string"
               },
               "inputDataRequired":{
                  "type":"array",
                  "items":{
                     "$ref":"#/components/schemas/InputData"
                  }
               }
            }
         },
         "LogStore":{
            "type":"object",
            "properties":{
               "userId":{
                  "type":"string"
               },
               "workflowInstanceId":{
                  "type":"string"
               },
               "phaseId":{
                  "type":"string"
               },
               "actionId":{
                  "type":"string"
               },
               "serviceId":{
                  "type":"string"
               },
               "description":{
                  "type":"string"
               },
               "createdOn":{
                  "type":"string"
               },
               "updatedByUser":{
                  "type":"boolean"
               }
            }
         },
         "StatisticsInfo":{
            "type":"object",
            "properties":{
               "numStartedJourney":{
                  "type":"integer",
                  "format":"int64",
                  "writeOnly":true
               },
               "numUsersStartedJourney":{
                  "type":"integer",
                  "format":"int64"
               },
               "numStartedJourneys":{
                  "type":"integer",
                  "format":"int64"
               }
            }
         },
         "LogResponse":{
            "type":"object",
            "properties":{
               "content":{
                  "type":"array",
                  "items":{
                     "$ref":"#/components/schemas/LogStore"
                  }
               },
               "pageNo":{
                  "type":"integer",
                  "format":"int32"
               },
               "pageSize":{
                  "type":"integer",
                  "format":"int32"
               },
               "totalElements":{
                  "type":"integer",
                  "format":"int64"
               },
               "totalPages":{
                  "type":"integer",
                  "format":"int32"
               },
               "last":{
                  "type":"boolean"
               }
            }
         }
      },
      "securitySchemes":{
         "openid-connect":{
            "type":"openIdConnect",
            "openIdConnectUrl":"https://idp-security-dev.k8s.across-h2020.eu/realms/eidas-greece/.well-known/openid-configuration"
         },
         "bearer-jwt":{
            "type":"http",
            "scheme":"bearer",
            "bearerFormat":"JWT"
         }
      }
   }
}