{"id":897,"date":"2026-05-20T09:53:36","date_gmt":"2026-05-20T01:53:36","guid":{"rendered":"https:\/\/junai.ai\/blog\/nodejs-json-api-15\/"},"modified":"2026-05-20T09:53:36","modified_gmt":"2026-05-20T01:53:36","slug":"nodejs-json-api-15","status":"publish","type":"post","link":"https:\/\/junai.ai\/blog\/nodejs-json-api-15\/","title":{"rendered":"JSON API \ub9cc\ub4e4\uae30 \u2014 REST \uc124\uacc4\uc640 CRUD"},"content":{"rendered":"\n<!-- WordPress REST API \ubc1c\ud589\uc6a9 HTML (\uc790\ub3d9 \uc0dd\uc131) -->\n<!-- WP-FEATURED-MEDIA-ID: 842 -->\n<div style=\"max-width:800px;margin:0 auto;\">\n<style>\n:root {--color-primary:#059669;--color-accent:#10b981;--color-bg:#fafbfc;--color-bg-card:#fff;--color-text:#1a202c;--color-text-muted:#64748b;--hero-start:#064e3b;--hero-end:#059669;}\n*{box-sizing:border-box;}\n.container{max-width:760px;margin:0 auto;padding:0 24px 80px;}\n.hero{background:linear-gradient(135deg,var(--hero-start) 0%,var(--hero-end) 100%);color:#fff;padding:80px 24px 60px;text-align:center;}\n.hero .eyebrow{display:inline-block;font-size:14px;color:#6ee7b7;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;margin-bottom:14px;}\n.hero h1{font-size:36px;margin:0 0 16px;line-height:1.3;font-weight:800;}\n.hero p{color:#d1fae5;font-size:18px;max-width:640px;margin:0 auto;line-height:1.6;}\n.hero img{width:100%;max-width:640px;height:auto;margin:32px auto 0;border-radius:10px;display:block;}\narticle{padding-top:48px;}\narticle h2{font-size:26px;margin:56px 0 20px;padding-left:14px;border-left:5px solid var(--color-accent);line-height:1.4;}\narticle h3{font-size:19px;margin:32px 0 12px;color:var(--color-primary);}\narticle p{margin:16px 0;}\narticle strong{color:var(--color-primary);font-weight:700;}\narticle code{background:#d1fae5;padding:2px 8px;border-radius:4px;font-family:'SF Mono',Menlo,Consolas,monospace;font-size:14px;color:#065f46;}\n.databox{background:#d1fae5;border-left:4px solid var(--color-accent);padding:16px 20px;margin:24px 0;border-radius:0 8px 8px 0;font-size:15.5px;}\n.databox strong{color:var(--color-primary);}\n.warnbox{background:linear-gradient(135deg,#fef3c7 0%,#fde68a 100%);padding:16px 20px;margin:24px 0;border-radius:8px;font-size:15.5px;}\n.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:22px 0;}\ntable{width:100%;border-collapse:collapse;font-size:15px;background:var(--color-bg-card);}\nth,td{padding:11px 12px;text-align:left;border-bottom:1px solid #e2e8f0;vertical-align:top;}\nth{background:#f1f5f9;font-weight:700;color:#0f172a;}\ntd:first-child,th:first-child{font-weight:700;}\n@media (max-width:560px){.tablewrap table,.tablewrap thead,.tablewrap tbody,.tablewrap tr,.tablewrap th,.tablewrap td{display:block;width:auto;}.tablewrap thead{display:none;}.tablewrap tr{margin:0 0 14px;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;}.tablewrap td{border:none;border-bottom:1px solid #f1f5f9;padding:9px 14px;}.tablewrap td:first-child{background:#f1f5f9;font-weight:800;font-size:15.5px;}.tablewrap td:last-child{border-bottom:none;}.tablewrap td[data-label]::before{content:attr(data-label) \" \u2014 \";font-weight:700;color:var(--color-primary);}}\n.code-block{background:#0f172a;color:#e2e8f0;padding:16px 20px;border-radius:8px;font-family:'SF Mono',Menlo,Consolas,monospace;font-size:14px;line-height:1.6;margin:20px 0;overflow-x:auto;white-space:pre;}\n.cta{background:linear-gradient(135deg,#059669 0%,#10b981 100%);color:#fff;padding:28px 24px;border-radius:12px;margin:48px 0 0;text-align:center;}\n.cta h3{color:#fff;margin:0 0 8px;font-size:20px;}\n.cta p{color:#d1fae5;margin:0;font-size:15.5px;}\n.footer-nav{margin-top:32px;padding-top:20px;border-top:1px solid #e2e8f0;font-size:14px;color:var(--color-text-muted);}\n.footer-nav a{color:var(--color-primary);text-decoration:none;}\n@media (max-width:480px){.hero h1{font-size:26px;}.hero p{font-size:16px;}article h2{font-size:21px;}article h3{font-size:17px;}body{font-size:16px;}}\n<\/style>\n<section class=\"hero\">\n  <span class=\"eyebrow\">Node.js \uad50\uc7ac \u00b7 15\ud3b8 \u00b7 REST API<\/span>\n  <h1>JSON API \ub9cc\ub4e4\uae30 \u2014 REST \uc124\uacc4\uc640 CRUD<\/h1>\n  <p>13\u00b714\ud3b8 \uc704\uc5d0 \ud45c\uc900 REST \uaddc\uc57d\uc744 \uc5b9\uc5b4 \uc9c4\uc9dc API \ub2e4\uc6b4 API.<\/p>\n  <img decoding=\"async\" src=\"https:\/\/junai.ai\/blog\/wp-content\/uploads\/2026\/05\/hero-5-75.jpg\" alt=\"REST API \uc5d4\ub4dc\ud3ec\uc778\ud2b8\uc640 CRUD \ucee8\uc149 \uc77c\ub7ec\uc2a4\ud2b8\">\n<\/section>\n\n<div class=\"container\">\n<article>\n\n<p>Express \ub85c \ub77c\uc6b0\ud2b8\ub294 \ub9cc\ub4e4 \uc904 \uc548\ub2e4. \uadf8\ub7f0\ub370 \uc5b4\ub5a4 \uacbd\ub85c\uba85\uc744 \uc4f0\uace0, \uc5b4\ub5a4 status \ub97c \ub3cc\ub824\uc8fc\uace0, \uc5b4\ub5a4 \uc751\ub2f5 \ubaa8\uc591\uc774 \ud45c\uc900\uc778\uac00 \u2014 \ud68c\uc0ac\u00b7\ud300\ub9c8\ub2e4 \ub2ec\ub77c\uc11c \uc77c\uad00\uc131\uc774 \uc548 \ub098\uc624\uba74 \ud504\ub860\ud2b8\uc5d4\ub4dc \uac1c\ubc1c\uc790\uac00 \ub9e4\ubc88 \ubb3b\ub294\ub2e4. \ub2f5\uc774 <strong>REST<\/strong>.<\/p>\n\n<p>REST \ub294 \uac70\ucc3d\ud55c \uc774\ub860\uc774\uc9c0\ub9cc \uc2e4\uc804\uc5d0\uc120 5~6\uac00\uc9c0 \uaddc\uc57d\ub9cc \uc9c0\ud0a4\uba74 90% \uc758 \uac00\uce58\uac00 \ub098\uc628\ub2e4. \uc774\ubc88 \ud3b8\uc774 \uadf8 \ud575\uc2ec.<\/p>\n\n<h2>1. \ub9ac\uc18c\uc2a4 \uba85\uc0ac + HTTP \uba54\uc11c\ub4dc \ub3d9\uc0ac<\/h2>\n\n<p>REST \uc758 \uccab \ubc88\uc9f8 \uc6d0\uce59. <strong>URL \uc740 \uba85\uc0ac, \ub3d9\uc0ac\ub294 HTTP \uba54\uc11c\ub4dc<\/strong>.<\/p>\n\n<div class=\"tablewrap\">\n<table>\n<thead><tr><th>\uc758\ub3c4<\/th><th>RESTful<\/th><th>\uc548\ud2f0\ud328\ud134<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>\uae00 \ubaa9\ub85d<\/td><td data-label=\"REST\"><code>GET \/posts<\/code><\/td><td data-label=\"\uc548\ud2f0\"><code>GET \/getAllPosts<\/code><\/td><\/tr>\n<tr><td>\uae00 \ud55c \uac1c<\/td><td data-label=\"REST\"><code>GET \/posts\/:id<\/code><\/td><td data-label=\"\uc548\ud2f0\"><code>GET \/getPostById<\/code><\/td><\/tr>\n<tr><td>\uc0c8 \uae00<\/td><td data-label=\"REST\"><code>POST \/posts<\/code><\/td><td data-label=\"\uc548\ud2f0\"><code>POST \/createPost<\/code><\/td><\/tr>\n<tr><td>\uae00 \uc218\uc815<\/td><td data-label=\"REST\"><code>PUT \/posts\/:id<\/code><\/td><td data-label=\"\uc548\ud2f0\"><code>POST \/updatePost<\/code><\/td><\/tr>\n<tr><td>\uae00 \uc0ad\uc81c<\/td><td data-label=\"REST\"><code>DELETE \/posts\/:id<\/code><\/td><td data-label=\"\uc548\ud2f0\"><code>POST \/deletePost<\/code><\/td><\/tr>\n<tr><td>\ub313\uae00 \ubaa9\ub85d<\/td><td data-label=\"REST\"><code>GET \/posts\/:id\/comments<\/code><\/td><td data-label=\"\uc548\ud2f0\"><code>GET \/getCommentsOfPost<\/code><\/td><\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n\n<p>\uc911\ucca9 \ub9ac\uc18c\uc2a4\ub3c4 \uac19\uc740 \uaddc\uce59 \u2014 <code>\/posts\/:id\/comments<\/code>. <strong>\ubcf5\uc218\ud615<\/strong>\uc744 \uc77c\uad00\ub418\uac8c (<code>\/post<\/code> X, <code>\/posts<\/code> O). \ub3d9\uc791\uc740 URL \uc5d0 \uc801\uc9c0 \ub9d0\uace0 \uba54\uc11c\ub4dc\ub85c.<\/p>\n\n<h2>2. status \ucf54\ub4dc \u2014 5\uac00\uc9c0\uba74 \ucda9\ubd84<\/h2>\n\n<p>HTTP status \uac00 70\uc5ec \uac1c \uc788\uc9c0\ub9cc \uc77c\uc0c1\uc5d0\uc120 6~7 \uac1c\ub9cc \uc4f4\ub2e4.<\/p>\n\n<div class=\"tablewrap\">\n<table>\n<thead><tr><th>\ucf54\ub4dc<\/th><th>\uc758\ubbf8<\/th><th>\uc5b8\uc81c<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>200 OK<\/td><td data-label=\"\uc758\ubbf8\">\uc131\uacf5<\/td><td data-label=\"\uc5b8\uc81c\">GET\u00b7PUT\u00b7PATCH \uc131\uacf5<\/td><\/tr>\n<tr><td>201 Created<\/td><td data-label=\"\uc758\ubbf8\">\uc0dd\uc131\ub428<\/td><td data-label=\"\uc5b8\uc81c\">POST \uc131\uacf5 (\uc0c8 \ub9ac\uc18c\uc2a4 \uc0dd\uc131)<\/td><\/tr>\n<tr><td>204 No Content<\/td><td data-label=\"\uc758\ubbf8\">\uc131\uacf5, \ubcf8\ubb38 \uc5c6\uc74c<\/td><td data-label=\"\uc5b8\uc81c\">DELETE \uc131\uacf5<\/td><\/tr>\n<tr><td>400 Bad Request<\/td><td data-label=\"\uc758\ubbf8\">\uc785\ub825 \uc798\ubabb<\/td><td data-label=\"\uc5b8\uc81c\">\uac80\uc99d \uc2e4\ud328<\/td><\/tr>\n<tr><td>401 Unauthorized<\/td><td data-label=\"\uc758\ubbf8\">\ub85c\uadf8\uc778 \ud544\uc694<\/td><td data-label=\"\uc5b8\uc81c\">\uc778\uc99d \ud1a0\ud070 \uc5c6\uc74c<\/td><\/tr>\n<tr><td>403 Forbidden<\/td><td data-label=\"\uc758\ubbf8\">\uad8c\ud55c \uc5c6\uc74c<\/td><td data-label=\"\uc5b8\uc81c\">\ub85c\uadf8\uc778\uc740 \ub410\uc9c0\ub9cc \uc811\uadfc \ubd88\uac00<\/td><\/tr>\n<tr><td>404 Not Found<\/td><td data-label=\"\uc758\ubbf8\">\uc5c6\uc74c<\/td><td data-label=\"\uc5b8\uc81c\">\ub9ac\uc18c\uc2a4 \uc5c6\uc74c<\/td><\/tr>\n<tr><td>500 Internal<\/td><td data-label=\"\uc758\ubbf8\">\uc11c\ubc84 \uc5d0\ub7ec<\/td><td data-label=\"\uc5b8\uc81c\">\uc608\uc0c1 \ubabb\ud55c \uc608\uc678<\/td><\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n\n<p>\uac00\uc7a5 \uc790\uc8fc \ud5f7\uac08\ub9ac\ub294 \uac8c <strong>401 vs 403<\/strong>. 401 = &#8220;\ub2f9\uc2e0 \ub204\uad6c?&#8221; (\uc778\uc99d \uc548 \ub428), 403 = &#8220;\ub2f9\uc2e0\uc740 \uc54c\uc9c0\ub9cc \uad8c\ud55c \uc5c6\uc74c&#8221; (\uc778\uc99d\uc740 \ub410\ub294\ub370 \uad8c\ud55c \ubd80\uc871).<\/p>\n\n<h2>3. \ud45c\uc900 \uc751\ub2f5 \ubaa8\uc591 \u2014 \uc77c\uad00\uc131<\/h2>\n\n<p>\uc751\ub2f5 JSON \uc758 \ubaa8\uc591\uc774 \ub9e4\ubc88 \ub2e4\ub974\uba74 \ud504\ub860\ud2b8\uac00 \uc8fd\ub294\ub2e4. \ud55c \ud504\ub85c\uc81d\ud2b8 \uc548\uc5d0\uc120 \ubb34\uc870\uac74 \ud1b5\uc77c.<\/p>\n\n<div class=\"code-block\">\/\/ \ub2e8\uc77c \ub9ac\uc18c\uc2a4\n{ &#8220;id&#8221;: &#8220;abc&#8221;, &#8220;title&#8221;: &#8220;\uc548\ub155&#8221;, &#8220;body&#8221;: &#8220;&#8230;&#8221; }\n\n\/\/ \ubaa9\ub85d (\ud398\uc774\uc9c0\ub124\uc774\uc158 \ud3ec\ud568)\n{\n  &#8220;data&#8221;: [&#8230;],\n  &#8220;page&#8221;: 1,\n  &#8220;perPage&#8221;: 20,\n  &#8220;total&#8221;: 137,\n  &#8220;hasNext&#8221;: true\n}\n\n\/\/ \uc5d0\ub7ec\n{\n  &#8220;error&#8221;: {\n    &#8220;code&#8221;: &#8220;VALIDATION_FAILED&#8221;,\n    &#8220;message&#8221;: &#8220;\uc81c\ubaa9\uc740 2\uc790 \uc774\uc0c1&#8221;,\n    &#8220;details&#8221;: { &#8220;title&#8221;: [&#8220;too short&#8221;] }\n  }\n}<\/div>\n\n<p>\ud2b9\ud788 \uc5d0\ub7ec \ubaa8\uc591\uc740 \uac15\ub825\ud788 \uaddc\uc57d\ud654 \u2014 \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 <code>err.error.code<\/code> \ub9cc \uac80\uc0ac\ud558\uba74 \ubd84\uae30 \uac00\ub2a5. \ud55c\uae00 \uba54\uc2dc\uc9c0\ub294 <code>message<\/code>, \ud504\ub85c\uadf8\ub7a8 \ubd84\uae30\uc6a9 \ud0a4\ub294 <code>code<\/code> (\uc601\ubb38 enum).<\/p>\n\n<h2>4. \ud398\uc774\uc9c0\ub124\uc774\uc158\u00b7\ud544\ud130\u00b7\uc815\ub82c \u2014 \ucffc\ub9ac \ud45c\uc900<\/h2>\n\n<p>\ubaa9\ub85d API \uc758 3\ub300 \uce5c\uad6c. <strong>\ucffc\ub9ac \ud30c\ub77c\ubbf8\ud130<\/strong>\ub85c.<\/p>\n\n<div class=\"code-block\">\/\/ \ud074\ub77c\uc774\uc5b8\ud2b8 \ud638\ucd9c\nGET \/posts?page=2&#038;perPage=20&#038;author=jspark&#038;sort=-createdAt\n\n\/\/ \uc11c\ubc84\nrouter.get(&#8216;\/posts&#8217;, async (req, res) =&gt; {\n  const page = Math.max(1, Number(req.query.page) || 1);\n  const perPage = Math.min(50, Number(req.query.perPage) || 20);\n  const skip = (page &#8211; 1) * perPage;\n\n  const where = {};\n  if (req.query.author) where.author = req.query.author;\n\n  \/\/ sort: \uc55e\uc5d0 &#8211; \uba74 desc, \uc544\ub2c8\uba74 asc\n  const sortKey = (req.query.sort || &#8216;-createdAt&#8217;).replace(\/^-\/, &#8221;);\n  const sortDir = String(req.query.sort).startsWith(&#8216;-&#8216;) ? -1 : 1;\n\n  const [items, total] = await Promise.all([\n    db.posts.find(where).sort({ [sortKey]: sortDir }).skip(skip).limit(perPage),\n    db.posts.count(where),\n  ]);\n\n  res.json({ data: items, page, perPage, total, hasNext: skip + items.length &lt; total });\n});<\/div>\n\n<p>\uad00\ub840 \u2014 <code>page<\/code>\u00b7<code>perPage<\/code> (offset \ud398\uc774\uc9c0\ub124\uc774\uc158) \ub610\ub294 <code>cursor<\/code> (\ucee4\uc11c \uae30\ubc18, \ud070 \ub370\uc774\ud130\uc14b). \uc815\ub82c prefix <code>-<\/code> \ub294 GitHub\/Stripe \uac00 \uc4f0\ub294 \ud45c\uc900 \ud328\ud134.<\/p>\n\n<div class=\"warnbox\">\n<strong>perPage \uc0c1\ud55c \ud544\uc218<\/strong> \u2014 <code>?perPage=1000000<\/code> \uc73c\ub85c DB \uc640 \uba54\ubaa8\ub9ac\ub97c \ubb34\ub98e \uafc7\ub9ac\ub294 \uacf5\uaca9\uc774 \ud754\ud558\ub2e4. \ubc18\ub4dc\uc2dc <code>Math.min(50, ...)<\/code> \uac19\uc740 \uc0c1\ud55c. \uc548 \uadf8\ub7ec\uba74 DoS.\n<\/div>\n\n<h2>5. \uc644\uc804\ud55c CRUD \uc608 \u2014 posts \ub9ac\uc18c\uc2a4<\/h2>\n\n<div class=\"code-block\">\/\/ routes\/posts.js\nimport { Router } from &#8216;express&#8217;;\nimport { z } from &#8216;zod&#8217;;\nconst router = Router();\n\nconst PostSchema = z.object({\n  title: z.string().min(2).max(100),\n  body:  z.string().min(10),\n});\n\n\/\/ GET \/posts \u2014 \ubaa9\ub85d\nrouter.get(&#8216;\/&#8217;, async (req, res) =&gt; {\n  const posts = await db.posts.findMany();\n  res.json({ data: posts });\n});\n\n\/\/ GET \/posts\/:id \u2014 \ub2e8\uc77c\nrouter.get(&#8216;\/:id&#8217;, async (req, res) =&gt; {\n  const post = await db.posts.findUnique({ where: { id: req.params.id } });\n  if (!post) return res.status(404).json({ error: { code: &#8216;NOT_FOUND&#8217; } });\n  res.json(post);\n});\n\n\/\/ POST \/posts \u2014 \uc0dd\uc131\nrouter.post(&#8216;\/&#8217;, requireAuth, async (req, res) =&gt; {\n  const parsed = PostSchema.safeParse(req.body);\n  if (!parsed.success) {\n    return res.status(400).json({\n      error: { code: &#8216;VALIDATION_FAILED&#8217;, details: parsed.error.flatten() },\n    });\n  }\n  const post = await db.posts.create({ data: { &#8230;parsed.data, authorId: req.user.id } });\n  res.status(201).json(post);\n});\n\n\/\/ PUT \/posts\/:id \u2014 \uc218\uc815\nrouter.put(&#8216;\/:id&#8217;, requireAuth, requireOwner, async (req, res) =&gt; {\n  const parsed = PostSchema.safeParse(req.body);\n  if (!parsed.success) return res.status(400).json({ error: parsed.error.flatten() });\n  const post = await db.posts.update({ where: { id: req.params.id }, data: parsed.data });\n  res.json(post);\n});\n\n\/\/ DELETE \/posts\/:id \u2014 \uc0ad\uc81c\nrouter.delete(&#8216;\/:id&#8217;, requireAuth, requireOwner, async (req, res) =&gt; {\n  await db.posts.delete({ where: { id: req.params.id } });\n  res.status(204).end();\n});\n\nexport default router;<\/div>\n\n<p>\uc774 \ud55c \ud30c\uc77c\uc774 \ud45c\uc900 REST \ub9ac\uc18c\uc2a4\uc758 \ubaa8\ubc94. <strong>\uac80\uc99d(Zod)<\/strong>\u00b7<strong>\uc778\uc99d(requireAuth)<\/strong>\u00b7<strong>\uc18c\uc720\uad8c \ud655\uc778(requireOwner)<\/strong>\u00b7<strong>\uc801\uc808\ud55c status \ucf54\ub4dc<\/strong>\u00b7<strong>\uc77c\uad00\ub41c \uc751\ub2f5 \ubaa8\uc591<\/strong> \ub2e4\uc12f\uc774 \ubaa8\ub450 \ub4e4\uc5b4\uc788\ub2e4. 14\ud3b8\uc758 \ubbf8\ub4e4\uc6e8\uc5b4 \ud328\ud134 \uc751\uc6a9.<\/p>\n\n<h3>\uc694\uc57d \u2014 15\ud3b8 \uc88c\ud45c<\/h3>\n\n<p>\uc5ec\uae30\uae4c\uc9c0 \uc815\ub9ac. REST \uc758 5\uaddc\uce59 \u2014 <strong>URL \uc740 \uba85\uc0ac\u00b7\uba54\uc11c\ub4dc\ub294 \ub3d9\uc0ac<\/strong>, <strong>\ubcf5\uc218\ud615 \uc77c\uad00<\/strong>, <strong>\uc911\ucca9 \ub9ac\uc18c\uc2a4 \uac19\uc740 \ud328\ud134<\/strong>, <strong>\ud45c\uc900 status 6~7\uac1c<\/strong>, <strong>\uc751\ub2f5 \ubaa8\uc591 \ud1b5\uc77c(data\u00b7error)<\/strong>. \ud398\uc774\uc9c0\ub124\uc774\uc158\u00b7\ud544\ud130\u00b7\uc815\ub82c\uc740 \ucffc\ub9ac \ud30c\ub77c\ubbf8\ud130 + \uc0c1\ud55c \uac15\uc81c. CRUD \ud55c \ub9ac\uc18c\uc2a4\uc5d0 \uac80\uc99d\u00b7\uc778\uc99d\u00b7\uc18c\uc720\uad8c \ud655\uc778\uc774 \ubbf8\ub4e4\uc6e8\uc5b4\ub85c \ub07c\uc778\ub2e4. \ub2e4\uc74c \ud3b8\uc5d0\uc11c \uc9c4\uc9dc \uc5d0\ub7ec \ucc98\ub9ac \u2014 <strong>try\/catch \uc640 Express \uc5d0\ub7ec \ubbf8\ub4e4\uc6e8\uc5b4<\/strong>.<\/p>\n\n<div class=\"cta\">\n<h3>\ub2e4\uc74c \ud3b8 \uc608\uace0 \u2014 \uc5d0\ub7ec \ucc98\ub9ac<\/h3>\n<p>try\/catch, Express \uc5d0\ub7ec \ubbf8\ub4e4\uc6e8\uc5b4, \uc0ac\uc6a9\uc790 \uce5c\ud654\uc801 \uba54\uc2dc\uc9c0. 16\ud3b8.<\/p>\n<\/div>\n\n<div class=\"footer-nav\">\n\uc2dc\ub9ac\uc988 \u00b7 <a href=\"https:\/\/junai.ai\/blog\/category\/nodejs\/\">\uc27d\uac8c \ubc30\uc6b0\ub294 Node.js<\/a> \u00b7 \uc774\uc804: <a href=\"https:\/\/junai.ai\/blog\/nodejs-express-routing-middleware-14\/\">Ch.14 \ub77c\uc6b0\ud305\u00b7\ubbf8\ub4e4\uc6e8\uc5b4<\/a>\n<\/div>\n\n<\/article>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Express \ub85c REST API \ub9cc\ub4e4\uae30 \u2014 \ub9ac\uc18c\uc2a4\u00b7HTTP \uba54\uc11c\ub4dc\u00b7status \ucf54\ub4dc\u00b7\ud398\uc774\uc9c0\ub124\uc774\uc158\u00b7\ud544\ud130\ub9c1. CRUD \ud45c\uc900 \uad6c\ud604 \ud328\ud134. \uad50\uc7ac 15\ud3b8.<\/p>\n","protected":false},"author":1,"featured_media":842,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-897","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-nodejs"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/comments?post=897"}],"version-history":[{"count":0,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/posts\/897\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media\/842"}],"wp:attachment":[{"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/media?parent=897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/categories?post=897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/junai.ai\/blog\/wp-json\/wp\/v2\/tags?post=897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}