{"id":41106,"date":"2024-11-06T02:46:35","date_gmt":"2024-11-06T02:46:35","guid":{"rendered":"https:\/\/atmokpo.com\/w\/?p=41106"},"modified":"2024-11-26T06:37:35","modified_gmt":"2024-11-26T06:37:35","slug":"11-nest-js%eb%a1%9c-restful-api-%ea%b5%ac%ec%b6%95%ed%95%98%ea%b8%b0-nest-js%ec%97%90%ec%84%9c-%ec%bb%a8%ed%8a%b8%eb%a1%a4%eb%9f%ac%ec%99%80-%ec%84%9c%eb%b9%84%ec%8a%a4-%ea%b5%ac%ed%98%84%ed%95%98","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/41106\/","title":{"rendered":"11.Nest.js\ub85c RESTful API \uad6c\ucd95\ud558\uae30, Nest.js\uc5d0\uc11c \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30"},"content":{"rendered":"<p><body><\/p>\n<article>\n<p>\n            \ud604\ub300 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c RESTful API\ub294 \ub370\uc774\ud130\uc640 \uc11c\ube44\uc2a4\ub97c \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc5d0 \ud6a8\uacfc\uc801\uc73c\ub85c \uacf5\uc720\ud558\ub294 \ub370 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. Nest.js\ub294 Node.js \uae30\ubc18\uc758 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ud655\uc7a5\uc131\uacfc \uc720\uc9c0\ubcf4\uc218\uc131\uc744 \uace0\ub824\ud558\uc5ec \uc124\uacc4\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294<br \/>\n            Nest.js\ub97c \uc0ac\uc6a9\ud558\uc5ec RESTful API\ub97c \uad6c\ucd95\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ub610\ud55c, API\uc758 \uae30\ubcf8\uc744 \uc774\ud574\ud558\uae30 \uc704\ud574 \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4\uc758 \uad6c\ud604 \ubc29\ubc95\uc5d0 \ub300\ud574\uc11c\ub3c4 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.\n        <\/p>\n<h2>1. Nest.js \uc18c\uac1c<\/h2>\n<p>\n            Nest.js\ub294 TypeScript\ub85c \uc791\uc131\ub41c \ud504\ub808\uc784\uc6cc\ud06c\ub85c, Angular\uc5d0\uc11c \uc601\uac10\uc744 \uc5bb\uc5b4 \ubaa8\ub4c8\ud654\ub41c \uad6c\uc870\ub97c \uac16\ucd94\uace0 \uc788\uc2b5\ub2c8\ub2e4. Nest.js\uc758 \uc8fc\uc694 \uc7a5\uc810 \uc911 \ud558\ub098\ub294 \uc758\uc874\uc131 \uc8fc\uc785(Dependency Injection)\uc744 \ud1b5\ud574 \ucf54\ub4dc\uc758 \uc7ac\uc0ac\uc6a9\uc131\uacfc \ud14c\uc2a4\ud2b8 \uc6a9\uc774\uc131\uc744 \ub192\uc77c \uc218 \uc788\ub2e4\ub294 \uc810\uc785\ub2c8\ub2e4.<br \/>\n            \uc774\ub97c \ud1b5\ud574 \ub300\uaddc\ubaa8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uccb4\uacc4\uc801\uc73c\ub85c \uc124\uacc4\ud558\uace0 \uad00\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n        <\/p>\n<h2>2. Nest.js \uc124\uce58 \ubc0f \ucd08\uae30 \uc124\uc815<\/h2>\n<p>\n            Nest.js\ub97c \uc124\uce58\ud558\uae30 \uc704\ud574 Node.js\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. Node.js\uac00 \uc124\uce58\ub41c \ud6c4, Nest CLI\ub97c \ud1b5\ud574 \ube60\ub974\uac8c \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. CLI \ub3c4\uad6c\ub97c \uc124\uce58\ud558\ub824\uba74, \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \uc2e4\ud589\ud569\ub2c8\ub2e4:\n        <\/p>\n<pre><code>\n            npm install -g @nestjs\/cli\n        <\/code><\/pre>\n<p>\n            Nest CLI\ub97c \uc124\uce58\ud55c \ud6c4, \uc0c8\ub85c\uc6b4 Nest.js \ud504\ub85c\uc81d\ud2b8\ub97c \uc0dd\uc131\ud558\ub294 \uba85\ub839\uc5b4\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:\n        <\/p>\n<pre><code>\n            nest new my-nest-app\n        <\/code><\/pre>\n<p>\n            \uc0dd\uc131\ub41c \ud504\ub85c\uc81d\ud2b8 \ub514\ub809\ud1a0\ub9ac\ub85c \uc774\ub3d9\ud558\uace0 \ub2e4\uc74c \uba85\ub839\uc5b4\ub85c \uac1c\ubc1c \uc11c\ubc84\ub97c \uc2e4\ud589\ud569\ub2c8\ub2e4:\n        <\/p>\n<pre><code>\n            cd my-nest-app\n            npm run start\n        <\/code><\/pre>\n<h2>3. RESTful API\uc758 \uac1c\ub150<\/h2>\n<p>\n            REST(Representational State Transfer)\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \ub370\uc774\ud130 \uad50\ud658\uc744 \uc704\ud55c \uc544\ud0a4\ud14d\ucc98 \uc2a4\ud0c0\uc77c\uc785\ub2c8\ub2e4. RESTful API\ub294 \uc8fc\ub85c HTTP \ud504\ub85c\ud1a0\ucf5c\uc744 \uc0ac\uc6a9\ud558\uc5ec CRUD(Create, Read, Update, Delete) \uc791\uc5c5\uc744 \uc218\ud589\ud569\ub2c8\ub2e4.<br \/>\n            RESTful API\uc758 \uc8fc\uc694 \ud2b9\uc9d5\uc740 \uc0c1\ud0dc\ub97c \uc720\uc9c0\ud558\uc9c0 \uc54a\uc73c\uba70, \ubaa8\ub4e0 \uc694\uccad\uc5d0 \ub300\ud574 \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \ud544\uc694\ud55c \uc815\ubcf4\ub97c \uc81c\uacf5\ud574\uc57c \ud55c\ub2e4\ub294 \uc810\uc785\ub2c8\ub2e4.\n        <\/p>\n<h2>4. Nest.js\uc5d0\uc11c RESTful API \ub9cc\ub4e4\uae30<\/h2>\n<p>\n            \uc774\uc81c \uc2e4\uc81c\ub85c RESTful API\ub97c \uad6c\ucd95\ud574\ubd05\uc2dc\ub2e4. \uc5ec\uae30\uc11c\ub294 \uac04\ub2e8\ud55c &#8220;\ud22c\ub450(Todo)&#8221; \ub9ac\uc2a4\ud2b8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc608\ub85c \ub4e4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc740 \uc0ac\uc6a9\uc790\uac00 \ud22c\ub450 \ud56d\ubaa9\uc744 \ucd94\uac00\ud558\uace0, \uc870\ud68c\ud558\uace0, \uc218\uc815\ud558\uace0, \uc0ad\uc81c\ud560 \uc218 \uc788\ub294 API\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.\n        <\/p>\n<h3>4.1. Todo \ubaa8\ub4c8 \uc0dd\uc131<\/h3>\n<p>\n            \uba3c\uc800, Todo \ubaa8\ub4c8\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4. \ud130\ubbf8\ub110\uc5d0\uc11c \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \uc785\ub825\ud558\uc5ec Todo \ubaa8\ub4c8\uc744 \uc0dd\uc131\ud569\ub2c8\ub2e4:\n        <\/p>\n<pre><code>\n            nest generate module todo\n        <\/code><\/pre>\n<h3>4.2. Todo \uc11c\ube44\uc2a4 \uc0dd\uc131<\/h3>\n<p>\n            Todo \uc11c\ube44\uc2a4\ub97c \uc0dd\uc131\ud558\uc5ec \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \ucc98\ub9ac\ud569\ub2c8\ub2e4. \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \uc785\ub825\ud569\ub2c8\ub2e4:\n        <\/p>\n<pre><code>\n            nest generate service todo\n        <\/code><\/pre>\n<p>\n            \uc11c\ube44\uc2a4 \ud30c\uc77c\uc740 <code>todo.service.ts<\/code>\ub77c\ub294 \uc774\ub984\uc73c\ub85c \uc0dd\uc131\ub429\ub2c8\ub2e4. \ub2e4\uc74c\uc740 TodoService\uc758 \uae30\ubcf8 \ucf54\ub4dc\uc785\ub2c8\ub2e4:\n        <\/p>\n<pre><code>\n            import { Injectable } from '@nestjs\/common';\n            import { Todo } from '.\/todo.entity';\n\n            @Injectable()\n            export class TodoService {\n                private todos: Todo[] = [];\n\n                findAll(): Todo[] {\n                    return this.todos;\n                }\n\n                create(todo: Todo): Todo {\n                    this.todos.push(todo);\n                    return todo;\n                }\n                \n                \/\/ Todo \ud56d\ubaa9 \uc218\uc815 \ubc0f \uc0ad\uc81c \uba54\uc11c\ub4dc \ucd94\uac00\n            }\n        <\/code><\/pre>\n<h3>4.3. Todo \ucee8\ud2b8\ub864\ub7ec \uc0dd\uc131<\/h3>\n<p>\n            \uc774\uc81c \ucee8\ud2b8\ub864\ub7ec\ub97c \uc0dd\uc131\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc694\uccad\uc744 \ucc98\ub9ac\ud569\ub2c8\ub2e4. \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \uc785\ub825\ud569\ub2c8\ub2e4:\n        <\/p>\n<pre><code>\n            nest generate controller todo\n        <\/code><\/pre>\n<p>\n            \ucee8\ud2b8\ub864\ub7ec \ud30c\uc77c\uc740 <code>todo.controller.ts<\/code>\ub77c\ub294 \uc774\ub984\uc73c\ub85c \uc0dd\uc131\ub429\ub2c8\ub2e4. \uc774 \ud30c\uc77c\uc5d0 RESTful API\uc758 \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \uc815\uc758\ud569\ub2c8\ub2e4:\n        <\/p>\n<pre><code>\n            import { Controller, Get, Post, Body } from '@nestjs\/common';\n            import { TodoService } from '.\/todo.service';\n            import { Todo } from '.\/todo.entity';\n\n            @Controller('todos')\n            export class TodoController {\n                constructor(private readonly todoService: TodoService) {}\n\n                @Get()\n                findAll(): Todo[] {\n                    return this.todoService.findAll();\n                }\n\n                @Post()\n                create(@Body() todo: Todo): Todo {\n                    return this.todoService.create(todo);\n                }\n                \n                \/\/ \ucd94\uac00\uc801\uc778 \uc5d4\ub4dc\ud3ec\uc778\ud2b8 \uad6c\ud604\n            }\n        <\/code><\/pre>\n<h3>4.4. Todo \uc5d4\ud2f0\ud2f0 \uc0dd\uc131<\/h3>\n<p>\n            \uc774\uc81c Todo\uc758 \uad6c\uc870\ub97c \uc815\uc758\ud558\ub294 \uc5d4\ud2f0\ud2f0\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4. <code>todo.entity.ts<\/code>\ub77c\ub294 \ud30c\uc77c\uc744 \uc0dd\uc131\ud558\uace0 \uc544\ub798\uc640 \uac19\uc774 \uc791\uc131\ud569\ub2c8\ub2e4:\n        <\/p>\n<pre><code>\n            export class Todo {\n                id: number;\n                title: string;\n                completed: boolean;\n            }\n        <\/code><\/pre>\n<h3>4.5. \ubaa8\ub4c8 \ud1b5\ud569<\/h3>\n<p>\n            \ub9c8\uc9c0\ub9c9\uc73c\ub85c <code>todo.module.ts<\/code> \ud30c\uc77c\uc5d0 \uc11c\ube44\uc2a4\uc640 \ucee8\ud2b8\ub864\ub7ec\ub97c \ud1b5\ud569\ud569\ub2c8\ub2e4:\n        <\/p>\n<pre><code>\n            import { Module } from '@nestjs\/common';\n            import { TodoController } from '.\/todo.controller';\n            import { TodoService } from '.\/todo.service';\n\n            @Module({\n                controllers: [TodoController],\n                providers: [TodoService],\n            })\n            export class TodoModule {}\n        <\/code><\/pre>\n<h2>5. \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc2e4\ud589 \ubc0f \ud14c\uc2a4\ud2b8<\/h2>\n<p>\n            \uc774\uc81c \ubaa8\ub4e0 \uad6c\ud604\uc744 \uc644\ub8cc\ud588\uc2b5\ub2c8\ub2e4. \ud130\ubbf8\ub110\uc5d0\uc11c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2e4\ud589\ud558\uba74, \uae30\ubcf8\uc801\uc73c\ub85c <code>http:\/\/localhost:3000\/todos<\/code>\uc5d0\uc11c API\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n            Postman\uc774\ub098 Curl \ub4f1\uc758 \ub3c4\uad6c\ub97c \uc0ac\uc6a9\ud558\uc5ec API\uc758 \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \ud14c\uc2a4\ud2b8\ud574\ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n        <\/p>\n<h3>5.1. Todo \ud56d\ubaa9 \ucd94\uac00\ud558\uae30<\/h3>\n<p>\n            POST \uc694\uccad\uc744 \ud1b5\ud574 \ud22c\ub450 \ud56d\ubaa9\uc744 \ucd94\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n            \uc608\ub97c \ub4e4\uc5b4, \uc544\ub798\uc640 \uac19\uc740 JSON \ud615\uc2dd\uc73c\ub85c \uc694\uccad\uc744 \ubcf4\ub0bc \uc218 \uc788\uc2b5\ub2c8\ub2e4:\n        <\/p>\n<pre><code>\n            {\n                \"id\": 1,\n                \"title\": \"\uccab \ubc88\uc9f8 \ud22c\ub450\",\n                \"completed\": false\n            }\n        <\/code><\/pre>\n<h3>5.2. Todo \ud56d\ubaa9 \uc870\ud68c\ud558\uae30<\/h3>\n<p>\n            GET \uc694\uccad\uc744 \ud1b5\ud574 \ubaa8\ub4e0 \ud22c\ub450 \ud56d\ubaa9\uc744 \uc870\ud68c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n            <code>http:\/\/localhost:3000\/todos<\/code>\ub85c GET \uc694\uccad\uc744 \ubcf4\ub0b4\uba74, \ucd94\uac00\ud55c \ud22c\ub450 \ud56d\ubaa9 \uc804\uccb4 \ubaa9\ub85d\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n        <\/p>\n<h2>6. \uacb0\ub860<\/h2>\n<p>\n            \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 Nest.js\ub97c \ud65c\uc6a9\ud558\uc5ec RESTful API\ub97c \uad6c\ucd95\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. Nest.js\ub294 \uac15\ub825\ud558\uace0 \uc720\uc5f0\ud55c \uad6c\uc870\ub97c \uc81c\uacf5\ud558\uc5ec \ub300\uaddc\ubaa8 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc5d0 \uc801\ud569\ud569\ub2c8\ub2e4.<br \/>\n            \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4\uc758 \ud328\ud134\uc744 \ud1b5\ud574 \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uacfc HTTP \uc694\uccad \ucc98\ub9ac\ub97c \ubd84\ub9ac\ud558\uc5ec \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uacfc \uc720\uc9c0\ubcf4\uc218\uc131\uc744 \ub192\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n            \ub354\uc6b1 \ub2e4\uc591\ud55c \uc0ac\uc6a9 \uc0ac\ub840\uc640 \uace0\uae09 \uae30\ub2a5\uc5d0 \ub300\ud574 \uacf5\ubd80\ud558\uba74\uc11c Nest.js\uc758 \ub9e4\ub825\uc744 \ub354 \uae4a\uc774 \ubc1c\uacac\ud560 \uc218 \uc788\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.\n        <\/p>\n<footer>\n<p>\uc791\uc131\uc790: \uc870\uad11\ud615<\/p>\n<p>\ub0a0\uc9dc: 2024\ub144 11\uc6d4 26\uc77c<\/p>\n<\/footer>\n<\/article>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud604\ub300 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c RESTful API\ub294 \ub370\uc774\ud130\uc640 \uc11c\ube44\uc2a4\ub97c \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc5d0 \ud6a8\uacfc\uc801\uc73c\ub85c \uacf5\uc720\ud558\ub294 \ub370 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. Nest.js\ub294 Node.js \uae30\ubc18\uc758 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ud655\uc7a5\uc131\uacfc \uc720\uc9c0\ubcf4\uc218\uc131\uc744 \uace0\ub824\ud558\uc5ec \uc124\uacc4\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Nest.js\ub97c \uc0ac\uc6a9\ud558\uc5ec RESTful API\ub97c \uad6c\ucd95\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ub610\ud55c, API\uc758 \uae30\ubcf8\uc744 \uc774\ud574\ud558\uae30 \uc704\ud574 \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4\uc758 \uad6c\ud604 \ubc29\ubc95\uc5d0 \ub300\ud574\uc11c\ub3c4 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. Nest.js \uc18c\uac1c Nest.js\ub294 TypeScript\ub85c \uc791\uc131\ub41c \ud504\ub808\uc784\uc6cc\ud06c\ub85c, Angular\uc5d0\uc11c \uc601\uac10\uc744 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/41106\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;11.Nest.js\ub85c RESTful API \uad6c\ucd95\ud558\uae30, Nest.js\uc5d0\uc11c \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30&#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":[223],"tags":[],"class_list":["post-41106","post","type-post","status-publish","format-standard","hentry","category-nextjs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>11.Nest.js\ub85c RESTful API \uad6c\ucd95\ud558\uae30, Nest.js\uc5d0\uc11c \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30 - \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\/41106\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"11.Nest.js\ub85c RESTful API \uad6c\ucd95\ud558\uae30, Nest.js\uc5d0\uc11c \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ud604\ub300 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c RESTful API\ub294 \ub370\uc774\ud130\uc640 \uc11c\ube44\uc2a4\ub97c \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc5d0 \ud6a8\uacfc\uc801\uc73c\ub85c \uacf5\uc720\ud558\ub294 \ub370 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. Nest.js\ub294 Node.js \uae30\ubc18\uc758 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ud655\uc7a5\uc131\uacfc \uc720\uc9c0\ubcf4\uc218\uc131\uc744 \uace0\ub824\ud558\uc5ec \uc124\uacc4\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Nest.js\ub97c \uc0ac\uc6a9\ud558\uc5ec RESTful API\ub97c \uad6c\ucd95\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ub610\ud55c, API\uc758 \uae30\ubcf8\uc744 \uc774\ud574\ud558\uae30 \uc704\ud574 \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4\uc758 \uad6c\ud604 \ubc29\ubc95\uc5d0 \ub300\ud574\uc11c\ub3c4 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. Nest.js \uc18c\uac1c Nest.js\ub294 TypeScript\ub85c \uc791\uc131\ub41c \ud504\ub808\uc784\uc6cc\ud06c\ub85c, Angular\uc5d0\uc11c \uc601\uac10\uc744 &hellip; \ub354 \ubcf4\uae30 &quot;11.Nest.js\ub85c RESTful API \uad6c\ucd95\ud558\uae30, Nest.js\uc5d0\uc11c \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/41106\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-06T02:46:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:37:35+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\/41106\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/41106\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"11.Nest.js\ub85c RESTful API \uad6c\ucd95\ud558\uae30, Nest.js\uc5d0\uc11c \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30\",\"datePublished\":\"2024-11-06T02:46:35+00:00\",\"dateModified\":\"2024-11-26T06:37:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/41106\/\"},\"wordCount\":96,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"nextjs\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/41106\/\",\"url\":\"https:\/\/atmokpo.com\/w\/41106\/\",\"name\":\"11.Nest.js\ub85c RESTful API \uad6c\ucd95\ud558\uae30, Nest.js\uc5d0\uc11c \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-06T02:46:35+00:00\",\"dateModified\":\"2024-11-26T06:37:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/41106\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/41106\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/41106\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"11.Nest.js\ub85c RESTful API \uad6c\ucd95\ud558\uae30, Nest.js\uc5d0\uc11c \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30\"}]},{\"@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":"11.Nest.js\ub85c RESTful API \uad6c\ucd95\ud558\uae30, Nest.js\uc5d0\uc11c \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30 - \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\/41106\/","og_locale":"ko_KR","og_type":"article","og_title":"11.Nest.js\ub85c RESTful API \uad6c\ucd95\ud558\uae30, Nest.js\uc5d0\uc11c \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ud604\ub300 \uc6f9 \uac1c\ubc1c\uc5d0\uc11c RESTful API\ub294 \ub370\uc774\ud130\uc640 \uc11c\ube44\uc2a4\ub97c \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc5d0 \ud6a8\uacfc\uc801\uc73c\ub85c \uacf5\uc720\ud558\ub294 \ub370 \ud544\uc218\uc801\uc785\ub2c8\ub2e4. Nest.js\ub294 Node.js \uae30\ubc18\uc758 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ud655\uc7a5\uc131\uacfc \uc720\uc9c0\ubcf4\uc218\uc131\uc744 \uace0\ub824\ud558\uc5ec \uc124\uacc4\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c\ub294 Nest.js\ub97c \uc0ac\uc6a9\ud558\uc5ec RESTful API\ub97c \uad6c\ucd95\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ub610\ud55c, API\uc758 \uae30\ubcf8\uc744 \uc774\ud574\ud558\uae30 \uc704\ud574 \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4\uc758 \uad6c\ud604 \ubc29\ubc95\uc5d0 \ub300\ud574\uc11c\ub3c4 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. Nest.js \uc18c\uac1c Nest.js\ub294 TypeScript\ub85c \uc791\uc131\ub41c \ud504\ub808\uc784\uc6cc\ud06c\ub85c, Angular\uc5d0\uc11c \uc601\uac10\uc744 &hellip; \ub354 \ubcf4\uae30 \"11.Nest.js\ub85c RESTful API \uad6c\ucd95\ud558\uae30, Nest.js\uc5d0\uc11c \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30\"","og_url":"https:\/\/atmokpo.com\/w\/41106\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-06T02:46:35+00:00","article_modified_time":"2024-11-26T06:37:35+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\/41106\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/41106\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"11.Nest.js\ub85c RESTful API \uad6c\ucd95\ud558\uae30, Nest.js\uc5d0\uc11c \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30","datePublished":"2024-11-06T02:46:35+00:00","dateModified":"2024-11-26T06:37:35+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/41106\/"},"wordCount":96,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["nextjs"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/41106\/","url":"https:\/\/atmokpo.com\/w\/41106\/","name":"11.Nest.js\ub85c RESTful API \uad6c\ucd95\ud558\uae30, Nest.js\uc5d0\uc11c \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-06T02:46:35+00:00","dateModified":"2024-11-26T06:37:35+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/41106\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/41106\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/41106\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"11.Nest.js\ub85c RESTful API \uad6c\ucd95\ud558\uae30, Nest.js\uc5d0\uc11c \ucee8\ud2b8\ub864\ub7ec\uc640 \uc11c\ube44\uc2a4 \uad6c\ud604\ud558\uae30"}]},{"@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\/41106","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=41106"}],"version-history":[{"count":2,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/41106\/revisions"}],"predecessor-version":[{"id":43043,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/41106\/revisions\/43043"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=41106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=41106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=41106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}