{"id":40177,"date":"2024-11-03T04:12:02","date_gmt":"2024-11-03T04:12:02","guid":{"rendered":"https:\/\/atmokpo.com\/w\/?p=40177"},"modified":"2024-11-26T06:39:52","modified_gmt":"2024-11-26T06:39:52","slug":"24-%ea%b3%a0%ea%b8%89-%ea%b8%b0%eb%8a%a5-%ea%b5%ac%ed%98%84-wp-rest-api%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%9c-%ed%97%a4%eb%93%9c%eb%a6%ac%ec%8a%a4-%ec%9b%8c%eb%93%9c%ed%94%84%eb%a0%88%ec%8a%a4","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/40177\/","title":{"rendered":"24. \uace0\uae09 \uae30\ub2a5 \uad6c\ud604, WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604"},"content":{"rendered":"<p><body><\/p>\n<h2>\uac1c\uc694<\/h2>\n<p>\ud604\ub300 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c \ud5e4\ub4dc\ub9ac\uc2a4 CMS(\ucf58\ud150\uce20 \uad00\ub9ac \uc2dc\uc2a4\ud15c)\uc758 \uc0ac\uc6a9\uc774 \uc99d\uac00\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc6cc\ub4dc\ud504\ub808\uc2a4\ub294 \uc774\ub7ec\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 CMS\ub85c\uc11c\uc758 \uac00\ub2a5\uc131\uc744 \uc81c\uacf5\ud558\uae30 \uc704\ud574 WP REST API\ub97c \uc9c0\uc6d0\ud569\ub2c8\ub2e4. WP REST API\ub294 \uac1c\ubc1c\uc790\uac00 \uc6cc\ub4dc\ud504\ub808\uc2a4\ub97c \ubc31\uc5d4\ub4dc\ub85c \uc0ac\uc6a9\ud558\uace0, \ud504\ub860\ud2b8\uc5d4\ub4dc \ud504\ub808\uc784\uc6cc\ud06c(React, Vue.js, Angular \ub4f1)\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc720\uc5f0\ud55c \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\ub97c \uad6c\ud604\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc744 \uc81c\uc2dc\ud569\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc124\uba85\ud558\uace0, \uc2e4\uc81c \ucf54\ub4dc \uc608\uc81c\ub97c \ud1b5\ud574 \uc774\ud574\ub97c \ub3d5\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4\ub780?<\/h2>\n<p>\ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4\ub294 \ud504\ub860\ud2b8\uc5d4\ub4dc\uc640 \ubc31\uc5d4\ub4dc\uac00 \ubd84\ub9ac\ub41c \uad6c\uc870\ub97c \ub9d0\ud569\ub2c8\ub2e4. \uc804\ud1b5\uc801\uc778 \uc6cc\ub4dc\ud504\ub808\uc2a4\ub294 \ubc31\uc5d4\ub4dc\uc640 \ud504\ub860\ud2b8\uc5d4\ub4dc\uac00 tightly coupled\ub418\uc5b4 \uc788\uc5b4, \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\ub97c \ubcc0\uacbd\ud558\uace0 \uc2f6\uc73c\uba74 \ubc31\uc5d4\ub4dc\uc640\uc758 \uae4a\uc740 \ud1b5\ud569\uc774 \ud544\uc694\ud588\uc2b5\ub2c8\ub2e4. \uadf8\ub7ec\ub098 \ud5e4\ub4dc\ub9ac\uc2a4 \uad6c\uc870\uc5d0\uc11c\ub294 \uc6cc\ub4dc\ud504\ub808\uc2a4\uac00 \uc624\uc9c1 \ub370\uc774\ud130 \uc800\uc7a5\uc18c\ub85c \uae30\ub2a5\ud558\uace0, \ud074\ub77c\uc774\uc5b8\ud2b8\ub294 REST API\ub97c \ud1b5\ud574 \ub370\uc774\ud130\ub97c \uc694\uccad\ud558\uc5ec \ud544\uc694\ud560 \ub54c \ub3d9\uc801\uc73c\ub85c \ucf58\ud150\uce20\ub97c \ubc1b\uc544\uc635\ub2c8\ub2e4.<\/p>\n<h2>2. WP REST API \uc18c\uac1c<\/h2>\n<p>WP REST API\ub294 \uc6cc\ub4dc\ud504\ub808\uc2a4\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 API\ub85c, JSON \ud615\uc2dd\uc73c\ub85c \ub370\uc774\ud130\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\ub3c4\ub85d \ud574\uc90d\ub2c8\ub2e4. REST API\ub97c \ud1b5\ud574 \uc0ac\uc6a9\uc790\ub294 \ub2e4\uc591\ud55c HTTP \uba54\uc18c\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc6cc\ub4dc\ud504\ub808\uc2a4\uc758 \uac8c\uc2dc\ubb3c(post), \ud398\uc774\uc9c0(page), \ub313\uae00(comment) \ub4f1\uc758 \ub370\uc774\ud130\uc5d0 CRUD(Create, Read, Update, Delete) \uc791\uc5c5\uc744 \uc218\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>2.1 \uc8fc\uc694 \uc5d4\ub4dc\ud3ec\uc778\ud2b8<\/h3>\n<ul>\n<li><code>GET \/wp-json\/wp\/v2\/posts<\/code>: \ubaa8\ub4e0 \uac8c\uc2dc\ubb3c \ubaa9\ub85d \uc870\ud68c<\/li>\n<li><code>GET \/wp-json\/wp\/v2\/posts\/{id}<\/code>: \ud2b9\uc815 \uac8c\uc2dc\ubb3c \uc870\ud68c<\/li>\n<li><code>POST \/wp-json\/wp\/v2\/posts<\/code>: \uac8c\uc2dc\ubb3c \uc0dd\uc131<\/li>\n<li><code>PUT \/wp-json\/wp\/v2\/posts\/{id}<\/code>: \uac8c\uc2dc\ubb3c \uc218\uc815<\/li>\n<li><code>DELETE \/wp-json\/wp\/v2\/posts\/{id}<\/code>: \uac8c\uc2dc\ubb3c \uc0ad\uc81c<\/li>\n<\/ul>\n<h2>3. \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uc124\uc815\ud558\uae30<\/h2>\n<p>\ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4\ub97c \uad6c\ud604\ud558\uae30 \uc704\ud574\uc11c\ub294 WP REST API\ub97c \ud65c\uc131\ud654\ud558\uace0, \uc774\ub97c \ud65c\uc6a9\ud558\uae30 \uc704\ud55c \ud504\ub860\ud2b8\uc5d4\ub4dc \ucf54\ub4dc\ub97c \uc791\uc131\ud574\uc57c \ud569\ub2c8\ub2e4. \ub2e4\uc74c \ub2e8\uacc4\uc5d0 \ub530\ub77c \ud5e4\ub4dc\ub9ac\uc2a4 \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc124\uc815\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>3.1 WP REST API \ud65c\uc131\ud654<\/h3>\n<p>\uae30\ubcf8\uc801\uc73c\ub85c \ucd5c\uc2e0 \ubc84\uc804\uc758 \uc6cc\ub4dc\ud504\ub808\uc2a4\uc5d0\uc11c\ub294 WP REST API\uac00 \ud65c\uc131\ud654\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uadf8\ub7ec\ub098 \uc0ac\uc6a9 \uc911\uc778 \ud14c\ub9c8\ub098 \ud50c\ub7ec\uadf8\uc778\uc5d0 \ub530\ub77c API\uc758 \uc811\uadfc \uc81c\ud55c\uc774 \uc788\uc744 \uc218 \uc788\uc73c\ubbc0\ub85c \ud655\uc778\uc774 \ud544\uc694\ud569\ub2c8\ub2e4.<\/p>\n<h3>3.2 CORS \uc124\uc815<\/h3>\n<p>\ud504\ub860\ud2b8\uc5d4\ub4dc \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uacfc \uc6cc\ub4dc\ud504\ub808\uc2a4 \uc11c\ubc84\uac00 \uc11c\ub85c \ub2e4\ub978 \ucd9c\ucc98(origin)\uc77c \uacbd\uc6b0, CORS(Cross-Origin Resource Sharing)\ub97c \uc124\uc815\ud574\uc57c \ud569\ub2c8\ub2e4. \uc774\ub97c \ud1b5\ud574 API \uc694\uccad\uc774 \uac00\ub2a5\ud558\uac8c \ub429\ub2c8\ub2e4. \uc6cc\ub4dc\ud504\ub808\uc2a4\uc758 functions.php\uc5d0 \ub2e4\uc74c \ucf54\ub4dc\ub97c \ucd94\uac00\ud558\uc5ec CORS\ub97c \ud5c8\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>\n    add_action('init', 'add_cors_http_header');\n    function add_cors_http_header(){\n        header(\"Access-Control-Allow-Origin: *\");\n        header(\"Access-Control-Allow-Headers: X-Requested-With\");\n    }\n    <\/code><\/pre>\n<h2>4. \ud504\ub860\ud2b8\uc5d4\ub4dc \ucf54\ub4dc \uad6c\ud604<\/h2>\n<p>\uc774\uc81c React.js\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud504\ub860\ud2b8\uc5d4\ub4dc \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uad6c\ud604\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. React \uc571\uc744 \uc0dd\uc131\ud558\uae30 \uc704\ud574 Create React App\uc744 \uc0ac\uc6a9\ud558\uaca0\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c \uba85\ub839\uc5b4\ub85c \uc0c8\ub85c\uc6b4 React \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>npx create-react-app headless-wp-client<\/code><\/pre>\n<p>\uc0dd\uc131\ub41c React \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ub514\ub809\ud1a0\ub9ac\ub85c \uc774\ub3d9\ud55c \ud6c4, <code>npm start<\/code> \uba85\ub839\uc73c\ub85c \uac1c\ubc1c \uc11c\ubc84\ub97c \uc2e4\ud589\ud569\ub2c8\ub2e4.<\/p>\n<h3>4.1 \uac8c\uc2dc\ubb3c \ubaa9\ub85d \uac00\uc838\uc624\uae30<\/h3>\n<p>\uc6cc\ub4dc\ud504\ub808\uc2a4\uc5d0\uc11c \uac8c\uc2dc\ubb3c\uc744 \uac00\uc838\uc624\ub294 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\uae30 \uc704\ud574 <code>axios<\/code> \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. <code>axios<\/code>\ub97c \uc124\uce58\ud558\ub824\uba74 \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \uc785\ub825\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>npm install axios<\/code><\/pre>\n<p>\uc774\uc81c <code>App.js<\/code> \ud30c\uc77c\uc744 \ub2e4\uc74c\uacfc \uac19\uc774 \uc218\uc815\ud558\uc5ec \uac8c\uc2dc\ubb3c \ubaa9\ub85d\uc744 \uac00\uc838\uc624\ub3c4\ub85d \ud569\ub2c8\ub2e4:<\/p>\n<pre><code>\n    import React, { useEffect, useState } from 'react';\n    import axios from 'axios';\n\n    function App() {\n        const [posts, setPosts] = useState([]);\n\n        useEffect(() =&gt; {\n            const fetchPosts = async () =&gt; {\n                const result = await axios(\n                    'https:\/\/your-wordpress-site.com\/wp-json\/wp\/v2\/posts',\n                );\n                setPosts(result.data);\n            };\n            fetchPosts();\n        }, []);\n\n        return (\n            <div>\n                <h1>\uc6cc\ub4dc\ud504\ub808\uc2a4 \uac8c\uc2dc\ubb3c \ubaa9\ub85d<\/h1>\n                <ul>\n                    {posts.map(post =&gt; (\n                        <li key=\"{post.id}\">\n                            <a href=\"{post.link}\" rel=\"noopener noreferrer\" target=\"_blank\">\n                                {post.title.rendered}\n                            <\/a>\n                        <\/li>\n                    ))}\n                <\/ul>\n            <\/div>\n        );\n    }\n\n    export default App;\n    <\/code><\/pre>\n<h3>4.2 \uac8c\uc2dc\ubb3c \uc0c1\uc138 \ubcf4\uae30<\/h3>\n<p>\uac8c\uc2dc\ubb3c\uc758 \uc0c1\uc138 \ubcf4\uae30\ub97c \uc704\ud574, \uac8c\uc2dc\ubb3c ID\ub97c \uae30\ubc18\uc73c\ub85c \ucd94\uac00\uc801\uc778 API \uc694\uccad\uc744 \ucc98\ub9ac\ud569\ub2c8\ub2e4. React Router\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub77c\uc6b0\ud305\uc744 \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. React Router\ub97c \uc124\uce58\ud558\ub824\uba74 \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>npm install react-router-dom<\/code><\/pre>\n<p>\uadf8 \ub2e4\uc74c, \uc544\ub798\uc640 \uac19\uc740 \uad6c\uc870\ub85c \ub77c\uc6b0\ud130\ub97c \uc124\uc815\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>\n    import React from 'react';\n    import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';\n    import App from '.\/App';\n    import Post from '.\/Post';\n\n    function Routes() {\n        return (\n            <router>\n                <switch>\n                    <route component=\"{App}\" exact=\"\" path=\"\/\"><\/route>\n                    <route component=\"{Post}\" path=\"\/post\/:id\"><\/route>\n                <\/switch>\n            <\/router>\n        );\n    }\n\n    export default Routes;\n    <\/code><\/pre>\n<h3>4.3 \uac8c\uc2dc\ubb3c \uc0c1\uc138 \ucef4\ud3ec\ub10c\ud2b8 \uad6c\ud604<\/h3>\n<p><code>Post.js<\/code>\ub77c\ub294 \ud30c\uc77c\uc744 \uc0dd\uc131\ud558\uace0 \uc544\ub798 \ucf54\ub4dc\ub97c \ucd94\uac00\ud558\uc5ec \ud2b9\uc815 \uac8c\uc2dc\ubb3c\uc744 API\ub85c \uac00\uc838\uc624\ub3c4\ub85d \uc124\uc815\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>\n    import React, { useEffect, useState } from 'react';\n    import axios from 'axios';\n\n    function Post({ match }) {\n        const [post, setPost] = useState(null);\n\n        useEffect(() =&gt; {\n            const fetchPost = async () =&gt; {\n                const result = await axios(\n                    `https:\/\/your-wordpress-site.com\/wp-json\/wp\/v2\/posts\/${match.params.id}`,\n                );\n                setPost(result.data);\n            };\n            fetchPost();\n        }, [match.params.id]);\n\n        if (!post) return <div>Loading...<\/div>;\n\n        return (\n            <div>\n                <h1>{post.title.rendered}<\/h1>\n                <div __html:=\"\" dangerouslysetinnerhtml=\"{{\" post.content.rendered=\"\" }}=\"\"><\/div>\n            <\/div>\n        );\n    }\n\n    export default Post;\n    <\/code><\/pre>\n<h2>5. \uacb0\ub860<\/h2>\n<p>\ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4\ub294 \ub354 \ub098\uc740 \uc0ac\uc6a9\uc790 \uacbd\ud5d8\uacfc \uc131\ub2a5\uc744 \uc81c\uacf5\ud560 \uc218 \uc788\ub294 \uc720\uc5f0\ud55c \ud574\uacb0\ucc45\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. WP REST API\ub97c \uc774\uc6a9\ud558\uc5ec \ub370\uc774\ud130\ub97c \uc678\ubd80 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0\uc11c \uc694\uccad\ud558\uace0, \ud544\uc694\ud55c \uc7a5\uc18c\uc5d0\uc11c \uc790\uc720\ub86d\uac8c \ub80c\ub354\ub9c1\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub294 \ub3d9\uc801\uc778 \uc6f9\uc0ac\uc774\ud2b8\ub098 \uc571\uc744 \uad6c\ucd95\ud558\ub294 \ub370 \uc788\uc5b4 \uac15\ub825\ud55c \uc7a5\uc810\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \ub610\ud55c, \uc704\uc758 \uc608\uc81c\ub97c \ud1b5\ud574 \uae30\ubcf8\uc801\uc778 \uc124\uc815 \ubc0f \ud234\uc744 \uc774\ud574\ud558\uace0 \ud65c\uc6a9\ud560 \uc218 \uc788\ub294 \uae38\uc7a1\uc774\uac00 \ub418\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<h2>6. \ucd94\uac00 \ub9ac\uc18c\uc2a4<\/h2>\n<ul>\n<li><a href=\"https:\/\/developer.wordpress.org\/rest-api\/\">WP REST API Documentation<\/a><\/li>\n<li><a href=\"https:\/\/reactjs.org\/docs\/getting-started.html\">React Documentation<\/a><\/li>\n<li><a href=\"https:\/\/reactrouter.com\/web\/guides\/quick-start\">React Router Documentation<\/a><\/li>\n<\/ul>\n<footer>\n<p>\u00a9 2024 \ube14\ub85c\uadf8, \ubaa8\ub4e0 \uad8c\ub9ac \ubcf4\uc720.<\/p>\n<\/footer>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uac1c\uc694 \ud604\ub300 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c \ud5e4\ub4dc\ub9ac\uc2a4 CMS(\ucf58\ud150\uce20 \uad00\ub9ac \uc2dc\uc2a4\ud15c)\uc758 \uc0ac\uc6a9\uc774 \uc99d\uac00\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc6cc\ub4dc\ud504\ub808\uc2a4\ub294 \uc774\ub7ec\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 CMS\ub85c\uc11c\uc758 \uac00\ub2a5\uc131\uc744 \uc81c\uacf5\ud558\uae30 \uc704\ud574 WP REST API\ub97c \uc9c0\uc6d0\ud569\ub2c8\ub2e4. WP REST API\ub294 \uac1c\ubc1c\uc790\uac00 \uc6cc\ub4dc\ud504\ub808\uc2a4\ub97c \ubc31\uc5d4\ub4dc\ub85c \uc0ac\uc6a9\ud558\uace0, \ud504\ub860\ud2b8\uc5d4\ub4dc \ud504\ub808\uc784\uc6cc\ud06c(React, Vue.js, Angular \ub4f1)\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc720\uc5f0\ud55c \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\ub97c \uad6c\ud604\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc744 \uc81c\uc2dc\ud569\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/40177\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;24. \uace0\uae09 \uae30\ub2a5 \uad6c\ud604, WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[207],"tags":[],"class_list":["post-40177","post","type-post","status-publish","format-standard","hentry","category-207"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>24. \uace0\uae09 \uae30\ub2a5 \uad6c\ud604, WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/40177\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"24. \uace0\uae09 \uae30\ub2a5 \uad6c\ud604, WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\uac1c\uc694 \ud604\ub300 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c \ud5e4\ub4dc\ub9ac\uc2a4 CMS(\ucf58\ud150\uce20 \uad00\ub9ac \uc2dc\uc2a4\ud15c)\uc758 \uc0ac\uc6a9\uc774 \uc99d\uac00\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc6cc\ub4dc\ud504\ub808\uc2a4\ub294 \uc774\ub7ec\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 CMS\ub85c\uc11c\uc758 \uac00\ub2a5\uc131\uc744 \uc81c\uacf5\ud558\uae30 \uc704\ud574 WP REST API\ub97c \uc9c0\uc6d0\ud569\ub2c8\ub2e4. WP REST API\ub294 \uac1c\ubc1c\uc790\uac00 \uc6cc\ub4dc\ud504\ub808\uc2a4\ub97c \ubc31\uc5d4\ub4dc\ub85c \uc0ac\uc6a9\ud558\uace0, \ud504\ub860\ud2b8\uc5d4\ub4dc \ud504\ub808\uc784\uc6cc\ud06c(React, Vue.js, Angular \ub4f1)\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc720\uc5f0\ud55c \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\ub97c \uad6c\ud604\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc744 \uc81c\uc2dc\ud569\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 &hellip; \ub354 \ubcf4\uae30 &quot;24. \uace0\uae09 \uae30\ub2a5 \uad6c\ud604, WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/40177\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-03T04:12:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:39:52+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/40177\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/40177\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"24. \uace0\uae09 \uae30\ub2a5 \uad6c\ud604, WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604\",\"datePublished\":\"2024-11-03T04:12:02+00:00\",\"dateModified\":\"2024-11-26T06:39:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/40177\/\"},\"wordCount\":88,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"\uc6cc\ub4dc\ud504\ub808\uc2a4\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/40177\/\",\"url\":\"https:\/\/atmokpo.com\/w\/40177\/\",\"name\":\"24. \uace0\uae09 \uae30\ub2a5 \uad6c\ud604, WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-03T04:12:02+00:00\",\"dateModified\":\"2024-11-26T06:39:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/40177\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/40177\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/40177\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"24. \uace0\uae09 \uae30\ub2a5 \uad6c\ud604, WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"24. \uace0\uae09 \uae30\ub2a5 \uad6c\ud604, WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/atmokpo.com\/w\/40177\/","og_locale":"ko_KR","og_type":"article","og_title":"24. \uace0\uae09 \uae30\ub2a5 \uad6c\ud604, WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\uac1c\uc694 \ud604\ub300 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c \ud5e4\ub4dc\ub9ac\uc2a4 CMS(\ucf58\ud150\uce20 \uad00\ub9ac \uc2dc\uc2a4\ud15c)\uc758 \uc0ac\uc6a9\uc774 \uc99d\uac00\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc6cc\ub4dc\ud504\ub808\uc2a4\ub294 \uc774\ub7ec\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 CMS\ub85c\uc11c\uc758 \uac00\ub2a5\uc131\uc744 \uc81c\uacf5\ud558\uae30 \uc704\ud574 WP REST API\ub97c \uc9c0\uc6d0\ud569\ub2c8\ub2e4. WP REST API\ub294 \uac1c\ubc1c\uc790\uac00 \uc6cc\ub4dc\ud504\ub808\uc2a4\ub97c \ubc31\uc5d4\ub4dc\ub85c \uc0ac\uc6a9\ud558\uace0, \ud504\ub860\ud2b8\uc5d4\ub4dc \ud504\ub808\uc784\uc6cc\ud06c(React, Vue.js, Angular \ub4f1)\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc720\uc5f0\ud55c \uc0ac\uc6a9\uc790 \uc778\ud130\ud398\uc774\uc2a4\ub97c \uad6c\ud604\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc744 \uc81c\uc2dc\ud569\ub2c8\ub2e4. \ubcf8 \uae00\uc5d0\uc11c\ub294 WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 &hellip; \ub354 \ubcf4\uae30 \"24. \uace0\uae09 \uae30\ub2a5 \uad6c\ud604, WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604\"","og_url":"https:\/\/atmokpo.com\/w\/40177\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-03T04:12:02+00:00","article_modified_time":"2024-11-26T06:39:52+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/40177\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/40177\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"24. \uace0\uae09 \uae30\ub2a5 \uad6c\ud604, WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604","datePublished":"2024-11-03T04:12:02+00:00","dateModified":"2024-11-26T06:39:52+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/40177\/"},"wordCount":88,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["\uc6cc\ub4dc\ud504\ub808\uc2a4"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/40177\/","url":"https:\/\/atmokpo.com\/w\/40177\/","name":"24. \uace0\uae09 \uae30\ub2a5 \uad6c\ud604, WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-03T04:12:02+00:00","dateModified":"2024-11-26T06:39:52+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/40177\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/40177\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/40177\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"24. \uace0\uae09 \uae30\ub2a5 \uad6c\ud604, WP REST API\ub97c \uc774\uc6a9\ud55c \ud5e4\ub4dc\ub9ac\uc2a4 \uc6cc\ub4dc\ud504\ub808\uc2a4 \uad6c\ud604"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/40177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=40177"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/40177\/revisions"}],"predecessor-version":[{"id":40178,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/40177\/revisions\/40178"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=40177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=40177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=40177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}