{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "API",
    "description" : "This document defines the API specifications for the platform-busi-config service, focusing on internationalization (i18n) and multilingual support functionalities, including managing I18n codes, retrieving active languages, and dynamically loading translations for system messages and UI labels in multiple languages through RESTful-style interfaces.",
    "version" : "1.0/platform-busi-config",
    "x-mo-original-description" : "API Documentation",
    "x-mo-overwrite-description" : "This document defines the API specifications for the platform-busi-config service, focusing on internationalization (i18n) and multilingual support functionalities, including managing I18n codes, retrieving active languages, and dynamically loading translations for system messages and UI labels in multiple languages through RESTful-style interfaces."
  },
  "servers" : [ {
    "url" : "http://platform-busi-config.platform"
  } ],
  "paths" : {
    "/context/public/message/v1/pubMessage/byCode" : {
      "get" : {
        "tags" : [ "Message" ],
        "summary" : "Retrieves a specific system message by its code.",
        "operationId" : "findMessageByCode",
        "parameters" : [ {
          "name" : "code",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/PubMessage"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Retrieves a specific system message by its code."
      }
    },
    "/context/public/message/v1/pubMessage/group" : {
      "get" : {
        "tags" : [ "Message" ],
        "operationId" : "findPubMessageList",
        "parameters" : [ {
          "name" : "keyword",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "groupId",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        }, {
          "name" : "moduleCode",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "recordUsage",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int32"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/PubMessage"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        }
      }
    },
    "/i18n/code/v1/byCode" : {
      "get" : {
        "tags" : [ "I18nCode" ],
        "summary" : "Loads an internationalization (i18n) code entry by its unique code.",
        "operationId" : "loadI18nCodeByCode",
        "parameters" : [ {
          "name" : "code",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "$ref" : "#/components/schemas/I18nCode"
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Loads an internationalization (i18n) code entry by its unique code."
      }
    },
    "/i18n/code/v1/reference" : {
      "get" : {
        "tags" : [ "I18nCode" ],
        "summary" : "Retrieves a list of i18n codes based on a specific type and reference ID.",
        "operationId" : "loadI18nCodeListByReference",
        "parameters" : [ {
          "name" : "type",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "$ref" : "#/components/schemas/I18nCodeTypeEnum"
          }
        }, {
          "name" : "reference",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "format" : "int64"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/I18nCode"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Retrieves a list of i18n codes based on a specific type and reference ID."
      },
      "post" : {
        "tags" : [ "I18nCode" ],
        "summary" : "Retrieves i18n codes for multiple reference IDs of a specific type in bulk.",
        "operationId" : "loadI18nCodeListByReferences",
        "parameters" : [ {
          "name" : "type",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "$ref" : "#/components/schemas/I18nCodeTypeEnum"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "array",
                "items" : {
                  "type" : "integer",
                  "format" : "int64"
                }
              }
            }
          },
          "required" : true,
          "x-codegen-request-body-name" : "referenceIds"
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/I18nCode"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Retrieves i18n codes for multiple reference IDs of a specific type in bulk."
      }
    },
    "/i18n/language/v1/list/active" : {
      "get" : {
        "tags" : [ "I18nLanguage" ],
        "summary" : "Lists all active language IDs supported in the system.",
        "operationId" : "listActiveLanguageIds",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "type" : "string"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Lists all active language IDs supported in the system."
      }
    },
    "/i18n/language/v1/list/no/cache" : {
      "get" : {
        "tags" : [ "I18nLanguage" ],
        "summary" : "Retrieves detailed information about all active languages without caching.",
        "operationId" : "listActiveLanguages",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/Language"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Retrieves detailed information about all active languages without caching."
      }
    },
    "/i18n/translation/v1/message/internal" : {
      "get" : {
        "tags" : [ "I18nTranslation" ],
        "summary" : "Fetches translations for a specific system message code across multiple languages.",
        "operationId" : "getMessagesValueByCode",
        "parameters" : [ {
          "name" : "code",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "string"
                  }
                }
              }
            }
          }
        },
        "x-mo-overwrite-summary" : "Fetches translations for a specific system message code across multiple languages."
      }
    },
    "/i18n/translation/v1/ui/load" : {
      "get" : {
        "tags" : [ "I18nTranslation" ],
        "summary" : "Loads UI labels for a specific configuration group and optional language.",
        "operationId" : "loadUILabelsByGroup",
        "parameters" : [ {
          "name" : "configGroupCode",
          "in" : "query",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "languageId",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "string"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Loads UI labels for a specific configuration group and optional language."
      }
    },
    "/i18n/translation/v1/ui/load/groups" : {
      "post" : {
        "tags" : [ "I18nTranslation" ],
        "summary" : "Loads UI labels for multiple configuration groups, optionally including group prefixes.",
        "operationId" : "loadUILabelsByGroups",
        "parameters" : [ {
          "name" : "languageId",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "needGroupPrefix",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "boolean"
          }
        } ],
        "requestBody" : {
          "content" : {
            "application/json" : {
              "schema" : {
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              }
            }
          },
          "required" : true,
          "x-codegen-request-body-name" : "configGroupCodes"
        },
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "*/*" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "string"
                  }
                }
              }
            }
          }
        },
        "x-mo-since-at" : {
          "serviceVersion" : "2025.03"
        },
        "x-mo-overwrite-summary" : "Loads UI labels for multiple configuration groups, optionally including group prefixes."
      }
    }
  },
  "components" : {
    "schemas" : {
      "I18nCode" : {
        "type" : "object",
        "properties" : {
          "@pk" : {
            "type" : "integer",
            "format" : "int64"
          },
          "Code" : {
            "type" : "string"
          },
          "CodeDesc" : {
            "type" : "string"
          },
          "CodeId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "CodeStr" : {
            "type" : "string"
          },
          "CodeType" : {
            "$ref" : "#/components/schemas/I18nCodeTypeEnum"
          },
          "GroupId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "IsActive" : {
            "type" : "string"
          },
          "OldPrimaryKey" : {
            "type" : "integer",
            "format" : "int64"
          },
          "RecordUsage" : {
            "type" : "integer",
            "format" : "int32"
          },
          "ReferenceId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "TempData" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "TranslationMap" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            }
          }
        }
      },
      "I18nCodeTypeEnum" : {
        "type" : "integer",
        "format" : "int32",
        "enum" : [ 1, 2, 3 ],
        "x-enum-varnames" : [ "CODE_TABLE", "UI_LABEL", "MESSAGE" ]
      },
      "Language" : {
        "type" : "object",
        "properties" : {
          "@pk" : {
            "type" : "string"
          },
          "Description" : {
            "type" : "string"
          },
          "IsActive" : {
            "type" : "string"
          },
          "LanguageId" : {
            "type" : "string"
          },
          "OldPrimaryKey" : {
            "type" : "string"
          },
          "RecordUsage" : {
            "type" : "integer",
            "format" : "int32"
          },
          "TempData" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          },
          "UsedInBusinessData" : {
            "type" : "string"
          },
          "UsedInI18nTranslation" : {
            "type" : "string"
          },
          "UsedInUserPreference" : {
            "type" : "string"
          }
        }
      },
      "MessageLevelEnum" : {
        "type" : "integer",
        "format" : "int32",
        "enum" : [ 0, 1, 2, 3, 4, 9 ],
        "x-enum-varnames" : [ "SystemError", "BusinessException", "Warning", "Info", "UnderwritingMessage", "Others" ]
      },
      "PubMessage" : {
        "type" : "object",
        "properties" : {
          "@pk" : {
            "type" : "integer",
            "format" : "int64"
          },
          "CodeId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "GroupId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "I18nMap" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            }
          },
          "MessageCode" : {
            "type" : "string"
          },
          "MessageContent" : {
            "type" : "string"
          },
          "MessageDescription" : {
            "type" : "string"
          },
          "MessageId" : {
            "type" : "integer",
            "format" : "int64"
          },
          "MessageLevel" : {
            "$ref" : "#/components/schemas/MessageLevelEnum"
          },
          "OldPrimaryKey" : {
            "type" : "integer",
            "format" : "int64"
          },
          "RecordUsage" : {
            "type" : "integer",
            "format" : "int32"
          },
          "TempData" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            }
          }
        }
      }
    }
  },
  "x-mo-gateway-auth-enabled" : true,
  "x-mo-gateway-cors-enabled" : false
}