{
  "openapi": "3.0.1",
  "info": {
    "title": "Qroad.net.API Live",
    "version": "v1"
  },
  "paths": {
    "/Demand/GetServiceItem": {
      "get": {
        "tags": [
          "Demand"
        ],
        "summary": "문의하기 항목 데이터 가져오기",
        "parameters": [
          {
            "name": "language",
            "in": "query",
            "description": "en: 영어, ja: 일본어, kr: 한국어, zs: 간체, zt: 번체",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Demand/SaveDemand": {
      "post": {
        "tags": [
          "Demand"
        ],
        "summary": "문의하기 접수하기",
        "description": "문의 정보 저장 -> 담당자 메일 발송 -> 발송 정보 저장 -> 고객 메일 발송",
        "parameters": [
          {
            "name": "company",
            "in": "query",
            "description": "기업명",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "description": "이름",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "email",
            "in": "query",
            "description": "이메일",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "contact",
            "in": "query",
            "description": "연락처",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "content",
            "in": "query",
            "description": "문의내용",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "opItem",
            "in": "query",
            "description": "상세정보 > 분야선택\r\n\r\n/Demand/GetServiceItem Response > games 또는 normals 항목 idx값",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "device",
            "in": "query",
            "description": "상세정보 > 기기선택\r\n\r\nex) PC, Mobile, Game Console",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ip",
            "in": "query",
            "description": "고객(접속자) IP",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "description": "고객(접속자) 선택 언어\r\n\r\nen: 영어, ja: 일본어, kr: 한국어, zs: 간체, zt: 번체",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "item (서비스)\r\n\r\n/Demand/GetServiceItem Response > services 항목",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SelectItem"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SelectItem"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SelectItem"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Log/TestLog": {
      "post": {
        "tags": [
          "Log"
        ],
        "summary": "테스스 로그 (사용안함)",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Log/PageLoad": {
      "post": {
        "tags": [
          "Log"
        ],
        "summary": "사용자 접속 로그",
        "description": "메인 페이지(www.qroad.net) 접속 시 사용자 정보 로깅",
        "requestBody": {
          "description": "ip: public IP\r\n\r\nreferer: Headers > referer\r\n\r\nuserAgent: Headers > User-Agent",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LogObj"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LogObj"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LogObj"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Log/EvtBtnAction": {
      "post": {
        "tags": [
          "Log"
        ],
        "summary": "페이지 이동 정보",
        "requestBody": {
          "description": "ip: public IP\r\n\r\nbtnType-category 조합 방식 (service.json 파일 참고)\r\n\r\n1. 메인 페이지 2섹션의 서비스 클릭 시\r\n\r\n    - btnType:\"Main\" - category:Service Group 항목\r\n\r\n2. 메인 페이지의 플로팅 '문의하기' 클릭 시\r\n\r\n    - btnType:\"Demand\" - category:\"Index\"\r\n\r\n3. GNB의 '문의하기' 클릭 시\r\n\r\n    - btnType:\"Demand\" - category:\"GNB\"\r\n\r\n4. 서비스 페이지 내의 '온라인문의' 클릭 시\r\n\r\n    - btnType:\"Demand\" - category:Service Class 항목\r\n\r\n5. 사이트맵 페이지 내의 '문의하기' 클릭 시\r\n\r\n    - btnType:\"Demand\" - category:\"SiteMap\"\r\n\r\n6. 서비스 페이지 진입 시\r\n\r\n    - btnType:\"Menu\" - category:Service Class 항목",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DataObj"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DataObj"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DataObj"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Post/GetList": {
      "get": {
        "tags": [
          "Post"
        ],
        "summary": "게시글 목록 페이징하여 가져오기",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "1: 뉴스미디어, 2: 채용공고, 3:IR",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "page",
            "in": "query",
            "description": "페이지 번호",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "jobType",
            "in": "query",
            "description": "[전체], [사업], [운영], [QA], [개발], [지원]",
            "schema": {
              "type": "string",
              "default": "[전체]"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Post/GetAll": {
      "get": {
        "tags": [
          "Post"
        ],
        "summary": "게시글 목록 가져오기(메인 > 뉴스: 간체/번체인 경우, 중국어 게시글을 우선순위로 표시)",
        "parameters": [
          {
            "name": "language",
            "in": "query",
            "description": "en: 영어, ja: 일본어, kr: 한국어, zs: 간체, zt: 번체",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "1: 뉴스미디어, 2: 채용공고, 3:IR",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Post/GetPost": {
      "get": {
        "tags": [
          "Post"
        ],
        "summary": "게시글 상세 가져오기",
        "parameters": [
          {
            "name": "id",
            "in": "query",
            "description": "게시글 번호",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    },
    "/Service/Get": {
      "get": {
        "tags": [
          "Service"
        ],
        "summary": "서비스 상세 영역별 내용 가져오기",
        "description": "",
        "parameters": [
          {
            "name": "classCode",
            "in": "query",
            "description": "1: GameOperation,\r\n2: CustomerService,\r\n3: CommunityManagement,\r\n4: ServiceMonitoring,\r\n\r\n5: Functions,\r\n6: Compatibility,\r\n7: Localization,\r\n8: MarketPolicies,\r\n\r\n9: GameMarketing,\r\n10: Consulting,\r\n\r\n11: Translation,\r\n12: LQA,\r\n\r\n13: MotionGraphic,\r\n14: TVCF,\r\n15: GraphicDesign\r\n\r\n* `int`값 또는 `string`값 모두 허용",
            "schema": {
              "$ref": "#/components/schemas/ServiceClass"
            }
          },
          {
            "name": "areaCode",
            "in": "query",
            "description": "2: Title, \r\n7: Features(특장점), \r\n8: Process(프로세스), \r\n10: Reference(고객사례)\r\n\r\n* `int`값 또는 `string`값 모두 허용",
            "schema": {
              "$ref": "#/components/schemas/ServiceArea"
            }
          },
          {
            "name": "language",
            "in": "query",
            "description": "en: 영어, ja: 일본어, kr: 한국어, zs: 간체, zt: 번체",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DataObj": {
        "required": [
          "btnType",
          "category",
          "ip"
        ],
        "type": "object",
        "properties": {
          "ip": {
            "minLength": 1,
            "type": "string"
          },
          "btnType": {
            "minLength": 1,
            "type": "string"
          },
          "category": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "LogObj": {
        "required": [
          "ip",
          "userAgent"
        ],
        "type": "object",
        "properties": {
          "ip": {
            "minLength": 1,
            "type": "string"
          },
          "referer": {
            "type": "string",
            "nullable": true
          },
          "userAgent": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SelectItem": {
        "type": "object",
        "properties": {
          "idx": {
            "type": "integer",
            "description": "서비스 Idx",
            "format": "int32"
          },
          "displayName": {
            "type": "string",
            "description": "현재 언어에 해당하는 서비스명",
            "nullable": true
          },
          "krName": {
            "type": "string",
            "description": "직원 메일 전송용 서비스명(한국어)",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ServiceArea": {
        "enum": [
          2,
          7,
          8,
          10
        ],
        "type": "integer",
        "description": "페이지 Section 위치\r\n\r\nDB data: tbl_publish_class_category.Col_Publish_Idx",
        "format": "int32"
      },
      "ServiceClass": {
        "enum": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15
        ],
        "type": "integer",
        "description": "서비스 항목\r\n\r\nDB data: tbl_publish_class_category.Col_Class_Idx",
        "format": "int32"
      },
      "ServiceResponse": {
        "type": "object",
        "properties": {
          "list": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/publish_contents"
            },
            "nullable": true
          },
          "cnt": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "publish_contents": {
        "required": [
          "col_Content_Group"
        ],
        "type": "object",
        "properties": {
          "col_Content_Idx": {
            "type": "integer",
            "description": "key - idx",
            "format": "int32"
          },
          "col_User_Idx": {
            "type": "integer",
            "description": "생성자 idx",
            "format": "int32"
          },
          "col_Country_Code": {
            "type": "string",
            "description": "언어 코드",
            "nullable": true
          },
          "col_Content_Group": {
            "minLength": 1,
            "type": "string",
            "description": "서비스 그룹 idx"
          },
          "col_Content_Display_Order": {
            "type": "integer",
            "description": "표시 순서",
            "format": "int32"
          },
          "col_Content_Main_Title": {
            "type": "string",
            "description": "영역 이름",
            "nullable": true
          },
          "col_Content_Sub_Title": {
            "type": "string",
            "description": "내용 제목",
            "nullable": true
          },
          "col_Content_Sub_Title_2": {
            "type": "string",
            "description": "내용 하위 제목",
            "nullable": true
          },
          "col_Content_Text": {
            "type": "string",
            "description": "내용 소개글",
            "nullable": true
          },
          "col_Content_Text_2": {
            "type": "string",
            "description": "내용 하위 소개글",
            "nullable": true
          },
          "col_Content_Use_Image": {
            "type": "integer",
            "description": "이미지 사용 여부\r\n\r\n0: 이미지 사용 안 함,\r\n1: 이미지 사용,\r\n2: 동영상 사용",
            "format": "int32"
          },
          "col_Content_Image_Url": {
            "type": "string",
            "description": "이미지 파일 명 / 동영상 Url",
            "nullable": true
          },
          "col_Content_Image_Desc": {
            "type": "string",
            "description": "이미지 대체 텍스트",
            "nullable": true
          },
          "col_Content_Apply": {
            "type": "integer",
            "format": "int32"
          },
          "col_Content_Use_State": {
            "type": "integer",
            "format": "int32"
          },
          "col_Content_Display": {
            "type": "integer",
            "format": "int32"
          },
          "col_Content_Create_Date": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "서비스 소개 페이지 내용"
      }
    }
  }
}