--- src/main/java/itn/let/uat/uia/web/EgovMypageRESTAPIController.java
+++ src/main/java/itn/let/uat/uia/web/EgovMypageRESTAPIController.java
... | ... | @@ -247,7 +247,7 @@ |
| 247 | 247 |
} |
| 248 | 248 |
model.addAttribute("loginVO", loginVO);
|
| 249 | 249 |
|
| 250 |
- return "web/api/msg/apiSpec"; |
|
| 250 |
+ return "web/api/apiSpec"; |
|
| 251 | 251 |
} |
| 252 | 252 |
|
| 253 | 253 |
/** |
+++ src/main/webapp/WEB-INF/jsp/web/api/apiSpec.jsp
... | ... | @@ -0,0 +1,149 @@ |
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 3 | +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 4 | +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> | |
| 5 | +<script language=javascript> | |
| 6 | +$(document).ready(function(){ | |
| 7 | + | |
| 8 | +}); | |
| 9 | + | |
| 10 | +</script> | |
| 11 | +<style> | |
| 12 | + | |
| 13 | + .padding_add > p | |
| 14 | + { | |
| 15 | + padding-left: 30px; | |
| 16 | + padding-bottom: 8px; | |
| 17 | + } | |
| 18 | + | |
| 19 | + .padding_add > div > p | |
| 20 | + { | |
| 21 | + padding-left: 60px; | |
| 22 | + padding-bottom: 8px; | |
| 23 | + } | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | +</style> | |
| 28 | +<!-- content 영역 --> | |
| 29 | +<div class="inner"> | |
| 30 | + <!-- send top --> | |
| 31 | + <div class="send_top"> | |
| 32 | + | |
| 33 | + <c:import url="./top_tepMenu.jsp" /><!--// tab button --> | |
| 34 | + | |
| 35 | + <!-- tab button --> | |
| 36 | + <div class="api_guide_cont current"> | |
| 37 | + <div class="heading"> | |
| 38 | + <h2>REST API 개발 가이드</h2> | |
| 39 | + </div> | |
| 40 | + | |
| 41 | + <!--사용안내 내용--> | |
| 42 | + <div class="pay_tab_wrap"> | |
| 43 | + <ul class="tabType1"> | |
| 44 | + <li class="tab active"><button type="button" onclick="TabType5(this,'1');TabType2(this,'1');$('.list_tab li:nth-child(1)').addClass('active').siblings().removeClass('active');">문자</button></li> | |
| 45 | + <li class="tab"><button type="button" onclick="TabType5(this,'2');TabType2(this,'6');$('.list_tab li:nth-child(1)').addClass('active').siblings().removeClass('active');">카카오톡</button></li> | |
| 46 | + </ul> | |
| 47 | + </div> | |
| 48 | + | |
| 49 | + <div class="api_guide current" id="tab5_1"> | |
| 50 | + <div class="list_tab_wrap2 type3"> | |
| 51 | + <!-- tab button --> | |
| 52 | + <ul class="list_tab"> | |
| 53 | + <li class="tab active"><button type="button" onclick="TabType1(this,'1')">문자보내기</button></li> | |
| 54 | + <li class="tab"><button type="button" onclick="TabType1(this,'2')" id="btnEstimate">문자보내기(대량)</button></li> | |
| 55 | + <li class="tab"><button type="button" onclick="TabType1(this,'3')" id="btnEstimate3">전송내역조회</button></li> | |
| 56 | + <li class="tab"><button type="button" onclick="TabType1(this,'4')" id="btnEstimate4">전송결과조회(상세)</button></li> | |
| 57 | + <li class="tab"><button type="button" onclick="TabType1(this,'5')" id="btnEstimate5">발송가능건수</button></li> | |
| 58 | + </ul><!--// tab button --> | |
| 59 | + </div> | |
| 60 | + | |
| 61 | + <!-- 문자보내기 --> | |
| 62 | + <!-- 문자보내기 --> | |
| 63 | + <!-- 문자보내기 --> | |
| 64 | + <div class="fee_cont current" id="tab1_1"> | |
| 65 | + <c:import url="./msg/apiSpec_tab1.jsp" /> | |
| 66 | + </div> | |
| 67 | + | |
| 68 | + <!-- 문자보내기(대량) --> | |
| 69 | + <!-- 문자보내기(대량) --> | |
| 70 | + <!-- 문자보내기(대량) --> | |
| 71 | + <div class="fee_cont" id="tab1_2"> | |
| 72 | + <c:import url="./msg/apiSpec_tab2.jsp" /> | |
| 73 | + </div> | |
| 74 | + | |
| 75 | + <!-- 전송내역조회 --> | |
| 76 | + <div class="fee_cont" id="tab1_3"> | |
| 77 | + <c:import url="./msg/apiSpec_tab3.jsp" /> | |
| 78 | + </div> | |
| 79 | + <!-- 전송결과조회(상세) --> | |
| 80 | + <div class="fee_cont" id="tab1_4"> | |
| 81 | + <c:import url="./msg/apiSpec_tab4.jsp" /> | |
| 82 | + </div> | |
| 83 | + <!-- 발송가능건수 --> | |
| 84 | + <div class="fee_cont" id="tab1_5"> | |
| 85 | + <c:import url="./msg/apiSpec_tab5.jsp" /> | |
| 86 | + </div> | |
| 87 | + </div> | |
| 88 | + | |
| 89 | + | |
| 90 | + <div class="api_guide current" id="tab5_2"> | |
| 91 | + <div class="list_tab_wrap2 type3"> | |
| 92 | + <!-- tab button --> | |
| 93 | + <ul class="list_tab"> | |
| 94 | + | |
| 95 | + <li class="tab active"><button type="button" onclick="TabType2(this,'6');">채널 ID 조회</button></li> | |
| 96 | + <li class="tab"><button type="button" onclick="TabType2(this,'7');">템플릿 ID 조회</button></li> | |
| 97 | + <li class="tab"><button type="button" onclick="TabType2(this,'8');">템플릿상세조회</button></li> | |
| 98 | + <li class="tab"><button type="button" onclick="TabType2(this,'9');">단건보내기</button></li> | |
| 99 | + <li class="tab"><button type="button" onclick="TabType2(this,'10');">대량보내기</button></li> | |
| 100 | + <li class="tab"><button type="button" onclick="TabType2(this,'11');">전송내역조회</button></li> | |
| 101 | + <li class="tab"><button type="button" onclick="TabType2(this,'12');">전송내역조회(상세)</button></li> | |
| 102 | + <li class="tab"><button type="button" onclick="TabType2(this,'13');">발송가능건수</button></li> | |
| 103 | + | |
| 104 | + </ul><!--// tab button --> | |
| 105 | + </div> | |
| 106 | + | |
| 107 | + <!-- 채널 ID 조회 --> | |
| 108 | + <div class="api_guide_con" id="tab2_6"> | |
| 109 | + <c:import url="./at/apiSpec_tab1.jsp" /> | |
| 110 | + </div> | |
| 111 | + | |
| 112 | + <!-- 템플릿 ID 조회 --> | |
| 113 | + <div class="api_guide_con" id="tab2_7"> | |
| 114 | + <c:import url="./at/apiSpec_tab2.jsp" /> | |
| 115 | + </div> | |
| 116 | + | |
| 117 | + <!-- 템플릿상세조회 --> | |
| 118 | + <div class="api_guide_con" id="tab2_8"> | |
| 119 | + <c:import url="./at/apiSpec_tab3.jsp" /> | |
| 120 | + </div> | |
| 121 | + | |
| 122 | + <!-- 단건보내기 --> | |
| 123 | + <div class="api_guide_con" id="tab2_9"> | |
| 124 | + <c:import url="./at/apiSpec_tab4.jsp" /> | |
| 125 | + </div> | |
| 126 | + | |
| 127 | + <!-- 대량보내기 --> | |
| 128 | + <div class="api_guide_con" id="tab2_10"> | |
| 129 | + <c:import url="./at/apiSpec_tab5.jsp" /> | |
| 130 | + </div> | |
| 131 | + | |
| 132 | + <!-- 전송내역조회 --> | |
| 133 | + <div class="api_guide_con" id="tab2_11"> | |
| 134 | + <c:import url="./at/apiSpec_tab6.jsp" /> | |
| 135 | + </div> | |
| 136 | + | |
| 137 | + <!-- 전송내역조회(상세) --> | |
| 138 | + <div class="api_guide_con" id="tab2_12"> | |
| 139 | + <c:import url="./at/apiSpec_tab7.jsp" /> | |
| 140 | + </div> | |
| 141 | + | |
| 142 | + <!-- 발송가능건수 --> | |
| 143 | + <div class="api_guide_con" id="tab2_13"> | |
| 144 | + <c:import url="./at/apiSpec_tab8.jsp" /> | |
| 145 | + </div> | |
| 146 | + </div> | |
| 147 | + </div> | |
| 148 | + </div><!--// send top --> | |
| 149 | +</div> |
--- src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec.jsp
... | ... | @@ -1,82 +0,0 @@ |
| 1 | -<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 3 | -<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 4 | -<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> | |
| 5 | -<script language=javascript> | |
| 6 | -$(document).ready(function(){ | |
| 7 | - | |
| 8 | -}); | |
| 9 | - | |
| 10 | -</script> | |
| 11 | -<style> | |
| 12 | - | |
| 13 | - .padding_add > p | |
| 14 | - { | |
| 15 | - padding-left: 30px; | |
| 16 | - padding-bottom: 8px; | |
| 17 | - } | |
| 18 | - | |
| 19 | - .padding_add > div > p | |
| 20 | - { | |
| 21 | - padding-left: 60px; | |
| 22 | - padding-bottom: 8px; | |
| 23 | - } | |
| 24 | - | |
| 25 | - | |
| 26 | - | |
| 27 | -</style> | |
| 28 | -<!-- content 영역 --> | |
| 29 | -<div class="inner"> | |
| 30 | - <!-- send top --> | |
| 31 | - <div class="send_top"> | |
| 32 | - | |
| 33 | - <c:import url="../top_tepMenu.jsp" /><!--// tab button --> | |
| 34 | - | |
| 35 | - <!-- tab button --> | |
| 36 | - <div class="api_guide_cont current" id="tab5_1"> | |
| 37 | - <div class="heading"> | |
| 38 | - <h2>REST API 설명</h2> | |
| 39 | - </div> | |
| 40 | - <div class="pay_tab_wrap"> | |
| 41 | - <!-- tab button --> | |
| 42 | - <ul class="tabType1"> | |
| 43 | - <li class="tab active"><button type="button" onclick="TabType1(this,'1')">채널ID조회</button></li> | |
| 44 | - <li class="tab"><button type="button" onclick="TabType1(this,'2')">템플릿ID조회</button></li> | |
| 45 | - <li class="tab"><button type="button" onclick="TabType1(this,'3')">템플릿상세조회</button></li> | |
| 46 | - <li class="tab"><button type="button" onclick="TabType1(this,'4')">단건보내기</button></li> | |
| 47 | - <li class="tab"><button type="button" onclick="TabType1(this,'5')">대량보내기</button></li> | |
| 48 | - <li class="tab"><button type="button" onclick="TabType1(this,'6')">전송내역조회</button></li> | |
| 49 | - <li class="tab"><button type="button" onclick="TabType1(this,'7')">전송결과조회(상세)</button></li> | |
| 50 | - <li class="tab"><button type="button" onclick="TabType1(this,'8')">발송가능건수</button></li> | |
| 51 | - </ul><!--// tab button --> | |
| 52 | - </div> | |
| 53 | - | |
| 54 | - <!-- 문자보내기 --> | |
| 55 | - <!-- 문자보내기 --> | |
| 56 | - <!-- 문자보내기 --> | |
| 57 | - <div class="fee_cont current" id="tab1_1"> | |
| 58 | - <c:import url="./apiSpec_tab1.jsp" /> | |
| 59 | - </div> | |
| 60 | - | |
| 61 | - <!-- 문자보내기(대량) --> | |
| 62 | - <!-- 문자보내기(대량) --> | |
| 63 | - <!-- 문자보내기(대량) --> | |
| 64 | - <div class="fee_cont" id="tab1_2"> | |
| 65 | - <c:import url="./apiSpec_tab2.jsp" /> | |
| 66 | - </div> | |
| 67 | - | |
| 68 | - <!-- 전송내역조회 --> | |
| 69 | - <div class="fee_cont" id="tab1_3"> | |
| 70 | - <c:import url="./apiSpec_tab3.jsp" /> | |
| 71 | - </div> | |
| 72 | - <!-- 전송결과조회(상세) --> | |
| 73 | - <div class="fee_cont" id="tab1_4"> | |
| 74 | - <c:import url="./apiSpec_tab4.jsp" /> | |
| 75 | - </div> | |
| 76 | - <!-- 발송가능건수 --> | |
| 77 | - <div class="fee_cont" id="tab1_5"> | |
| 78 | - <c:import url="./apiSpec_tab5.jsp" /> | |
| 79 | - </div> | |
| 80 | - </div> | |
| 81 | - </div><!--// send top --> | |
| 82 | -</div> |
+++ src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab6.jsp
... | ... | @@ -0,0 +1,195 @@ |
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | + | |
| 3 | + <ul class="info"> | |
| 4 | + <li>- 보유캐시로 발송 가능한 문자의 건수를 단문(SMS), 장문(LMS), 그림(MMS)별로 각각 확인할 수 있습니다.</li> | |
| 5 | + <li>- 위 문자유형별 발송 가능건수는 개인별로 적용된 단가를 기준으로 산출되며, "첫결제 이벤트"는 적용되지 않습니다.</li> | |
| 6 | + </ul> | |
| 7 | + | |
| 8 | + <div class="re_cont"> | |
| 9 | + <!--Request--> | |
| 10 | + <div class="req_title">Request</div> | |
| 11 | + <div class="box"> | |
| 12 | + <div class="text"> | |
| 13 | + <h4>Request</h4> | |
| 14 | + <table> | |
| 15 | + <caption>API Request Http Method, 프로토콜, HOST, Service Port 정보 테이블</caption> | |
| 16 | + <colgroup> | |
| 17 | + <col style="width:20%;"> | |
| 18 | + <col style="width:80%;"> | |
| 19 | + </colgroup> | |
| 20 | + <tr> | |
| 21 | + <th>Http Method</th> | |
| 22 | + <td>POST</td> | |
| 23 | + </tr> | |
| 24 | + <tr> | |
| 25 | + <th>프로토콜</th> | |
| 26 | + <td>HTTP/1.1</td> | |
| 27 | + </tr> | |
| 28 | + <tr> | |
| 29 | + <th>HOST</th> | |
| 30 | + <td>api.munjaon.co.kr</td> | |
| 31 | + </tr> | |
| 32 | + <tr> | |
| 33 | + <th>Service Port</th> | |
| 34 | + <td>443</td> | |
| 35 | + </tr> | |
| 36 | + </table> | |
| 37 | + </div> | |
| 38 | + </div> | |
| 39 | + <div class="type_table"> | |
| 40 | + <table> | |
| 41 | + <caption>발송가능 건수 API Request 키 종류 및 설명, 타입, 필수 여부 테이블</caption> | |
| 42 | + <colgroup> | |
| 43 | + <col style="width:20%;"> | |
| 44 | + <col style="width:45%;"> | |
| 45 | + <col style="width:25%"> | |
| 46 | + <col style="width:10%"> | |
| 47 | + </colgroup> | |
| 48 | + <thead> | |
| 49 | + <tr> | |
| 50 | + <th>키</th> | |
| 51 | + <th>설명</th> | |
| 52 | + <th>타입</th> | |
| 53 | + <th>필수</th> | |
| 54 | + </tr> | |
| 55 | + </thead> | |
| 56 | + <tbody> | |
| 57 | + <tr> | |
| 58 | + <td><span class="font_b">mberId</span></td> | |
| 59 | + <td>사용자 ID</td> | |
| 60 | + <td>String</td> | |
| 61 | + <td><span class="select_o">O</span></td> | |
| 62 | + </tr> | |
| 63 | + <tr> | |
| 64 | + <td><span class="font_b">accessKey</span></td> | |
| 65 | + <td>인증용 API Key</td> | |
| 66 | + <td>String</td> | |
| 67 | + <td><span class="select_o">O</span></td> | |
| 68 | + </tr> | |
| 69 | + </tbody> | |
| 70 | + </table> | |
| 71 | + <div class="table_info"> | |
| 72 | + <p>※ HTTPS 프로토콜을 사용하여 POST로 요청합니다.</p> | |
| 73 | + </div> | |
| 74 | + </div> | |
| 75 | + <div class="box"> | |
| 76 | + <div class="title">[Example]</div> | |
| 77 | + <div class="code_view"> | |
| 78 | + <p>{</p> | |
| 79 | + <div class="indent"> | |
| 80 | + <p><span>"mberId"</span>:"String"</p> | |
| 81 | + <p>,<span>"accessKey"</span>:"String"</p> | |
| 82 | + </div> | |
| 83 | + <p class="l_code">}</p> | |
| 84 | + </div> | |
| 85 | + </div> | |
| 86 | + <!--// Request--> | |
| 87 | + <!-- Response--> | |
| 88 | + <div class="res_title">Response</div> | |
| 89 | + <div class="type_table"> | |
| 90 | + <table> | |
| 91 | + <caption>발송가능 건수 API Response 키 종류 및 설명, 타입 테이블</caption> | |
| 92 | + <colgroup> | |
| 93 | + <col style="width:20%;"> | |
| 94 | + <col style="width:60%;"> | |
| 95 | + <col style="width:20%;"> | |
| 96 | + </colgroup> | |
| 97 | + <thead> | |
| 98 | + <tr> | |
| 99 | + <th>키</th> | |
| 100 | + <th>설명</th> | |
| 101 | + <th>타입</th> | |
| 102 | + </tr> | |
| 103 | + </thead> | |
| 104 | + <tbody> | |
| 105 | + <tr> | |
| 106 | + <td><span class="font_b">resultCode</span></td> | |
| 107 | + <td>성공 여부("0" 아니면 실패)</td> | |
| 108 | + <td>String</td> | |
| 109 | + </tr> | |
| 110 | + <tr> | |
| 111 | + <td><span class="font_b">data</span></td> | |
| 112 | + <td>결과값 객체(성공 : 데이터, 실패 : 메시지)</td> | |
| 113 | + <td>Object</td> | |
| 114 | + </tr> | |
| 115 | + <tr> | |
| 116 | + <td><span class="font_b">[data].longPrice</span></td> | |
| 117 | + <td>장문 단가</td> | |
| 118 | + <td>String</td> | |
| 119 | + </tr> | |
| 120 | + <tr> | |
| 121 | + <td><span class="font_b">[data].longSendPsbltEa</span></td> | |
| 122 | + <td>장문 발송 가능 건수</td> | |
| 123 | + <td>String</td> | |
| 124 | + </tr> | |
| 125 | + <tr> | |
| 126 | + <td><span class="font_b">[data].mberMoney</span></td> | |
| 127 | + <td>현재 보유 금액</td> | |
| 128 | + <td>String</td> | |
| 129 | + </tr> | |
| 130 | + <tr> | |
| 131 | + <td><span class="font_b">[data].message</span></td> | |
| 132 | + <td>문자</td> | |
| 133 | + <td>String</td> | |
| 134 | + </tr> | |
| 135 | + <tr> | |
| 136 | + <td><span class="font_b">[data].picturePrice</span></td> | |
| 137 | + <td>그림문자 단가</td> | |
| 138 | + <td>String</td> | |
| 139 | + </tr> | |
| 140 | + <tr> | |
| 141 | + <td><span class="font_b">[data].pictureSendPsbltEa</span></td> | |
| 142 | + <td>그림문자 발송 가능 건수</td> | |
| 143 | + <td>String</td> | |
| 144 | + </tr> | |
| 145 | + <tr> | |
| 146 | + <td><span class="font_b">[data].shortPrice</span></td> | |
| 147 | + <td>단문 단가</td> | |
| 148 | + <td>String</td> | |
| 149 | + </tr> | |
| 150 | + <tr> | |
| 151 | + <td><span class="font_b">[data].shortSendPsbltEa</span></td> | |
| 152 | + <td>단문 발송 가능 건수</td> | |
| 153 | + <td>String</td> | |
| 154 | + </tr> | |
| 155 | + </tbody> | |
| 156 | + </table> | |
| 157 | + <div class="table_info"> | |
| 158 | + <p>※ JSON 객체로 응답합니다.</p> | |
| 159 | + </div> | |
| 160 | + </div> | |
| 161 | + <div class="box"> | |
| 162 | + <div class="title_t1"><span class="ex">[Example]</span><span class="ex_success">O 성공 예시</span></div> | |
| 163 | + <div class="code_view"> | |
| 164 | + <p>{</p> | |
| 165 | + <div class="indent"> | |
| 166 | + <p><span>"resultCode"</span>:"0"</p> | |
| 167 | + <p>,<span>"data"</span>{</p> | |
| 168 | + <div class="indent_t1"> | |
| 169 | + <p><span>"longPrice"</span>:"50"</p> | |
| 170 | + <p>,<span>"longSendPsbltEa"</span>:"19651"</p> | |
| 171 | + <p>,<span>"mberMoney"</span>:"982586.7"</p> | |
| 172 | + <p>,<span>"message"</span>:null</p> | |
| 173 | + <p>,<span>"picturePrice"</span>:"90"</p> | |
| 174 | + <p>,<span>"pictureSendPsbltEa"</span>:"10917"</p> | |
| 175 | + <p>,<span>"shortPrice"</span>:"18"</p> | |
| 176 | + <p>,<span>"shortSendPsbltEa"</span>:"54588"</p> | |
| 177 | + </div> | |
| 178 | + <p>}</p> | |
| 179 | + </div> | |
| 180 | + <p class="l_code">}</p> | |
| 181 | + </div> | |
| 182 | + </div> | |
| 183 | + <div class="box"> | |
| 184 | + <div class="title_t1"><span class="ex">[Example]</span><span class="ex_fail">X 실패 예시</span></div> | |
| 185 | + <div class="code_view"> | |
| 186 | + <p>{</p> | |
| 187 | + <div class="indent"> | |
| 188 | + <p><span>"resultCode"</span>:"5099"</p> | |
| 189 | + <p>,<span>"data"</span>:"기타 시스템 오류"</p> | |
| 190 | + </div> | |
| 191 | + <p class="l_code">}</p> | |
| 192 | + </div> | |
| 193 | + </div> | |
| 194 | + <!--// Response--> | |
| 195 | + </div> |
+++ src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab7.jsp
... | ... | @@ -0,0 +1,195 @@ |
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | + | |
| 3 | + <ul class="info"> | |
| 4 | + <li>- 보유캐시로 발송 가능한 문자의 건수를 단문(SMS), 장문(LMS), 그림(MMS)별로 각각 확인할 수 있습니다.</li> | |
| 5 | + <li>- 위 문자유형별 발송 가능건수는 개인별로 적용된 단가를 기준으로 산출되며, "첫결제 이벤트"는 적용되지 않습니다.</li> | |
| 6 | + </ul> | |
| 7 | + | |
| 8 | + <div class="re_cont"> | |
| 9 | + <!--Request--> | |
| 10 | + <div class="req_title">Request</div> | |
| 11 | + <div class="box"> | |
| 12 | + <div class="text"> | |
| 13 | + <h4>Request</h4> | |
| 14 | + <table> | |
| 15 | + <caption>API Request Http Method, 프로토콜, HOST, Service Port 정보 테이블</caption> | |
| 16 | + <colgroup> | |
| 17 | + <col style="width:20%;"> | |
| 18 | + <col style="width:80%;"> | |
| 19 | + </colgroup> | |
| 20 | + <tr> | |
| 21 | + <th>Http Method</th> | |
| 22 | + <td>POST</td> | |
| 23 | + </tr> | |
| 24 | + <tr> | |
| 25 | + <th>프로토콜</th> | |
| 26 | + <td>HTTP/1.1</td> | |
| 27 | + </tr> | |
| 28 | + <tr> | |
| 29 | + <th>HOST</th> | |
| 30 | + <td>api.munjaon.co.kr</td> | |
| 31 | + </tr> | |
| 32 | + <tr> | |
| 33 | + <th>Service Port</th> | |
| 34 | + <td>443</td> | |
| 35 | + </tr> | |
| 36 | + </table> | |
| 37 | + </div> | |
| 38 | + </div> | |
| 39 | + <div class="type_table"> | |
| 40 | + <table> | |
| 41 | + <caption>발송가능 건수 API Request 키 종류 및 설명, 타입, 필수 여부 테이블</caption> | |
| 42 | + <colgroup> | |
| 43 | + <col style="width:20%;"> | |
| 44 | + <col style="width:45%;"> | |
| 45 | + <col style="width:25%"> | |
| 46 | + <col style="width:10%"> | |
| 47 | + </colgroup> | |
| 48 | + <thead> | |
| 49 | + <tr> | |
| 50 | + <th>키</th> | |
| 51 | + <th>설명</th> | |
| 52 | + <th>타입</th> | |
| 53 | + <th>필수</th> | |
| 54 | + </tr> | |
| 55 | + </thead> | |
| 56 | + <tbody> | |
| 57 | + <tr> | |
| 58 | + <td><span class="font_b">mberId</span></td> | |
| 59 | + <td>사용자 ID</td> | |
| 60 | + <td>String</td> | |
| 61 | + <td><span class="select_o">O</span></td> | |
| 62 | + </tr> | |
| 63 | + <tr> | |
| 64 | + <td><span class="font_b">accessKey</span></td> | |
| 65 | + <td>인증용 API Key</td> | |
| 66 | + <td>String</td> | |
| 67 | + <td><span class="select_o">O</span></td> | |
| 68 | + </tr> | |
| 69 | + </tbody> | |
| 70 | + </table> | |
| 71 | + <div class="table_info"> | |
| 72 | + <p>※ HTTPS 프로토콜을 사용하여 POST로 요청합니다.</p> | |
| 73 | + </div> | |
| 74 | + </div> | |
| 75 | + <div class="box"> | |
| 76 | + <div class="title">[Example]</div> | |
| 77 | + <div class="code_view"> | |
| 78 | + <p>{</p> | |
| 79 | + <div class="indent"> | |
| 80 | + <p><span>"mberId"</span>:"String"</p> | |
| 81 | + <p>,<span>"accessKey"</span>:"String"</p> | |
| 82 | + </div> | |
| 83 | + <p class="l_code">}</p> | |
| 84 | + </div> | |
| 85 | + </div> | |
| 86 | + <!--// Request--> | |
| 87 | + <!-- Response--> | |
| 88 | + <div class="res_title">Response</div> | |
| 89 | + <div class="type_table"> | |
| 90 | + <table> | |
| 91 | + <caption>발송가능 건수 API Response 키 종류 및 설명, 타입 테이블</caption> | |
| 92 | + <colgroup> | |
| 93 | + <col style="width:20%;"> | |
| 94 | + <col style="width:60%;"> | |
| 95 | + <col style="width:20%;"> | |
| 96 | + </colgroup> | |
| 97 | + <thead> | |
| 98 | + <tr> | |
| 99 | + <th>키</th> | |
| 100 | + <th>설명</th> | |
| 101 | + <th>타입</th> | |
| 102 | + </tr> | |
| 103 | + </thead> | |
| 104 | + <tbody> | |
| 105 | + <tr> | |
| 106 | + <td><span class="font_b">resultCode</span></td> | |
| 107 | + <td>성공 여부("0" 아니면 실패)</td> | |
| 108 | + <td>String</td> | |
| 109 | + </tr> | |
| 110 | + <tr> | |
| 111 | + <td><span class="font_b">data</span></td> | |
| 112 | + <td>결과값 객체(성공 : 데이터, 실패 : 메시지)</td> | |
| 113 | + <td>Object</td> | |
| 114 | + </tr> | |
| 115 | + <tr> | |
| 116 | + <td><span class="font_b">[data].longPrice</span></td> | |
| 117 | + <td>장문 단가</td> | |
| 118 | + <td>String</td> | |
| 119 | + </tr> | |
| 120 | + <tr> | |
| 121 | + <td><span class="font_b">[data].longSendPsbltEa</span></td> | |
| 122 | + <td>장문 발송 가능 건수</td> | |
| 123 | + <td>String</td> | |
| 124 | + </tr> | |
| 125 | + <tr> | |
| 126 | + <td><span class="font_b">[data].mberMoney</span></td> | |
| 127 | + <td>현재 보유 금액</td> | |
| 128 | + <td>String</td> | |
| 129 | + </tr> | |
| 130 | + <tr> | |
| 131 | + <td><span class="font_b">[data].message</span></td> | |
| 132 | + <td>문자</td> | |
| 133 | + <td>String</td> | |
| 134 | + </tr> | |
| 135 | + <tr> | |
| 136 | + <td><span class="font_b">[data].picturePrice</span></td> | |
| 137 | + <td>그림문자 단가</td> | |
| 138 | + <td>String</td> | |
| 139 | + </tr> | |
| 140 | + <tr> | |
| 141 | + <td><span class="font_b">[data].pictureSendPsbltEa</span></td> | |
| 142 | + <td>그림문자 발송 가능 건수</td> | |
| 143 | + <td>String</td> | |
| 144 | + </tr> | |
| 145 | + <tr> | |
| 146 | + <td><span class="font_b">[data].shortPrice</span></td> | |
| 147 | + <td>단문 단가</td> | |
| 148 | + <td>String</td> | |
| 149 | + </tr> | |
| 150 | + <tr> | |
| 151 | + <td><span class="font_b">[data].shortSendPsbltEa</span></td> | |
| 152 | + <td>단문 발송 가능 건수</td> | |
| 153 | + <td>String</td> | |
| 154 | + </tr> | |
| 155 | + </tbody> | |
| 156 | + </table> | |
| 157 | + <div class="table_info"> | |
| 158 | + <p>※ JSON 객체로 응답합니다.</p> | |
| 159 | + </div> | |
| 160 | + </div> | |
| 161 | + <div class="box"> | |
| 162 | + <div class="title_t1"><span class="ex">[Example]</span><span class="ex_success">O 성공 예시</span></div> | |
| 163 | + <div class="code_view"> | |
| 164 | + <p>{</p> | |
| 165 | + <div class="indent"> | |
| 166 | + <p><span>"resultCode"</span>:"0"</p> | |
| 167 | + <p>,<span>"data"</span>{</p> | |
| 168 | + <div class="indent_t1"> | |
| 169 | + <p><span>"longPrice"</span>:"50"</p> | |
| 170 | + <p>,<span>"longSendPsbltEa"</span>:"19651"</p> | |
| 171 | + <p>,<span>"mberMoney"</span>:"982586.7"</p> | |
| 172 | + <p>,<span>"message"</span>:null</p> | |
| 173 | + <p>,<span>"picturePrice"</span>:"90"</p> | |
| 174 | + <p>,<span>"pictureSendPsbltEa"</span>:"10917"</p> | |
| 175 | + <p>,<span>"shortPrice"</span>:"18"</p> | |
| 176 | + <p>,<span>"shortSendPsbltEa"</span>:"54588"</p> | |
| 177 | + </div> | |
| 178 | + <p>}</p> | |
| 179 | + </div> | |
| 180 | + <p class="l_code">}</p> | |
| 181 | + </div> | |
| 182 | + </div> | |
| 183 | + <div class="box"> | |
| 184 | + <div class="title_t1"><span class="ex">[Example]</span><span class="ex_fail">X 실패 예시</span></div> | |
| 185 | + <div class="code_view"> | |
| 186 | + <p>{</p> | |
| 187 | + <div class="indent"> | |
| 188 | + <p><span>"resultCode"</span>:"5099"</p> | |
| 189 | + <p>,<span>"data"</span>:"기타 시스템 오류"</p> | |
| 190 | + </div> | |
| 191 | + <p class="l_code">}</p> | |
| 192 | + </div> | |
| 193 | + </div> | |
| 194 | + <!--// Response--> | |
| 195 | + </div> |
+++ src/main/webapp/WEB-INF/jsp/web/api/at/apiSpec_tab8.jsp
... | ... | @@ -0,0 +1,195 @@ |
| 1 | +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | + | |
| 3 | + <ul class="info"> | |
| 4 | + <li>- 보유캐시로 발송 가능한 문자의 건수를 단문(SMS), 장문(LMS), 그림(MMS)별로 각각 확인할 수 있습니다.</li> | |
| 5 | + <li>- 위 문자유형별 발송 가능건수는 개인별로 적용된 단가를 기준으로 산출되며, "첫결제 이벤트"는 적용되지 않습니다.</li> | |
| 6 | + </ul> | |
| 7 | + | |
| 8 | + <div class="re_cont"> | |
| 9 | + <!--Request--> | |
| 10 | + <div class="req_title">Request</div> | |
| 11 | + <div class="box"> | |
| 12 | + <div class="text"> | |
| 13 | + <h4>Request</h4> | |
| 14 | + <table> | |
| 15 | + <caption>API Request Http Method, 프로토콜, HOST, Service Port 정보 테이블</caption> | |
| 16 | + <colgroup> | |
| 17 | + <col style="width:20%;"> | |
| 18 | + <col style="width:80%;"> | |
| 19 | + </colgroup> | |
| 20 | + <tr> | |
| 21 | + <th>Http Method</th> | |
| 22 | + <td>POST</td> | |
| 23 | + </tr> | |
| 24 | + <tr> | |
| 25 | + <th>프로토콜</th> | |
| 26 | + <td>HTTP/1.1</td> | |
| 27 | + </tr> | |
| 28 | + <tr> | |
| 29 | + <th>HOST</th> | |
| 30 | + <td>api.munjaon.co.kr</td> | |
| 31 | + </tr> | |
| 32 | + <tr> | |
| 33 | + <th>Service Port</th> | |
| 34 | + <td>443</td> | |
| 35 | + </tr> | |
| 36 | + </table> | |
| 37 | + </div> | |
| 38 | + </div> | |
| 39 | + <div class="type_table"> | |
| 40 | + <table> | |
| 41 | + <caption>발송가능 건수 API Request 키 종류 및 설명, 타입, 필수 여부 테이블</caption> | |
| 42 | + <colgroup> | |
| 43 | + <col style="width:20%;"> | |
| 44 | + <col style="width:45%;"> | |
| 45 | + <col style="width:25%"> | |
| 46 | + <col style="width:10%"> | |
| 47 | + </colgroup> | |
| 48 | + <thead> | |
| 49 | + <tr> | |
| 50 | + <th>키</th> | |
| 51 | + <th>설명</th> | |
| 52 | + <th>타입</th> | |
| 53 | + <th>필수</th> | |
| 54 | + </tr> | |
| 55 | + </thead> | |
| 56 | + <tbody> | |
| 57 | + <tr> | |
| 58 | + <td><span class="font_b">mberId</span></td> | |
| 59 | + <td>사용자 ID</td> | |
| 60 | + <td>String</td> | |
| 61 | + <td><span class="select_o">O</span></td> | |
| 62 | + </tr> | |
| 63 | + <tr> | |
| 64 | + <td><span class="font_b">accessKey</span></td> | |
| 65 | + <td>인증용 API Key</td> | |
| 66 | + <td>String</td> | |
| 67 | + <td><span class="select_o">O</span></td> | |
| 68 | + </tr> | |
| 69 | + </tbody> | |
| 70 | + </table> | |
| 71 | + <div class="table_info"> | |
| 72 | + <p>※ HTTPS 프로토콜을 사용하여 POST로 요청합니다.</p> | |
| 73 | + </div> | |
| 74 | + </div> | |
| 75 | + <div class="box"> | |
| 76 | + <div class="title">[Example]</div> | |
| 77 | + <div class="code_view"> | |
| 78 | + <p>{</p> | |
| 79 | + <div class="indent"> | |
| 80 | + <p><span>"mberId"</span>:"String"</p> | |
| 81 | + <p>,<span>"accessKey"</span>:"String"</p> | |
| 82 | + </div> | |
| 83 | + <p class="l_code">}</p> | |
| 84 | + </div> | |
| 85 | + </div> | |
| 86 | + <!--// Request--> | |
| 87 | + <!-- Response--> | |
| 88 | + <div class="res_title">Response</div> | |
| 89 | + <div class="type_table"> | |
| 90 | + <table> | |
| 91 | + <caption>발송가능 건수 API Response 키 종류 및 설명, 타입 테이블</caption> | |
| 92 | + <colgroup> | |
| 93 | + <col style="width:20%;"> | |
| 94 | + <col style="width:60%;"> | |
| 95 | + <col style="width:20%;"> | |
| 96 | + </colgroup> | |
| 97 | + <thead> | |
| 98 | + <tr> | |
| 99 | + <th>키</th> | |
| 100 | + <th>설명</th> | |
| 101 | + <th>타입</th> | |
| 102 | + </tr> | |
| 103 | + </thead> | |
| 104 | + <tbody> | |
| 105 | + <tr> | |
| 106 | + <td><span class="font_b">resultCode</span></td> | |
| 107 | + <td>성공 여부("0" 아니면 실패)</td> | |
| 108 | + <td>String</td> | |
| 109 | + </tr> | |
| 110 | + <tr> | |
| 111 | + <td><span class="font_b">data</span></td> | |
| 112 | + <td>결과값 객체(성공 : 데이터, 실패 : 메시지)</td> | |
| 113 | + <td>Object</td> | |
| 114 | + </tr> | |
| 115 | + <tr> | |
| 116 | + <td><span class="font_b">[data].longPrice</span></td> | |
| 117 | + <td>장문 단가</td> | |
| 118 | + <td>String</td> | |
| 119 | + </tr> | |
| 120 | + <tr> | |
| 121 | + <td><span class="font_b">[data].longSendPsbltEa</span></td> | |
| 122 | + <td>장문 발송 가능 건수</td> | |
| 123 | + <td>String</td> | |
| 124 | + </tr> | |
| 125 | + <tr> | |
| 126 | + <td><span class="font_b">[data].mberMoney</span></td> | |
| 127 | + <td>현재 보유 금액</td> | |
| 128 | + <td>String</td> | |
| 129 | + </tr> | |
| 130 | + <tr> | |
| 131 | + <td><span class="font_b">[data].message</span></td> | |
| 132 | + <td>문자</td> | |
| 133 | + <td>String</td> | |
| 134 | + </tr> | |
| 135 | + <tr> | |
| 136 | + <td><span class="font_b">[data].picturePrice</span></td> | |
| 137 | + <td>그림문자 단가</td> | |
| 138 | + <td>String</td> | |
| 139 | + </tr> | |
| 140 | + <tr> | |
| 141 | + <td><span class="font_b">[data].pictureSendPsbltEa</span></td> | |
| 142 | + <td>그림문자 발송 가능 건수</td> | |
| 143 | + <td>String</td> | |
| 144 | + </tr> | |
| 145 | + <tr> | |
| 146 | + <td><span class="font_b">[data].shortPrice</span></td> | |
| 147 | + <td>단문 단가</td> | |
| 148 | + <td>String</td> | |
| 149 | + </tr> | |
| 150 | + <tr> | |
| 151 | + <td><span class="font_b">[data].shortSendPsbltEa</span></td> | |
| 152 | + <td>단문 발송 가능 건수</td> | |
| 153 | + <td>String</td> | |
| 154 | + </tr> | |
| 155 | + </tbody> | |
| 156 | + </table> | |
| 157 | + <div class="table_info"> | |
| 158 | + <p>※ JSON 객체로 응답합니다.</p> | |
| 159 | + </div> | |
| 160 | + </div> | |
| 161 | + <div class="box"> | |
| 162 | + <div class="title_t1"><span class="ex">[Example]</span><span class="ex_success">O 성공 예시</span></div> | |
| 163 | + <div class="code_view"> | |
| 164 | + <p>{</p> | |
| 165 | + <div class="indent"> | |
| 166 | + <p><span>"resultCode"</span>:"0"</p> | |
| 167 | + <p>,<span>"data"</span>{</p> | |
| 168 | + <div class="indent_t1"> | |
| 169 | + <p><span>"longPrice"</span>:"50"</p> | |
| 170 | + <p>,<span>"longSendPsbltEa"</span>:"19651"</p> | |
| 171 | + <p>,<span>"mberMoney"</span>:"982586.7"</p> | |
| 172 | + <p>,<span>"message"</span>:null</p> | |
| 173 | + <p>,<span>"picturePrice"</span>:"90"</p> | |
| 174 | + <p>,<span>"pictureSendPsbltEa"</span>:"10917"</p> | |
| 175 | + <p>,<span>"shortPrice"</span>:"18"</p> | |
| 176 | + <p>,<span>"shortSendPsbltEa"</span>:"54588"</p> | |
| 177 | + </div> | |
| 178 | + <p>}</p> | |
| 179 | + </div> | |
| 180 | + <p class="l_code">}</p> | |
| 181 | + </div> | |
| 182 | + </div> | |
| 183 | + <div class="box"> | |
| 184 | + <div class="title_t1"><span class="ex">[Example]</span><span class="ex_fail">X 실패 예시</span></div> | |
| 185 | + <div class="code_view"> | |
| 186 | + <p>{</p> | |
| 187 | + <div class="indent"> | |
| 188 | + <p><span>"resultCode"</span>:"5099"</p> | |
| 189 | + <p>,<span>"data"</span>:"기타 시스템 오류"</p> | |
| 190 | + </div> | |
| 191 | + <p class="l_code">}</p> | |
| 192 | + </div> | |
| 193 | + </div> | |
| 194 | + <!--// Response--> | |
| 195 | + </div> |
--- src/main/webapp/WEB-INF/jsp/web/api/msg/apiSpec.jsp
... | ... | @@ -1,79 +0,0 @@ |
| 1 | -<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> | |
| 2 | -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
| 3 | -<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> | |
| 4 | -<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> | |
| 5 | -<script language=javascript> | |
| 6 | -$(document).ready(function(){ | |
| 7 | - | |
| 8 | -}); | |
| 9 | - | |
| 10 | -</script> | |
| 11 | -<style> | |
| 12 | - | |
| 13 | - .padding_add > p | |
| 14 | - { | |
| 15 | - padding-left: 30px; | |
| 16 | - padding-bottom: 8px; | |
| 17 | - } | |
| 18 | - | |
| 19 | - .padding_add > div > p | |
| 20 | - { | |
| 21 | - padding-left: 60px; | |
| 22 | - padding-bottom: 8px; | |
| 23 | - } | |
| 24 | - | |
| 25 | - | |
| 26 | - | |
| 27 | -</style> | |
| 28 | -<!-- content 영역 --> | |
| 29 | -<div class="inner"> | |
| 30 | - <!-- send top --> | |
| 31 | - <div class="send_top"> | |
| 32 | - | |
| 33 | - <c:import url="../top_tepMenu.jsp" /><!--// tab button --> | |
| 34 | - | |
| 35 | - <!-- tab button --> | |
| 36 | - <div class="api_guide_cont current" id="tab5_1"> | |
| 37 | - <div class="heading"> | |
| 38 | - <h2>REST API 설명</h2> | |
| 39 | - </div> | |
| 40 | - <div class="pay_tab_wrap"> | |
| 41 | - <!-- tab button --> | |
| 42 | - <ul class="tabType1"> | |
| 43 | - <li class="tab active"><button type="button" onclick="TabType1(this,'1')">문자보내기</button></li> | |
| 44 | - <li class="tab"><button type="button" onclick="TabType1(this,'2')" id="btnEstimate">문자보내기(대량)</button></li> | |
| 45 | - <li class="tab"><button type="button" onclick="TabType1(this,'3')" id="btnEstimate3">전송내역조회</button></li> | |
| 46 | - <li class="tab"><button type="button" onclick="TabType1(this,'4')" id="btnEstimate4">전송결과조회(상세)</button></li> | |
| 47 | - <li class="tab"><button type="button" onclick="TabType1(this,'5')" id="btnEstimate5">발송가능건수</button></li> | |
| 48 | - </ul><!--// tab button --> | |
| 49 | - </div> | |
| 50 | - | |
| 51 | - <!-- 문자보내기 --> | |
| 52 | - <!-- 문자보내기 --> | |
| 53 | - <!-- 문자보내기 --> | |
| 54 | - <div class="fee_cont current" id="tab1_1"> | |
| 55 | - <c:import url="./apiSpec_tab1.jsp" /> | |
| 56 | - </div> | |
| 57 | - | |
| 58 | - <!-- 문자보내기(대량) --> | |
| 59 | - <!-- 문자보내기(대량) --> | |
| 60 | - <!-- 문자보내기(대량) --> | |
| 61 | - <div class="fee_cont" id="tab1_2"> | |
| 62 | - <c:import url="./apiSpec_tab2.jsp" /> | |
| 63 | - </div> | |
| 64 | - | |
| 65 | - <!-- 전송내역조회 --> | |
| 66 | - <div class="fee_cont" id="tab1_3"> | |
| 67 | - <c:import url="./apiSpec_tab3.jsp" /> | |
| 68 | - </div> | |
| 69 | - <!-- 전송결과조회(상세) --> | |
| 70 | - <div class="fee_cont" id="tab1_4"> | |
| 71 | - <c:import url="./apiSpec_tab4.jsp" /> | |
| 72 | - </div> | |
| 73 | - <!-- 발송가능건수 --> | |
| 74 | - <div class="fee_cont" id="tab1_5"> | |
| 75 | - <c:import url="./apiSpec_tab5.jsp" /> | |
| 76 | - </div> | |
| 77 | - </div> | |
| 78 | - </div><!--// send top --> | |
| 79 | -</div> |
--- src/main/webapp/WEB-INF/jsp/web/api/top_tepMenu.jsp
+++ src/main/webapp/WEB-INF/jsp/web/api/top_tepMenu.jsp
... | ... | @@ -98,8 +98,8 @@ |
| 98 | 98 |
|
| 99 | 99 |
<ul class="tabType4"> |
| 100 | 100 |
<li class="tab"><button type="button" class="goPage" id="intrdView" data-info="<c:url value="/web/api/intrdView.do" />">문자연동(API)소개</button></li> |
| 101 |
- <li class="tab"><button type="button" class="goPage" id="apiSpec" data-info="<c:url value="/web/api/apiSpec.do" />">문자 사용안내</button></li> |
|
| 102 |
- <li class="tab"><button type="button" class="goPage" id="apiAtSpec" data-info="<c:url value="/web/api/apiAtSpec.do" />">알림톡 사용안내</button></li> |
|
| 101 |
+ <li class="tab"><button type="button" class="goPage" id="apiSpec" data-info="<c:url value="/web/api/apiSpec.do" />">개발 가이드</button></li> |
|
| 102 |
+<%-- <li class="tab"><button type="button" class="goPage" id="apiAtSpec" data-info="<c:url value="/web/api/apiAtSpec.do" />">알림톡 사용안내</button></li> --%> |
|
| 103 | 103 |
<li class="tab"><button type="button" class="goPage" id="examDown" data-info="<c:url value="/web/api/examDown.do" />">예제 다운로드</button></li> |
| 104 | 104 |
<li class="tab"><button type="button" class="goPage" id="appMgmt" data-info="<c:url value="/web/api/appMgmt.do" />" >신청/관리</button></li> |
| 105 | 105 |
</ul> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?