diff --git a/src/main/java/geoinfo/admins/apiManagement/ApiManagementController.java b/src/main/java/geoinfo/admins/apiManagement/ApiManagementController.java new file mode 100644 index 0000000..95a43d8 --- /dev/null +++ b/src/main/java/geoinfo/admins/apiManagement/ApiManagementController.java @@ -0,0 +1,77 @@ +package geoinfo.admins.apiManagement; + +import java.net.URLEncoder; +import java.security.SecureRandom; +import java.sql.SQLException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; + +import javax.annotation.Resource; +import javax.servlet.ServletOutputStream; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; + +import org.apache.log4j.Logger; +import org.apache.poi.hssf.usermodel.HSSFWorkbook; +import org.apache.poi.ss.usermodel.Sheet; +import org.json.simple.JSONArray; +import org.json.simple.JSONObject; +import org.json.simple.parser.JSONParser; +import org.springframework.http.MediaType; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.ResponseBody; +import org.springframework.web.servlet.ModelAndView; + +import egovframework.com.cmm.service.EgovProperties; +import egovframework.rte.psl.dataaccess.util.EgovMap; +import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; +import geoinfo.admins.board.RefrncRoomController; +import geoinfo.admins.user.service.GeneralUserMngService; +import geoinfo.admins.user.service.HomeTrainingService; +import geoinfo.com.EgovExcel; +import geoinfo.com.GeoinfoCommon; +import geoinfo.comm.util.ScriptUtil; +import geoinfo.session.UserInfo; +import geoinfo.util.MyUtil; +import whois.whoisSMS; + + + +@Controller +public class ApiManagementController { + @Resource(name = "generalUserMngService") + private GeneralUserMngService masterService; + + @Resource(name = "homeTrainingService") + private HomeTrainingService homeTrainingService; + + /** + * 집합교육 화면 + * @param params + * @param model + * @param response + * @param request + * @return + * @throws Exception + */ + @RequestMapping(value = "admins/mgmtApi/mgmt-api-index.do") + public String goMgmtApiIndex(@RequestParam HashMap params, ModelMap model, HttpServletResponse response, HttpServletRequest request) throws Exception { + + if (!UserInfo.isValidSession(request, response, "admin")) { + return ""; + } + + model.addAttribute("params", params); + return "admins/mgmtApi/api-request-statistics-index"; + } +} diff --git a/src/main/webapp/WEB-INF/views/admins/frame/top.jsp b/src/main/webapp/WEB-INF/views/admins/frame/top.jsp index 85afeba..ccffdc7 100644 --- a/src/main/webapp/WEB-INF/views/admins/frame/top.jsp +++ b/src/main/webapp/WEB-INF/views/admins/frame/top.jsp @@ -17,6 +17,7 @@ Ǽ + API diff --git a/src/main/webapp/WEB-INF/views/admins/main/index.jsp b/src/main/webapp/WEB-INF/views/admins/main/index.jsp index 7de36a7..86ff2a5 100644 --- a/src/main/webapp/WEB-INF/views/admins/main/index.jsp +++ b/src/main/webapp/WEB-INF/views/admins/main/index.jsp @@ -142,6 +142,7 @@ document.addEventListener('keyup', function(e) { 건설현장 관리 + API 관리 diff --git a/src/main/webapp/WEB-INF/views/admins/main/main.jsp b/src/main/webapp/WEB-INF/views/admins/main/main.jsp index afbcc91..921ed64 100644 --- a/src/main/webapp/WEB-INF/views/admins/main/main.jsp +++ b/src/main/webapp/WEB-INF/views/admins/main/main.jsp @@ -113,6 +113,7 @@ document.addEventListener('keyup', function(e) { 건설현장 관리 + API 관리 diff --git a/src/main/webapp/WEB-INF/views/admins/mgmtApi/api-request-statistics-index.jsp b/src/main/webapp/WEB-INF/views/admins/mgmtApi/api-request-statistics-index.jsp new file mode 100644 index 0000000..82c3ba7 --- /dev/null +++ b/src/main/webapp/WEB-INF/views/admins/mgmtApi/api-request-statistics-index.jsp @@ -0,0 +1,589 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@ taglib prefix="ui" uri="http://egovframework.gov/ctl/ui"%> + + + + + + + + + + + + + +
+

📈 일일 접속량

+ +
+ +
+ +
+
+

API 호출 현황

+ +
+ +
+
+
+
+
호출 성공
+ 3초 이내 응답 +
+
+
0%
+
+ +
+
+
+
+
호출 실패
+ API 실패 +
+
+
0%
+
+ +
+
+
🕓
+
+
호출 지연
+ 3초 초과 지연 +
+
+
0%
+
+ +
+
+
⚠️
+
+
호출 오류
+ 오류 응답 +
+
+
0%
+
+
+ + +
+
+

API 호출 통제

+ +
+ +
+
+
+
프로젝트 관련 데이터 갯수(전체 합)
+
사용자 작업용 API
+
+ +
+ +
+
+
프로젝트 관련 데이터 갯수 (시추 개별)
+
사용자 작업용 API
+
+ +
+ +
+
+
시추정보 관련 데이터 갯수
+
사용자 작업용 API
+
+ +
+ + + +
+
+
사업(프로젝트)정보
+
사용자 작업용 API
+
+ +
+ +
+
+
지질정보
+
사용자 작업용 API
+
+ +
+ +
+
+
전기비저항탐사시험
+
사용자 작업용 API
+
+ +
+ +
+
+
굴절법탄성파
+
사용자 작업용 API
+
+ +
+ +
+
+
시추정보
+
사용자 작업용 API
+
+ +
+ +
+
+
지층정보
+
사용자 작업용 API
+
+ +
+ +
+
+
표준관입시험
+
사용자 작업용 API
+
+ +
+ +
+
+
절리정보
+
사용자 작업용 API
+
+ +
+ +
+
+
TCR RQD 시험정보
+
사용자 작업용 API
+
+ +
+ +
+
+
DSF 시험정보
+
사용자 작업용 API
+
+ +
+ +
+
+
RMR정보
+
사용자 작업용 API
+
+ +
+ +
+
+
Q시험정보
+
사용자 작업용 API
+
+ +
+ + +
+
+
+ + +
+

API 호출 로그

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
API요청방식요청파라미터응답상태처리시간(ms)응답결과
/API_CHA_085/requestPOSTsubCode=deowtj&prvcCode=j43o45k200 OK124 성공
/API_BH_020/dc332GETuser=beta43500 INTERNAL ERROR980⚠️ 오류
/API_BH_020/dc332GETuser=beta43500 INTERNAL ERROR980🕓 지연
/API_BH_020/dc332GETuser=beta43403 Unauthorized980 실패
/API_CHA_085/requestPOSTsubCode=deowtj&prvcCode=j43o45k200 OK124 성공
/API_BH_020/dc332GETuser=beta43500 INTERNAL ERROR980⚠️ 오류
/API_BH_020/dc332GETuser=beta43500 INTERNAL ERROR980🕓 지연
/API_BH_020/dc332GETuser=beta43403 Unauthorized980 실패
+ + + +
+ + + + + diff --git a/src/main/webapp/WEB-INF/views/admins/mgmtApi/left.jsp b/src/main/webapp/WEB-INF/views/admins/mgmtApi/left.jsp new file mode 100644 index 0000000..ab45b18 --- /dev/null +++ b/src/main/webapp/WEB-INF/views/admins/mgmtApi/left.jsp @@ -0,0 +1,92 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> +<%@ taglib prefix="fn" uri = "http://java.sun.com/jsp/jstl/functions" %> + + + + + + + + + + + + + + + + + +
+ + + + + + + + +
+ +
+
+ + diff --git a/src/main/webapp/images/admins/mgmtApi/1_tit_01.gif b/src/main/webapp/images/admins/mgmtApi/1_tit_01.gif new file mode 100644 index 0000000..f88f7ba Binary files /dev/null and b/src/main/webapp/images/admins/mgmtApi/1_tit_01.gif differ