{
  "openapi": "3.0.1",
  "info": {
    "title": "Auth App API",
    "version": "v1"
  },
  "paths": {
    "/vinfo": {
      "get": {
        "tags": [
          "Account"
        ],
        "parameters": [
          {
            "name": "cs",
            "in": "query",
            "style": "form",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/GetCompanyInfo": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "parameters": [
          {
            "name": "IsPortalRequest",
            "in": "query",
            "style": "form",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/GetCountryCodes": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateSecretKey"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateSecretKey"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateSecretKey"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/GetAuthPortalUrl": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateSecretKey"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateSecretKey"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateSecretKey"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/ValidateMobile": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/ValidateMobileV2": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/ValidateOTP": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/ValidatePassword": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/ValidateMPIN": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/SaveDeviceToken": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/ChangeMPIN": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/GetUserRoles": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserRolesVM"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UserRolesVM"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UserRolesVM"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/GetUserRolesV2": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserRolesVM"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UserRolesVM"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UserRolesVM"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/RegenerateTokenWithRole": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleVM"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleVM"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RoleVM"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/GetUserMainInfo": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/ValidateUserAndRolesFromMobile": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateLoginVm"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/ValidateMobileByOTP": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateMobileOTP"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateMobileOTP"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateMobileOTP"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/VerifyOTP": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateMobileOTP"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateMobileOTP"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateMobileOTP"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/ValidateSSOUser": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TokenVM"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TokenVM"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TokenVM"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/GetUserRoleBranches": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleBranchesReqVM"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleBranchesReqVM"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RoleBranchesReqVM"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/GetUserRolesBasedOnBranch": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleBranchesReqVM"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RoleBranchesReqVM"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RoleBranchesReqVM"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/AuthorizeAndLogin/GetApplicationBasicSettings": {
      "post": {
        "tags": [
          "AuthorizeAndLogin"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BasicSettingsReqVM"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BasicSettingsReqVM"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BasicSettingsReqVM"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/DataSync/Company/GetCompanyBranches": {
      "post": {
        "tags": [
          "CompanyData"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyRequestVM"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyRequestVM"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyRequestVM"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/DataSync/Company/GetCompanyData": {
      "post": {
        "tags": [
          "CompanyData"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyRequestVM"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyRequestVM"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyRequestVM"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/DataSync/Company/GetCompanyInfo": {
      "post": {
        "tags": [
          "CompanyData"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyRequestVM"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyRequestVM"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyRequestVM"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/DynamicAppController/ApplicationSetup": {
      "post": {
        "tags": [
          "DynamicAppConfig"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BasicVM"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BasicVM"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BasicVM"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/Account/Profile/GetUserNotifications": {
      "post": {
        "tags": [
          "Profile"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateSecretKey"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateSecretKey"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ValidateSecretKey"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/profile/info": {
      "post": {
        "tags": [
          "Profile"
        ],
        "parameters": [
          {
            "name": "AppUserId",
            "in": "query",
            "style": "form",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/api/DataSync/System/GetSystemData": {
      "post": {
        "tags": [
          "SystemData"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SystemRequestVM"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SystemRequestVM"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SystemRequestVM"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/WeatherForecast": {
      "get": {
        "tags": [
          "WeatherForecast"
        ],
        "operationId": "GetWeatherForecast",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WeatherForecast"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WeatherForecast"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WeatherForecast"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BasicSettingsReqVM": {
        "type": "object",
        "properties": {
          "branchId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "BasicVM": {
        "type": "object",
        "properties": {
          "secretKey": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompanyRequestVM": {
        "type": "object",
        "properties": {
          "branchId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "apiAuthCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RoleBranchesReqVM": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          },
          "branchId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RoleVM": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "roleId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SystemRequestVM": {
        "type": "object",
        "properties": {
          "branchId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "apiAuthCode": {
            "type": "string",
            "nullable": true
          },
          "applicationId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "moduleId": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TokenVM": {
        "type": "object",
        "properties": {
          "secretKey": {
            "type": "string",
            "nullable": true
          },
          "token": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserRolesVM": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "integer",
            "format": "int32"
          },
          "applicationId": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ValidateLoginVm": {
        "type": "object",
        "properties": {
          "mobileNo": {
            "type": "string",
            "nullable": true
          },
          "secretKey": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          },
          "old_MPIN": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "otp": {
            "type": "string",
            "nullable": true
          },
          "deviceToken": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ValidateMobileOTP": {
        "type": "object",
        "properties": {
          "mobileNumber": {
            "type": "string",
            "nullable": true
          },
          "deviceInfo": {
            "type": "string",
            "nullable": true
          },
          "otpReferenceNumber": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "otp": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ValidateSecretKey": {
        "type": "object",
        "properties": {
          "secretKey": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WeatherForecast": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "temperatureC": {
            "type": "integer",
            "format": "int32"
          },
          "temperatureF": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "summary": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    }
  }
}