{"id":1218,"date":"2022-02-24T22:04:00","date_gmt":"2022-02-24T13:04:00","guid":{"rendered":"http:\/\/mylittleforest.kr\/wordpress\/?p=1218"},"modified":"2025-01-15T11:33:09","modified_gmt":"2025-01-15T02:33:09","slug":"openapi","status":"publish","type":"post","link":"http:\/\/mylittleforest.kr\/wordpress\/blog\/2022\/02\/24\/1218\/","title":{"rendered":"OpenAPI"},"content":{"rendered":"\n<h2>OpenAPI<\/h2>\n\n\n\n<h3>API<\/h3>\n\n\n\n<ul><li>Application Programming Interface<\/li><li>\uc6b4\uc601\uccb4\uc81c\ub098 \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud558\uae30 \uc704\ud55c \uc778\ud130\ud398\uc774\uc2a4<\/li><li>\uc608:<ul><li>\ub2e4\ub978 \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\uc5d0\uc11c \uc6b4\uc601\uccb4\uc81c\uc758 \uae30\ub2a5\uc744 \uc774\uc6a9\ud558\ub824 \ud560 \uacbd\uc6b0<ul><li>\uc6b4\uc601\uccb4\uc81c\uc5d0\uc11c \uc790\uc2e0\uc758 \uae30\ub2a5\uc5d0 \ub300\ud574 \uc811\uadfc\ud560 \uc218 \uc788\ub294 \uc778\ud130\ud398\uc774\uc2a4\ub97c \uacf5\uac1c<\/li><li>\ud504\ub85c\uadf8\ub798\uba38\uc5d0\uac8c \uc778\ud130\ud398\uc774\uc2a4\uc5d0 \ub300\ud55c \uc790\uc138\ud55c \uc2a4\ud399 \ub610\ub294 \uba85\uc138\ub97c \uc81c\uacf5<\/li><li>\uc774 \uba85\uc138\uac00 \ubc14\ub85c API<\/li><\/ul><\/li><\/ul><\/li><\/ul>\n\n\n\n<h3>OpenAPI<\/h3>\n\n\n\n<ul><li>\ud2b9\uc815 \uc0ac\uc774\ud2b8\uc758 \ub370\uc774\ud130\uc5d0 \uc811\uadfc\ud558\ub294 API\ub97c \uacf5\uac1c\ud574 \uc678\ubd80 \uc0ac\uc774\ud2b8\uc5d0\uc11c \uc790\uc720\ub86d\uac8c \uac00\uacf5\ud558\uace0 \uc0ac\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \ud568<\/li><li>API \uc81c\uacf5\uc790\ub294 API \uc0ac\uc6a9\ub8cc\ub97c \ud1b5\ud574 \uc9c1\uc811\uc801\uc778 \uc218\uc775\uc744 \uc5bb\uac70\ub098 \uc0ac\uc6a9\uc790 \uc720\uc785 \ub4f1\uc744 \uc720\ub3c4\ud560 \uc218 \uc788\uc74c<\/li><li>API \uc0ac\uc6a9\uc790\ub294 \uc9c1\uc811 \uac1c\ubc1c\ud558\ub294 \uac83\ubcf4\ub2e4 \ud6e8\uc52c \uc801\uc740 \ube44\uc6a9\uc73c\ub85c \uae30\ub2a5 \uac1c\ubc1c\uc774 \uac00\ub2a5<\/li><\/ul>\n\n\n\n<h3>OpenAPI \uc0ac\uc6a9 \uc808\ucc28<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"444\" height=\"215\" src=\"http:\/\/mylittleforest.kr\/wordpress\/wp-content\/uploads\/2022\/02\/openapi-01.jpg\" alt=\"\" class=\"wp-image-1219\" srcset=\"http:\/\/mylittleforest.kr\/wordpress\/wp-content\/uploads\/2022\/02\/openapi-01.jpg 444w, http:\/\/mylittleforest.kr\/wordpress\/wp-content\/uploads\/2022\/02\/openapi-01-300x145.jpg 300w\" sizes=\"(max-width: 444px) 100vw, 444px\" \/><\/figure>\n\n\n\n<h3>OpenAPI\uc758 \uc885\ub958<\/h3>\n\n\n\n<h4>RESTAPI<\/h4>\n\n\n\n<ul><li>\ubcf4\ud1b5\uc758 http\ud1b5\uc2e0 \ubc29\uc2dd\uc73c\ub85c api \ub97c \ud638\ucd9c\ud558\ub294 \ubc29\uc2dd<\/li><li>\ucd94\uac00\uc801\uc778 \ub77c\uc774\ube0c\ub7ec\ub9ac\uac00 \ud544\uc694 \uc5c6\uace0 \uc5b4\ub290 \ud50c\ub7ab\ud3fc\uc5d0\uc11c\ub4e0 \uc0ac\uc6a9\ud558\ub294 \uc5b8\uc5b4\uc5d0\uc11c http\ud1b5\uc2e0\ub9cc \uc9c0\uc6d0\ud55c\ub2e4\uba74 api \ub97c \uc0ac\uc6a9<\/li><\/ul>\n\n\n\n<h4>\u2022 \uc6f9 JS SDK<\/h4>\n\n\n\n<ul><li>Software Development Kit\uc758 \uc57d\uc790<\/li><li>\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 sdk\ub294 \ud654\uba74\uc5d0 \ud45c\uc2dc\ub420 ui \uc640 \uc0c1\ud638\uc791\uc6a9 \uae4c\uc9c0 \ud3ec\ud568\ud558\uace0 \uc788\uace0 \ub354 \ud48d\ubd80\ud55c \uc11c\ube44\uc2a4\ub97c \uc81c\uacf5<\/li><li>\ub300\ud45c\uc801\uc778 \uc608 : \uc9c0\ub3c4 api<\/li><\/ul>\n\n\n\n<h4>\ub124\uc774\ud2f0\ube0c SDK<\/h4>\n\n\n\n<ul><li>\uc548\ub4dc\ub85c\uc774\ub4dc\ub098 iOS\uc5d0\uc11c \uc2e4\ud589\ub418\ub294 \uc2a4\ub9c8\ud2b8\ud3f0 \uc571\uc744 \uc704\ud574 \uc81c\uacf5\ub418\ub294 \ubc29\uc2dd<\/li><\/ul>\n\n\n\n<h2>\ud55c\ub3d9\ub300\ud559\uad50 API<\/h2>\n\n\n\n<ul><li>\ud06c\ub86c\uc5d0 <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/json-formatter\/bcjindcccaagfpapjjmafapmmgkkhgoa\/related?hl=ko\" target=\"_blank\" rel=\"noreferrer noopener\">JSON Formatter<\/a> \ud655\uc7a5\ud504\ub85c\uadf8\ub7a8 \uc124\uce58<\/li><\/ul>\n\n\n\n<h3>Query parameter<\/h3>\n\n\n\n<ul><li>Http\uc694\uccad\uc5d0\uc11c \uc778\uc790\ub97c \uc804\ub2ec\ud558\ub294 \ubc29\uc2dd \uc911 \ud558\ub098<\/li><li>\uc778\uc790\uc5d0 \uc774\ub984\uc744 \ubd80\uc5ec\ud558\uace0 \uac1c\uc218 \uc81c\ud55c\uc774 \uc5c6\ub2e4\ub294 \uac83\uc774 \uc7a5\uc810<\/li><li>\uc8fc\uc18c\uc5d0 \uc815\ubcf4\uac00 \uacf5\uac1c\ub41c \ub2e4\ub294 \uc810\uc740 \ubcf4\uc548\uc801\uc73c\ub85c \ucde8\uc57d\ud560 \uc218 \uc788\uc74c<\/li><li>Url \ub4a4 ?\ud45c\uc2dc\ub85c \uc2dc\uc791<\/li><li>http:\/\/example.com<mark>?date=20190601&amp;param2=test<\/mark><\/li><\/ul>\n\n\n\n<h3>\uc2dd\ub2e8 \uc815\ubcf4 API<\/h3>\n\n\n\n<ul><li>\uc9c0\uc815\ud55c \ub0a0\uc9dc\uc758 \uc2dd\ub2e8\uc744 \ubc18\ud658<\/li><li><a href=\"http:\/\/smart.handong.edu\/api\/service\/menu\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/smart.handong.edu\/api\/service\/menu<\/a><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"426\" height=\"316\" src=\"http:\/\/mylittleforest.kr\/wordpress\/wp-content\/uploads\/2022\/02\/openapi-02.jpg\" alt=\"\" class=\"wp-image-1221\" srcset=\"http:\/\/mylittleforest.kr\/wordpress\/wp-content\/uploads\/2022\/02\/openapi-02.jpg 426w, http:\/\/mylittleforest.kr\/wordpress\/wp-content\/uploads\/2022\/02\/openapi-02-300x223.jpg 300w\" sizes=\"(max-width: 426px) 100vw, 426px\" \/><\/figure>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;meta charset=&quot;utf-8&quot;&gt;\n    &lt;title&gt;openapi-handong&lt;\/title&gt;\n    &lt;style&gt;\n      table,\n      th,\n      td {\n        border: solid gray;\n      }\n    &lt;\/style&gt;\n    &lt;script src=&quot;https:\/\/code.jquery.com\/jquery-3.4.1.min.js&quot;&gt;&lt;\/script&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;h1&gt;\uc624\ub298\uc758 \uc2dd\ub2e8&lt;\/h1&gt;\n    &lt;button id=&quot;haksikBtn&quot;&gt;\ud559\uc2dd&lt;\/button&gt;\n    &lt;button id=&quot;momsBtn&quot;&gt;\ub9d8\uc2a4&lt;\/button&gt;\n    &lt;table&gt;\n      &lt;thead&gt;\n        &lt;tr&gt;\n          &lt;th&gt;\ud55c\uae00\uba54\ub274&lt;\/th&gt;\n          &lt;th&gt;\uac00\uaca9&lt;\/th&gt;\n        &lt;\/tr&gt;\n      &lt;\/thead&gt;\n      &lt;tbody id=&quot;tableBody&quot;&gt;&lt;\/tbody&gt;\n    &lt;\/table&gt;\n    &lt;script src=&quot;.\/0604-app.js&quot;&gt;&lt;\/script&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nvar haksik = &#x5B;];\nvar moms = &#x5B;];\n\n$.ajax(&quot;http:\/\/smart.handong.edu\/api\/service\/menu&quot;)\n    .done(function(result) {\n        haksik = result.haksik;\n        moms = result.moms;\n        addItem(haksik);\n    });\n\nfunction addItem(menuArr) {\n    for (var menu of menuArr) {\n        $(&quot;#tableBody&quot;).append(`&lt;tr&gt;&lt;td&gt;${menu.menu_kor}&lt;\/td&gt;&lt;td&gt;${menu.price}&lt;\/td&gt;&lt;\/tr&gt;`);\n    }\n}\n\n$(&quot;#haksikBtn&quot;).click(function() {\n    $(&quot;#tableBody&quot;).html(&quot;&quot;);\n    addItem(haksik);\n});\n\n$(&quot;#momsBtn&quot;).click(function() {\n    $(&quot;#tableBody&quot;).html(&quot;&quot;);\n    addItem(moms);\n});\n<\/pre><\/div>\n\n\n<div class=\"wp-block-file\"><a href=\"http:\/\/mylittleforest.kr\/wordpress\/wp-content\/uploads\/2022\/02\/0604-openapi-handong-1.html\">0604-openapi-handong-1<\/a><a href=\"http:\/\/mylittleforest.kr\/wordpress\/wp-content\/uploads\/2022\/02\/0604-openapi-handong-1.html\" class=\"wp-block-file__button\" download>\ub2e4\uc6b4\ub85c\ub4dc<\/a><\/div>\n\n\n\n<div class=\"wp-block-file\"><a href=\"http:\/\/mylittleforest.kr\/wordpress\/wp-content\/uploads\/2022\/02\/0604-app.js\">0604-app<\/a><a href=\"http:\/\/mylittleforest.kr\/wordpress\/wp-content\/uploads\/2022\/02\/0604-app.js\" class=\"wp-block-file__button\" download>\ub2e4\uc6b4\ub85c\ub4dc<\/a><\/div>\n\n\n\n<h2>\uce74\uce74\uc624 \uc9c0\ub3c4<\/h2>\n\n\n\n<ul><li><a href=\"https:\/\/apis.map.kakao.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/apis.map.kakao.com\/<\/a><\/li><li>\ub0b4  \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ub9cc\ub4e4\uae30<\/li><li>\ud50c\ub7ab\ud3fc \ucd94\uac00 : web<ul><li>\uc0ac\uc774\ud2b8\ub3c4\uba54\uc778 \ub4f1\ub85d<\/li><\/ul><\/li><li><a href=\"https:\/\/apis.map.kakao.com\/web\/guide\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/apis.map.kakao.com\/web\/guide\/<\/a><\/li><li>KEY\ub97c REST API \ud0a4\uac00 \uc544\ub2cc JavaScript \ud0a4\ub97c \uc0ac\uc6a9\ud574\uc57c \ud568.<\/li><\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n\t&lt;meta charset=&quot;utf-8&quot;\/&gt;\n\t&lt;title&gt;Kakao \uc9c0\ub3c4 \uc2dc\uc791\ud558\uae30&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n\t&lt;div id=&quot;map&quot; style=&quot;width:500px;height:400px;&quot;&gt;&lt;\/div&gt;\n\t&lt;script type=&quot;text\/javascript&quot; src=&quot;\/\/dapi.kakao.com\/v2\/maps\/sdk.js?appkey=8979d3e8b21fffebfaa7d5b095b9595f&quot;&gt;&lt;\/script&gt;\n\t&lt;script&gt;\n\t\tvar container = document.getElementById('map');\n\t\tvar options = {\n\t\t\tcenter: new kakao.maps.LatLng(33.450701, 126.570667),\n\t\t\tlevel: 3\n\t\t};\n\n\t\tvar map = new kakao.maps.Map(container, options);\n\t&lt;\/script&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre><\/div>\n\n\n<div class=\"wp-block-file\"><a href=\"http:\/\/mylittleforest.kr\/wordpress\/wp-content\/uploads\/2022\/02\/0605-openapi-kakaomap-1.html\">0605-openapi-kakaomap-1<\/a><a href=\"http:\/\/mylittleforest.kr\/wordpress\/wp-content\/uploads\/2022\/02\/0605-openapi-kakaomap-1.html\" class=\"wp-block-file__button\" download>\ub2e4\uc6b4\ub85c\ub4dc<\/a><\/div>\n\n\n\n<div class=\"wp-block-file\"><a href=\"http:\/\/mylittleforest.kr\/wordpress\/wp-content\/uploads\/2022\/02\/0606-openapi-kakaomap-2.html\">0606-openapi-kakaomap-2<\/a><a href=\"http:\/\/mylittleforest.kr\/wordpress\/wp-content\/uploads\/2022\/02\/0606-openapi-kakaomap-2.html\" class=\"wp-block-file__button\" download>\ub2e4\uc6b4\ub85c\ub4dc<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>OpenAPI API Application Programming Interface \uc6b4\uc601\uccb4\uc81c\ub098 \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud558\uae30 \uc704\ud55c \uc778\ud130\ud398\uc774\uc2a4 \uc608: \ub2e4\ub978 \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4\uc5d0\uc11c \uc6b4\uc601\uccb4\uc81c\uc758 \uae30\ub2a5\uc744 \uc774\uc6a9\ud558\ub824 \ud560 \uacbd\uc6b0 \uc6b4\uc601\uccb4\uc81c\uc5d0\uc11c \uc790\uc2e0\uc758 \uae30\ub2a5\uc5d0 \ub300\ud574 \uc811\uadfc\ud560 \uc218 \uc788\ub294 \uc778\ud130\ud398\uc774\uc2a4\ub97c \uacf5\uac1c \ud504\ub85c\uadf8\ub798\uba38\uc5d0\uac8c \uc778\ud130\ud398\uc774\uc2a4\uc5d0 \ub300\ud55c \uc790\uc138\ud55c \uc2a4\ud399 \ub610\ub294 \uba85\uc138\ub97c \uc81c\uacf5 \uc774 \uba85\uc138\uac00 \ubc14\ub85c API OpenAPI \ud2b9\uc815 \uc0ac\uc774\ud2b8\uc758 \ub370\uc774\ud130\uc5d0 \uc811\uadfc\ud558\ub294 API\ub97c \uacf5\uac1c\ud574 \uc678\ubd80 \uc0ac\uc774\ud2b8\uc5d0\uc11c \uc790\uc720\ub86d\uac8c \uac00\uacf5\ud558\uace0 \uc0ac\uc6a9\ud560 \uc218 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false},"categories":[38,37],"tags":[],"_links":{"self":[{"href":"http:\/\/mylittleforest.kr\/wordpress\/wp-json\/wp\/v2\/posts\/1218"}],"collection":[{"href":"http:\/\/mylittleforest.kr\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mylittleforest.kr\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mylittleforest.kr\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/mylittleforest.kr\/wordpress\/wp-json\/wp\/v2\/comments?post=1218"}],"version-history":[{"count":8,"href":"http:\/\/mylittleforest.kr\/wordpress\/wp-json\/wp\/v2\/posts\/1218\/revisions"}],"predecessor-version":[{"id":1235,"href":"http:\/\/mylittleforest.kr\/wordpress\/wp-json\/wp\/v2\/posts\/1218\/revisions\/1235"}],"wp:attachment":[{"href":"http:\/\/mylittleforest.kr\/wordpress\/wp-json\/wp\/v2\/media?parent=1218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mylittleforest.kr\/wordpress\/wp-json\/wp\/v2\/categories?post=1218"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mylittleforest.kr\/wordpress\/wp-json\/wp\/v2\/tags?post=1218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}