{"id":38386,"date":"2024-11-01T17:18:05","date_gmt":"2024-11-01T17:18:05","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38386"},"modified":"2024-11-26T06:44:28","modified_gmt":"2024-11-26T06:44:28","slug":"express-%ea%b0%9c%eb%b0%9c-%ea%b0%95%ec%a2%8c-restful-api%eb%9e%80-%eb%ac%b4%ec%97%87%ec%9d%b8%ea%b0%80-%ec%84%a4%ea%b3%84-%ec%9b%90%ec%b9%99","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38386\/","title":{"rendered":"Express \uac1c\ubc1c \uac15\uc88c, RESTful API\ub780 \ubb34\uc5c7\uc778\uac00  \uc124\uacc4 \uc6d0\uce59"},"content":{"rendered":"<p><body><\/p>\n<p>\ud604\ub300 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c <strong>RESTful API<\/strong>\ub294 \uc11c\ubc84\uc640 \ud074\ub77c\uc774\uc5b8\ud2b8 \uac04\uc758 \uc6d0\ud65c\ud55c \ub370\uc774\ud130 \uc804\uc1a1 \ubc0f \uc0c1\ud638\uc791\uc6a9\uc744 \uc704\ud574 \ud544\uc218\uc801\uc778 \uac1c\ub150\uc785\ub2c8\ub2e4. Express.js\ub294 Node.js \ud658\uacbd\uc5d0\uc11c RESTful API\ub97c \uad6c\ucd95\ud558\uae30 \uc704\ud55c \uac04\ud3b8\ud558\uace0 \uac15\ub825\ud55c \ud504\ub808\uc784\uc6cc\ud06c\ub85c \uc790\ub9ac\uc7a1\uc558\uc2b5\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 RESTful API\uc758 \uac1c\ub150, \uc124\uacc4 \uc6d0\uce59, \uadf8\ub9ac\uace0 Express\ub97c \uc0ac\uc6a9\ud55c \uc608\uc81c \ucf54\ub4dc\ub97c \ud1b5\ud574 \uc774\ub97c \uc774\ud574\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. RESTful API\ub780?<\/h2>\n<p>REST(Representational State Transfer)\ub294 \uc6f9 \uc544\ud0a4\ud14d\ucc98 \uc2a4\ud0c0\uc77c \uc911 \ud558\ub098\ub85c, HTTP \ud504\ub85c\ud1a0\ucf5c\uc744 \uae30\ubc18\uc73c\ub85c \ud569\ub2c8\ub2e4. RESTful API\ub294 \uc774\ub7ec\ud55c REST\uc758 \uc6d0\uce59\uc744 \uc900\uc218\ud558\uc5ec \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84\uac00 \ud1b5\uc2e0\ud558\ub294 \ubc29\uc2dd\uc785\ub2c8\ub2e4. RESTful API\ub97c \uc0ac\uc6a9\ud558\uba74 \ub2e4\uc591\ud55c \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \uc11c\ubc84\uc758 \uc790\uc6d0\uc5d0 \uc811\uadfc\ud558\uace0 \uc0c1\ud638\uc791\uc6a9\ud560 \uc218 \uc788\uc73c\uba70, \uc774 \uc790\uc6d0\uc740 URI(Uniform Resource Identifier)\ub97c \ud1b5\ud574 \uc2dd\ubcc4\ub429\ub2c8\ub2e4.<\/p>\n<h3>1.1. REST\uc758 \uc8fc\uc694 \ud2b9\uc9d5<\/h3>\n<ul>\n<li><strong>\ubb34\uc0c1\ud0dc\uc131(Stateless)<\/strong>: \uac01 \uc694\uccad\uc740 \ub3c5\ub9bd\uc801\uc774\uba70, \uc11c\ubc84\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\uc758 \uc0c1\ud0dc\ub97c \uc800\uc7a5\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\uc790\uc6d0 \uae30\ubc18(Resource-Based)<\/strong>: \uc790\uc6d0\uc740 URI\ub85c \uc2dd\ubcc4\ub418\uba70, HTTP \uba54\uc18c\ub4dc\ub97c \ud1b5\ud574 \uc790\uc6d0\uc5d0 \ub300\ud55c CRUD(Create, Read, Update, Delete) \uc791\uc5c5\uc744 \uc218\ud589\ud569\ub2c8\ub2e4.<\/li>\n<li><strong>\ud45c\ud604(Representation)<\/strong>: \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \ub370\uc774\ud130 \uad50\ud658\uc740 \uc8fc\ub85c JSON, XML \ub4f1\uc758 \ud615\uc2dd\uc73c\ub85c \uc774\ub8e8\uc5b4\uc9d1\ub2c8\ub2e4.<\/li>\n<li><strong>\uce90\uc2dc \uac00\ub2a5(Cacheable)<\/strong>: \uc751\ub2f5\uc740 \uce90\uc2dc \uac00\ub2a5\ud558\ubbc0\ub85c \ud074\ub77c\uc774\uc5b8\ud2b8\ub294 \ub3d9\uc77c\ud55c \uc790\uc6d0\uc5d0 \ub300\ud55c \ud6c4\uc18d \uc694\uccad\uc744 \uc0ad\uc81c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>2. RESTful API\uc758 \uc124\uacc4 \uc6d0\uce59<\/h2>\n<p>RESTful API\ub97c \uc124\uacc4\ud560 \ub54c \uc900\uc218\ud574\uc57c \ud560 \uba87 \uac00\uc9c0 \uc6d0\uce59\uc774 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub294 API\uc758 \uc77c\uad00\uc131\uacfc \uc0ac\uc6a9\uc131\uc744 \ubcf4\uc7a5\ud558\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4.<\/p>\n<h3>2.1. \uc790\uc6d0(URL)\uc758 \uc124\uacc4<\/h3>\n<p>RESTful API\ub294 \uc790\uc6d0 \uc911\uc2ec\uc73c\ub85c \uc124\uacc4\ub418\uc5b4\uc57c \ud558\uba70, \uac01 \uc790\uc6d0\uc740 \uace0\uc720\ud55c URI\ub85c \uc2dd\ubcc4\ub429\ub2c8\ub2e4. URI\ub294 \uc758\ubbf8\ub860\uc801\uc73c\ub85c \uc774\ud574\ud560 \uc218 \uc788\uc5b4\uc57c \ud558\uba70, \ub2e4\uc74c\uacfc \uac19\uc740 \uaddc\uce59\uc744 \ub530\ub985\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\ubcf5\uc218\ud615\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc790\uc6d0\uc744 \ud45c\ud604\ud569\ub2c8\ub2e4: \uc608\ub97c \ub4e4\uc5b4, \uc0ac\uc6a9\uc790\ub97c \ub098\ud0c0\ub0b4\ub294 \uc790\uc6d0\uc740 <code>\/users<\/code>\ub85c \ud45c\ud604\ud569\ub2c8\ub2e4.<\/li>\n<li>\uacc4\uce35\uc801 \uad6c\uc870\ub85c \uc124\uacc4\ud569\ub2c8\ub2e4: \uc790\uc6d0 \uac04\uc758 \uad00\uacc4\ub97c \uace0\ub824\ud558\uc5ec URI\ub97c \uc124\uacc4\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ud2b9\uc815 \uc0ac\uc6a9\uc790\uc758 \ud3ec\uc2a4\ud2b8\ub97c \ub098\ud0c0\ub0b4\ub294 \uc790\uc6d0\uc740 <code>\/users\/:userId\/posts<\/code>\ub85c \ud45c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h3>2.2. HTTP \uba54\uc18c\ub4dc\uc758 \ud65c\uc6a9<\/h3>\n<p>\uc790\uc6d0\uc5d0 \ub300\ud55c \uc791\uc5c5\uc740 \ub2e4\uc74c\uc758 HTTP \uba54\uc18c\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc218\ud589\ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>GET<\/strong>: \uc790\uc6d0 \uc870\ud68c (ex. <code>GET \/users<\/code>)<\/li>\n<li><strong>POST<\/strong>: \uc790\uc6d0 \uc0dd\uc131 (ex. <code>POST \/users<\/code>)<\/li>\n<li><strong>PUT<\/strong>: \uc790\uc6d0 \uc804\uccb4 \uc5c5\ub370\uc774\ud2b8 (ex. <code>PUT \/users\/:userId<\/code>)<\/li>\n<li><strong>PATCH<\/strong>: \uc790\uc6d0 \ubd80\ubd84 \uc5c5\ub370\uc774\ud2b8 (ex. <code>PATCH \/users\/:userId<\/code>)<\/li>\n<li><strong>DELETE<\/strong>: \uc790\uc6d0 \uc0ad\uc81c (ex. <code>DELETE \/users\/:userId<\/code>)<\/li>\n<\/ul>\n<h3>2.3. \uc0c1\ud0dc \ucf54\ub4dc\uc758 \ud65c\uc6a9<\/h3>\n<p>HTTP \uc0c1\ud0dc \ucf54\ub4dc\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uac8c \uc694\uccad \ucc98\ub9ac \uacb0\uacfc\ub97c \uc804\ub2ec\ud558\ub294 \ub370 \ud544\uc694\ud569\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uc790\uc8fc \uc0ac\uc6a9\ub418\ub294 \uc0c1\ud0dc \ucf54\ub4dc\uc785\ub2c8\ub2e4:<\/p>\n<ul>\n<li><code>200 OK<\/code>: \uc131\uacf5\uc801\uc778 \uc694\uccad<\/li>\n<li><code>201 Created<\/code>: \uc790\uc6d0 \uc0dd\uc131 \uc131\uacf5<\/li>\n<li><code>204 No Content<\/code>: \uc694\uccad \uc131\uacf5, \ubc18\ud658\ud560 \ub370\uc774\ud130 \uc5c6\uc74c<\/li>\n<li><code>400 Bad Request<\/code>: \uc798\ubabb\ub41c \uc694\uccad<\/li>\n<li><code>404 Not Found<\/code>: \uc790\uc6d0 \uc5c6\uc74c<\/li>\n<li><code>500 Internal Server Error<\/code>: \uc11c\ubc84 \uc5d0\ub7ec<\/li>\n<\/ul>\n<h3>2.4. \ubc84\uc804 \uad00\ub9ac<\/h3>\n<p>API\uac00 \uc9c4\ud654\ud568\uc5d0 \ub530\ub77c \uae30\uc874\uc758 API\uc640 \ud638\ud658\ub418\uc9c0 \uc54a\ub294 \ubcc0\uacbd\uc774 \uc788\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub530\ub77c\uc11c API \ubc84\uc804\uc744 \uba85\uc2dc\ud558\uc5ec \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \ud2b9\uc815 \ubc84\uc804\uc744 \uc0ac\uc6a9\ud558\ub3c4\ub85d \ud569\ub2c8\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c URL\uc5d0 \ubc84\uc804 \ubc88\ud638\ub97c \ud3ec\ud568\uc2dc\ud0b5\ub2c8\ub2e4:<\/p>\n<pre><code>\/v1\/users<\/code><\/pre>\n<h2>3. Express.js\ub97c \uc774\uc6a9\ud55c RESTful API \uad6c\ucd95<\/h2>\n<p>\uc774\uc81c Express.js\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac04\ub2e8\ud55c RESTful API\ub97c \uad6c\ucd95\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uc608\uc81c\uc5d0\uc11c\ub294 \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uad00\ub9ac\ud558\ub294 API\ub97c \uad6c\ud604\ud569\ub2c8\ub2e4.<\/p>\n<h3>3.1. Express \ud504\ub85c\uc81d\ud2b8 \uc124\uc815<\/h3>\n<p>\uba3c\uc800, Express \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4. Node.js\uac00 \uc124\uce58\ub418\uc5b4 \uc788\uc5b4\uc57c \ud558\uba70, \uc0c8\ub85c\uc6b4 \ud504\ub85c\uc81d\ud2b8\ub97c \ub9cc\ub4e4\uace0 \ud544\uc694\ud55c \ud328\ud0a4\uc9c0\ub97c \uc124\uce58\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>mkdir express-api-example\ncd express-api-example\nnpm init -y\nnpm install express body-parser<\/code><\/pre>\n<h3>3.2. \uae30\ubcf8 \uc11c\ubc84 \uc124\uc815<\/h3>\n<p>\uc544\ub798\uc758 \ucf54\ub4dc\ub85c <code>server.js<\/code> \ud30c\uc77c\uc744 \uc0dd\uc131\ud558\uace0 \uae30\ubcf8 Express \uc11c\ubc84\ub97c \uc124\uc815\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>const express = require('express');\nconst bodyParser = require('body-parser');\n\nconst app = express();\nconst PORT = 3000;\n\n\/\/ Middleware\napp.use(bodyParser.json());\n\n\/\/ \uae30\ubcf8 \ub77c\uc6b0\ud130\napp.get('\/', (req, res) =&gt; {\n    res.send('Welcome to the Express RESTful API!');\n});\n\n\/\/ \uc11c\ubc84 \uc2e4\ud589\napp.listen(PORT, () =&gt; {\n    console.log(`Server is running on http:\/\/localhost:${PORT}`);\n});<\/code><\/pre>\n<h3>3.3. RESTful API \uc5d4\ub4dc\ud3ec\uc778\ud2b8 \uc0dd\uc131<\/h3>\n<p>\uc774\uc81c \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uad00\ub9ac\ud558\uae30 \uc704\ud55c CRUD \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \ucd94\uac00\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>\n\/\/ \uac00\uc0c1\uc758 \uc0ac\uc6a9\uc790 \ub370\uc774\ud130\ub97c \uc800\uc7a5\ud558\uae30 \uc704\ud55c \ubc30\uc5f4\nlet users = [];\n\n\/\/ GET: \uc0ac\uc6a9\uc790 \ubaa9\ub85d \uc870\ud68c\napp.get('\/users', (req, res) =&gt; {\n    res.json(users);\n});\n\n\/\/ GET: \ud2b9\uc815 \uc0ac\uc6a9\uc790 \uc870\ud68c\napp.get('\/users\/:userId', (req, res) =&gt; {\n    const user = users.find(u =&gt; u.id === parseInt(req.params.userId));\n    if (!user) return res.status(404).send('User not found');\n    res.json(user);\n});\n\n\/\/ POST: \uc0ac\uc6a9\uc790 \ucd94\uac00\napp.post('\/users', (req, res) =&gt; {\n    const user = {\n        id: users.length + 1,\n        name: req.body.name,\n        email: req.body.email\n    };\n    users.push(user);\n    res.status(201).json(user);\n});\n\n\/\/ PUT: \uc0ac\uc6a9\uc790 \uc815\ubcf4 \uc218\uc815\napp.put('\/users\/:userId', (req, res) =&gt; {\n    let user = users.find(u =&gt; u.id === parseInt(req.params.userId));\n    if (!user) return res.status(404).send('User not found');\n    \n    user.name = req.body.name;\n    user.email = req.body.email;\n    res.json(user);\n});\n\n\/\/ DELETE: \uc0ac\uc6a9\uc790 \uc0ad\uc81c\napp.delete('\/users\/:userId', (req, res) =&gt; {\n    users = users.filter(u =&gt; u.id !== parseInt(req.params.userId));\n    res.status(204).send();\n});<\/code><\/pre>\n<h3>3.4. \uc11c\ubc84 \uc2e4\ud589 \ubc0f \ud14c\uc2a4\ud2b8<\/h3>\n<p>\uc11c\ubc84\ub97c \uc2e4\ud589\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>node server.js<\/code><\/pre>\n<p>\ube0c\ub77c\uc6b0\uc800\ub098 Postman\uacfc \uac19\uc740 API \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \ud14c\uc2a4\ud2b8\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>4. API \ubb38\uc11c\ud654<\/h2>\n<p>RESTful API\ub97c \uac1c\ubc1c\ud55c \ud6c4\uc5d0\ub294 \ubb38\uc11c\ud654\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. \ubb38\uc11c\ud654\ub294 API \uc0ac\uc6a9\uc790\uac00 API\ub97c \uc27d\uac8c \uc774\ud574\ud558\uace0 \uc0ac\uc6a9\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4. Swagger, Postman\uacfc \uac19\uc740 \ub3c4\uad6c\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc27d\uac8c \ubb38\uc11c\ud654\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. Swagger UI\ub97c \uc0ac\uc6a9\ud558\uba74 API \ubb38\uc11c\ub97c \uc2dc\uac01\uc801\uc73c\ub85c \uc791\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>5. \uacb0\ub860<\/h2>\n<p>\uc774\ubc88 \uae00\uc5d0\uc11c\ub294 Express.js\ub97c \uc0ac\uc6a9\ud55c RESTful API\uc758 \uac1c\ub150\uacfc \uc124\uacc4 \uc6d0\uce59\uc744 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. RESTful API\ub294 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \ud544\uc218\uc801\uc778 \ubd80\ubd84\uc774\uba70, Express.js\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac04\ub2e8\ud558\uace0 \ud6a8\uc728\uc801\uc73c\ub85c \uad6c\ucd95\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc124\uacc4 \uc6d0\uce59\uc744 \uc9c0\ud0b4\uc73c\ub85c\uc368 \uc0ac\uc6a9\uc790\ub294 API\ub97c \ub354\uc6b1 \uc27d\uac8c \ud65c\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uc6d0\uce59\uc744 \ubc14\ud0d5\uc73c\ub85c \uc5ec\ub7ec\ubd84\uc758 \ud504\ub85c\uc81d\ud2b8\uc5d0 \uc801\ud569\ud55c RESTful API\ub97c \uad6c\ucd95\ud574 \ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<h2>6. \ucc38\uace0 \uc790\ub8cc<\/h2>\n<ul>\n<li><a href=\"https:\/\/expressjs.com\/en\/starter\/installing.html\">Express.js \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<li><a href=\"https:\/\/restfulapi.net\/\">RESTful API \uac1c\ub150 \uc774\ud574\ud558\uae30<\/a><\/li>\n<li><a href=\"https:\/\/swagger.io\/\">Swagger API \ubb38\uc11c\ud654 \ub3c4\uad6c<\/a><\/li>\n<\/ul>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud604\ub300 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c RESTful API\ub294 \uc11c\ubc84\uc640 \ud074\ub77c\uc774\uc5b8\ud2b8 \uac04\uc758 \uc6d0\ud65c\ud55c \ub370\uc774\ud130 \uc804\uc1a1 \ubc0f \uc0c1\ud638\uc791\uc6a9\uc744 \uc704\ud574 \ud544\uc218\uc801\uc778 \uac1c\ub150\uc785\ub2c8\ub2e4. Express.js\ub294 Node.js \ud658\uacbd\uc5d0\uc11c RESTful API\ub97c \uad6c\ucd95\ud558\uae30 \uc704\ud55c \uac04\ud3b8\ud558\uace0 \uac15\ub825\ud55c \ud504\ub808\uc784\uc6cc\ud06c\ub85c \uc790\ub9ac\uc7a1\uc558\uc2b5\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 RESTful API\uc758 \uac1c\ub150, \uc124\uacc4 \uc6d0\uce59, \uadf8\ub9ac\uace0 Express\ub97c \uc0ac\uc6a9\ud55c \uc608\uc81c \ucf54\ub4dc\ub97c \ud1b5\ud574 \uc774\ub97c \uc774\ud574\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. RESTful API\ub780? REST(Representational State Transfer)\ub294 \uc6f9 \uc544\ud0a4\ud14d\ucc98 \uc2a4\ud0c0\uc77c \uc911 \ud558\ub098\ub85c, HTTP &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38386\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;Express \uac1c\ubc1c \uac15\uc88c, RESTful API\ub780 \ubb34\uc5c7\uc778\uac00  \uc124\uacc4 \uc6d0\uce59&#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":[181],"tags":[],"class_list":["post-38386","post","type-post","status-publish","format-standard","hentry","category-express"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Express \uac1c\ubc1c \uac15\uc88c, RESTful API\ub780 \ubb34\uc5c7\uc778\uac00 \uc124\uacc4 \uc6d0\uce59 - \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\/38386\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Express \uac1c\ubc1c \uac15\uc88c, RESTful API\ub780 \ubb34\uc5c7\uc778\uac00 \uc124\uacc4 \uc6d0\uce59 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ud604\ub300 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c RESTful API\ub294 \uc11c\ubc84\uc640 \ud074\ub77c\uc774\uc5b8\ud2b8 \uac04\uc758 \uc6d0\ud65c\ud55c \ub370\uc774\ud130 \uc804\uc1a1 \ubc0f \uc0c1\ud638\uc791\uc6a9\uc744 \uc704\ud574 \ud544\uc218\uc801\uc778 \uac1c\ub150\uc785\ub2c8\ub2e4. Express.js\ub294 Node.js \ud658\uacbd\uc5d0\uc11c RESTful API\ub97c \uad6c\ucd95\ud558\uae30 \uc704\ud55c \uac04\ud3b8\ud558\uace0 \uac15\ub825\ud55c \ud504\ub808\uc784\uc6cc\ud06c\ub85c \uc790\ub9ac\uc7a1\uc558\uc2b5\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 RESTful API\uc758 \uac1c\ub150, \uc124\uacc4 \uc6d0\uce59, \uadf8\ub9ac\uace0 Express\ub97c \uc0ac\uc6a9\ud55c \uc608\uc81c \ucf54\ub4dc\ub97c \ud1b5\ud574 \uc774\ub97c \uc774\ud574\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. RESTful API\ub780? REST(Representational State Transfer)\ub294 \uc6f9 \uc544\ud0a4\ud14d\ucc98 \uc2a4\ud0c0\uc77c \uc911 \ud558\ub098\ub85c, HTTP &hellip; \ub354 \ubcf4\uae30 &quot;Express \uac1c\ubc1c \uac15\uc88c, RESTful API\ub780 \ubb34\uc5c7\uc778\uac00 \uc124\uacc4 \uc6d0\uce59&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38386\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T17:18:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:28+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=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/38386\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38386\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"Express \uac1c\ubc1c \uac15\uc88c, RESTful API\ub780 \ubb34\uc5c7\uc778\uac00 \uc124\uacc4 \uc6d0\uce59\",\"datePublished\":\"2024-11-01T17:18:05+00:00\",\"dateModified\":\"2024-11-26T06:44:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38386\/\"},\"wordCount\":118,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"Express\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38386\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38386\/\",\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, RESTful API\ub780 \ubb34\uc5c7\uc778\uac00 \uc124\uacc4 \uc6d0\uce59 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T17:18:05+00:00\",\"dateModified\":\"2024-11-26T06:44:28+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38386\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38386\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38386\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Express \uac1c\ubc1c \uac15\uc88c, RESTful API\ub780 \ubb34\uc5c7\uc778\uac00 \uc124\uacc4 \uc6d0\uce59\"}]},{\"@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":"Express \uac1c\ubc1c \uac15\uc88c, RESTful API\ub780 \ubb34\uc5c7\uc778\uac00 \uc124\uacc4 \uc6d0\uce59 - \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\/38386\/","og_locale":"ko_KR","og_type":"article","og_title":"Express \uac1c\ubc1c \uac15\uc88c, RESTful API\ub780 \ubb34\uc5c7\uc778\uac00 \uc124\uacc4 \uc6d0\uce59 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ud604\ub300 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c RESTful API\ub294 \uc11c\ubc84\uc640 \ud074\ub77c\uc774\uc5b8\ud2b8 \uac04\uc758 \uc6d0\ud65c\ud55c \ub370\uc774\ud130 \uc804\uc1a1 \ubc0f \uc0c1\ud638\uc791\uc6a9\uc744 \uc704\ud574 \ud544\uc218\uc801\uc778 \uac1c\ub150\uc785\ub2c8\ub2e4. Express.js\ub294 Node.js \ud658\uacbd\uc5d0\uc11c RESTful API\ub97c \uad6c\ucd95\ud558\uae30 \uc704\ud55c \uac04\ud3b8\ud558\uace0 \uac15\ub825\ud55c \ud504\ub808\uc784\uc6cc\ud06c\ub85c \uc790\ub9ac\uc7a1\uc558\uc2b5\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 RESTful API\uc758 \uac1c\ub150, \uc124\uacc4 \uc6d0\uce59, \uadf8\ub9ac\uace0 Express\ub97c \uc0ac\uc6a9\ud55c \uc608\uc81c \ucf54\ub4dc\ub97c \ud1b5\ud574 \uc774\ub97c \uc774\ud574\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. RESTful API\ub780? REST(Representational State Transfer)\ub294 \uc6f9 \uc544\ud0a4\ud14d\ucc98 \uc2a4\ud0c0\uc77c \uc911 \ud558\ub098\ub85c, HTTP &hellip; \ub354 \ubcf4\uae30 \"Express \uac1c\ubc1c \uac15\uc88c, RESTful API\ub780 \ubb34\uc5c7\uc778\uac00 \uc124\uacc4 \uc6d0\uce59\"","og_url":"https:\/\/atmokpo.com\/w\/38386\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T17:18:05+00:00","article_modified_time":"2024-11-26T06:44:28+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":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/38386\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38386\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"Express \uac1c\ubc1c \uac15\uc88c, RESTful API\ub780 \ubb34\uc5c7\uc778\uac00 \uc124\uacc4 \uc6d0\uce59","datePublished":"2024-11-01T17:18:05+00:00","dateModified":"2024-11-26T06:44:28+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38386\/"},"wordCount":118,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["Express\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38386\/","url":"https:\/\/atmokpo.com\/w\/38386\/","name":"Express \uac1c\ubc1c \uac15\uc88c, RESTful API\ub780 \ubb34\uc5c7\uc778\uac00 \uc124\uacc4 \uc6d0\uce59 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T17:18:05+00:00","dateModified":"2024-11-26T06:44:28+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38386\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38386\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38386\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"Express \uac1c\ubc1c \uac15\uc88c, RESTful API\ub780 \ubb34\uc5c7\uc778\uac00 \uc124\uacc4 \uc6d0\uce59"}]},{"@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\/38386","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=38386"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38386\/revisions"}],"predecessor-version":[{"id":38387,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38386\/revisions\/38387"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}