{"id":38586,"date":"2024-11-01T18:18:28","date_gmt":"2024-11-01T18:18:28","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38586"},"modified":"2024-11-26T06:43:55","modified_gmt":"2024-11-26T06:43:55","slug":"fastapi-%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c-%eb%8f%84%ec%bb%a4-%ec%9d%b4%eb%af%b8%ec%a7%80-%eb%b9%8c%eb%93%9c","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38586\/","title":{"rendered":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub3c4\ucee4 \uc774\ubbf8\uc9c0 \ube4c\ub4dc"},"content":{"rendered":"<p><body><\/p>\n<p>FastAPI\ub294 \ud604\ub300\uc801\uc778 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uad6c\ucd95\ud558\ub294 \ub370 \uc788\uc5b4 \ub9e4\uc6b0 \uc778\uae30 \uc788\ub294 Python \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac04\ub2e8\ud55c RESTful API\ub97c \ub9cc\ub4e4\uace0 \uc774\ub97c Docker\ub97c \uc0ac\uc6a9\ud574 \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. FastAPI\ub294 \ud0c1\uc6d4\ud55c \uc131\ub2a5\uacfc \uc26c\uc6b4 \uc0ac\uc6a9\uc131\uc744 \uc81c\uacf5\ud558\uba70, Swagger UI, \uc790\ub3d9 \ubb38\uc11c\ud654 \ub4f1 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \ub0b4\uc7a5\ud558\uace0 \uc788\uc5b4 \uac1c\ubc1c\uc790\uc5d0\uac8c \ub9ce\uc740 \uc774\uc810\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<h2>\ubaa9\ucc28<\/h2>\n<ul>\n<li><a href=\"#section1\">1. FastAPI\ub780 \ubb34\uc5c7\uc778\uac00?<\/a><\/li>\n<li><a href=\"#section2\">2. FastAPI \uc124\uce58 \ubc0f \ud658\uacbd \uc124\uc815<\/a><\/li>\n<li><a href=\"#section3\">3. FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c<\/a><\/li>\n<li><a href=\"#section4\">4. Docker \uc774\ud574\ud558\uae30<\/a><\/li>\n<li><a href=\"#section5\">5. Dockerfile \uc791\uc131 \ubc0f \uc774\ubbf8\uc9c0 \ube4c\ub4dc<\/a><\/li>\n<li><a href=\"#section6\">6. Docker \ucee8\ud14c\uc774\ub108 \uc2e4\ud589<\/a><\/li>\n<li><a href=\"#section7\">7. \uacb0\ub860 \ubc0f \ub2e4\uc74c \ub2e8\uacc4<\/a><\/li>\n<\/ul>\n<h2 id=\"section1\">1. FastAPI\ub780 \ubb34\uc5c7\uc778\uac00?<\/h2>\n<p>FastAPI\ub294 \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\ub294 Python \uae30\ubc18\uc758 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. RESTful API\ub97c \uc27d\uace0 \ube60\ub974\uac8c \uac1c\ubc1c\ud560 \uc218 \uc788\ub3c4\ub85d \uc124\uacc4\ub418\uc5c8\uc2b5\ub2c8\ub2e4. FastAPI\uc758 \uc8fc\uc694 \ud2b9\uc9d5\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uc790\ub3d9 API \ubb38\uc11c\ud654: Swagger UI\ub97c \ud1b5\ud55c \uc790\ub3d9\ud654\ub41c \ubb38\uc11c\ud654 \uc9c0\uc6d0<\/li>\n<li>\ub192\uc740 \uc131\ub2a5: Starlette \ubc0f Pydantic\uc744 \uae30\ubc18\uc73c\ub85c \ud558\uc5ec \ub192\uc740 \uc131\ub2a5\uc744 \uc790\ub791<\/li>\n<li>\ube44\ub3d9\uae30 \ucc98\ub9ac \uc9c0\uc6d0: async\/await \uad6c\ubb38\uc744 \uc774\uc6a9\ud574 \ube44\ub3d9\uae30 \ucf54\ub4dc\ub97c \uc27d\uac8c \uc791\uc131 \uac00\ub2a5<\/li>\n<li>\ub370\uc774\ud130 \uac80\uc99d: Pydantic\uc744 \ud1b5\ud55c \uac15\ub825\ud55c \ub370\uc774\ud130 \uac80\uc99d \uae30\ub2a5<\/li>\n<\/ul>\n<h2 id=\"section2\">2. FastAPI \uc124\uce58 \ubc0f \ud658\uacbd \uc124\uc815<\/h2>\n<p>FastAPI\ub97c \uc124\uce58\ud558\uae30 \uc704\ud574\uc11c\ub294 Python\uc774 \ud544\uc694\ud569\ub2c8\ub2e4. \ud130\ubbf8\ub110\uc5d0\uc11c \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \uc785\ub825\ud558\uc5ec FastAPI\uc640 Uvicorn\uc744 \uc124\uce58\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>pip install fastapi uvicorn<\/code><\/pre>\n<p>\uc124\uce58\uac00 \uc644\ub8cc\ub418\uba74, FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc791\uc131\ud560 \uc218 \uc788\ub294 \uae30\ubcf8 \uad6c\uc870\ub97c \ub9cc\ub4ed\ub2c8\ub2e4.<\/p>\n<pre><code>mkdir fastapi_docker &amp;&amp; cd fastapi_docker\ntouch main.py<\/code><\/pre>\n<p>\uc774\uc81c <code>main.py<\/code> \ud30c\uc77c\uc744 \uc5f4\uace0 \uae30\ubcf8\uc801\uc778 FastAPI \uc11c\ubc84\ub97c \uc791\uc131\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>FastAPI \uae30\ubcf8 \uc11c\ubc84 \uc608\uc81c<\/h3>\n<pre><code>from fastapi import FastAPI\n\napp = FastAPI()\n\n@app.get(\"\/\")\nasync def read_root():\n    return {\"Hello\": \"World\"}\n\n@app.get(\"\/items\/{item_id}\")\nasync def read_item(item_id: int, q: str = None):\n    return {\"item_id\": item_id, \"query\": q}<\/code><\/pre>\n<p>\uc704 \ucf54\ub4dc\ub294 \uac04\ub2e8\ud55c FastAPI \uc11c\ubc84\ub97c \uc815\uc758\ud569\ub2c8\ub2e4. <code>\/<\/code> \uacbd\ub85c\uc5d0 GET \uc694\uccad\uc744 \ubcf4\ub0b4\uba74 &#8220;Hello, World&#8221;\ub77c\ub294 JSON \uc751\ub2f5\uc744 \ubc1b\uace0, <code>\/items\/{item_id}<\/code> \uacbd\ub85c\uc5d0 GET \uc694\uccad\uc744 \ubcf4\ub0b4\uba74 \ud574\ub2f9 <code>item_id<\/code>\uacfc \ucffc\ub9ac \ub9e4\uac1c\ubcc0\uc218\ub97c \ud3ec\ud568\ud55c JSON \uc751\ub2f5\uc744 \ubc18\ud658\ud569\ub2c8\ub2e4.<\/p>\n<h2 id=\"section3\">3. FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c<\/h2>\n<p>FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc880 \ub354 \ubc1c\uc804\uc2dc\ucf1c \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc5ec\uae30\uc11c\ub294 \uac04\ub2e8\ud55c Todo \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uad6c\ud604\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc544\ub798\ub294 Todo \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc758 \uae30\ubcf8 \uad6c\uc870\uc785\ub2c8\ub2e4.<\/p>\n<h3>Todo \ubaa8\ub378 \uc815\uc758<\/h3>\n<pre><code>from typing import List, Optional\nfrom pydantic import BaseModel\n\nclass TodoItem(BaseModel):\n    id: int\n    title: str\n    completed: bool = False\n\ntodos = []<\/code><\/pre>\n<h3>Todo API \uc5d4\ub4dc\ud3ec\uc778\ud2b8 \uad6c\ud604<\/h3>\n<pre><code>@app.post(\"\/todos\/\", response_model=TodoItem)\nasync def create_todo(todo: TodoItem):\n    todos.append(todo)\n    return todo\n\n@app.get(\"\/todos\/\", response_model=List[TodoItem])\nasync def read_todos():\n    return todos\n\n@app.delete(\"\/todos\/{todo_id}\")\nasync def delete_todo(todo_id: int):\n    global todos\n    todos = [todo for todo in todos if todo.id != todo_id]\n    return {\"message\": \"Todo item deleted\"} <\/code><\/pre>\n<p>\uc704\uc758 \ucf54\ub4dc\uc5d0\uc11c\ub294 Todo \ud56d\ubaa9\uc744 \uc0dd\uc131, \uc870\ud68c \ubc0f \uc0ad\uc81c\ud560 \uc218 \uc788\ub294 \uae30\ubcf8\uc801\uc778 REST API \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<h2 id=\"section4\">4. Docker \uc774\ud574\ud558\uae30<\/h2>\n<p>Docker\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ucee8\ud14c\uc774\ub108\ub85c \ud328\ud0a4\uc9d5\ud558\uace0 \ubc30\ud3ec\ud560 \uc218 \uc788\ub294 \ud50c\ub7ab\ud3fc\uc785\ub2c8\ub2e4. \ucee8\ud14c\uc774\ub108\ub294 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uacfc \uadf8 \uc758\uc874\uc131\uc744 \ud568\uaed8 \ubb36\uc5b4\uc11c \uc5b4\ub514\uc11c\ub4e0 \ub3d9\uc77c\ud558\uac8c \uc2e4\ud589\ub420 \uc218 \uc788\ub3c4\ub85d \ud569\ub2c8\ub2e4. Docker\ub97c \uc0ac\uc6a9\ud558\uba74 \uac1c\ubc1c, \ud14c\uc2a4\ud2b8, \ubc30\ud3ec \ud658\uacbd\uc744 \ud1b5\uc77c\ud560 \uc218 \uc788\uc73c\uba70, \uc774\ub97c \ud1b5\ud574 \uc77c\uad00\uc131\uc744 \uc720\uc9c0\ud558\uace0 \ubc30\ud3ec\ub97c \uc6a9\uc774\ud558\uac8c \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2 id=\"section5\">5. Dockerfile \uc791\uc131 \ubc0f \uc774\ubbf8\uc9c0 \ube4c\ub4dc<\/h2>\n<p>\uc774\uc81c FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 Docker\ub85c \ucee8\ud14c\uc774\ub108\ud654\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. <code>Dockerfile<\/code>\uc744 \uc791\uc131\ud558\uc5ec FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ud3ec\ud568\ud558\ub294 \uc774\ubbf8\uc9c0\ub97c \ube4c\ub4dc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>Dockerfile \uc791\uc131<\/h3>\n<pre><code>FROM python:3.9\n\nWORKDIR \/app\n\nCOPY requirements.txt .\/\nRUN pip install --no-cache-dir -r requirements.txt\n\nCOPY . .\n\nCMD [\"uvicorn\", \"main:app\", \"--host\", \"0.0.0.0\", \"--port\", \"8000\"]<\/code><\/pre>\n<p><code>requirements.txt<\/code> \ud30c\uc77c\uc5d0\ub294 FastAPI\uc640 Uvicorn\uc774 \ud3ec\ud568\ub418\uc5b4 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<pre><code>fastapi\nuvicorn<\/code><\/pre>\n<h3>\ub3c4\ucee4 \uc774\ubbf8\uc9c0 \ube4c\ub4dc<\/h3>\n<p>\uc774\uc81c \ub3c4\ucee4 \uc774\ubbf8\uc9c0\ub97c \ube4c\ub4dc\ud569\ub2c8\ub2e4. \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \ud130\ubbf8\ub110\uc5d0 \uc785\ub825\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>docker build -t fastapi-todo .<\/code><\/pre>\n<h2 id=\"section6\">6. Docker \ucee8\ud14c\uc774\ub108 \uc2e4\ud589<\/h2>\n<p>\ub3c4\ucee4 \uc774\ubbf8\uc9c0\uac00 \uc131\uacf5\uc801\uc73c\ub85c \ube4c\ub4dc\ub418\uc5c8\ub2e4\uba74, \uc774\ub97c \uae30\ubc18\uc73c\ub85c \ucee8\ud14c\uc774\ub108\ub97c \uc2e4\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \uc785\ub825\ud558\uc5ec FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2e4\ud589\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>docker run -d --name fastapi-todo -p 8000:8000 fastapi-todo<\/code><\/pre>\n<p>\uc774\uc81c \uc6f9 \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c <a href=\"http:\/\/localhost:8000\/docs\">http:\/\/localhost:8000\/docs<\/a>\uc5d0 \uc811\uc18d\ud558\uc5ec Swagger UI\ub97c \ud1b5\ud574 API\ub97c \ud14c\uc2a4\ud2b8\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2 id=\"section7\">7. \uacb0\ub860 \ubc0f \ub2e4\uc74c \ub2e8\uacc4<\/h2>\n<p>\uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac04\ub2e8\ud55c RESTful API\ub97c \uac1c\ubc1c\ud558\uace0, \uc774\ub97c \ub3c4\ucee4\ub97c \uc0ac\uc6a9\ud574 \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. FastAPI\ub294 \uc131\ub2a5\uc774 \ub6f0\uc5b4\ub098\uba70 \ube44\ub3d9\uae30 \ucc98\ub9ac\ub97c \uc27d\uac8c \ub9cc\ub4e4 \uc218 \uc788\uae30 \ub54c\ubb38\uc5d0, \ub354\uc6b1 \ubcf5\uc7a1\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc5d0\ub3c4 \uc801\ud569\ud569\ub2c8\ub2e4.<\/p>\n<p>\ub2e4\uc74c \ub2e8\uacc4\ub85c\ub294 \uc778\uc99d \ubc0f \uad8c\ud55c \ubd80\uc5ec, \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ud1b5\ud569 \ub4f1\uc758 \uae30\ub2a5\uc744 \ucd94\uac00\ud558\uc5ec \uc880 \ub354 \ubc1c\uc804\ub41c RESTful API\ub97c \ub9cc\ub4e4\uc5b4 \ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \ucd94\uac00 \uae30\ub2a5\ub4e4\uc740 FastAPI\uc758 \uac15\ub825\ud55c \uae30\ub2a5\ub4e4\uc744 \ud65c\uc6a9\ud558\uc5ec \uc27d\uac8c \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<div class=\"note\">\n<strong>\ucc38\uace0:<\/strong> FastAPI \uacf5\uc2dd \ubb38\uc11c\uc5d0\uc11c \ub354 \ub9ce\uc740 \uc608\uc81c\uc640 \uc815\ubcf4\ub97c \ucc3e\uc544\ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n    <a href=\"https:\/\/fastapi.tiangolo.com\/\">FastAPI \uacf5\uc2dd \ubb38\uc11c<\/a>\n<\/div>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>FastAPI\ub294 \ud604\ub300\uc801\uc778 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uad6c\ucd95\ud558\ub294 \ub370 \uc788\uc5b4 \ub9e4\uc6b0 \uc778\uae30 \uc788\ub294 Python \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac04\ub2e8\ud55c RESTful API\ub97c \ub9cc\ub4e4\uace0 \uc774\ub97c Docker\ub97c \uc0ac\uc6a9\ud574 \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. FastAPI\ub294 \ud0c1\uc6d4\ud55c \uc131\ub2a5\uacfc \uc26c\uc6b4 \uc0ac\uc6a9\uc131\uc744 \uc81c\uacf5\ud558\uba70, Swagger UI, \uc790\ub3d9 \ubb38\uc11c\ud654 \ub4f1 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \ub0b4\uc7a5\ud558\uace0 \uc788\uc5b4 \uac1c\ubc1c\uc790\uc5d0\uac8c \ub9ce\uc740 \uc774\uc810\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \ubaa9\ucc28 1. FastAPI\ub780 \ubb34\uc5c7\uc778\uac00? 2. FastAPI \uc124\uce58 \ubc0f &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38586\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub3c4\ucee4 \uc774\ubbf8\uc9c0 \ube4c\ub4dc&#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":[183],"tags":[],"class_list":["post-38586","post","type-post","status-publish","format-standard","hentry","category-fastapi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub3c4\ucee4 \uc774\ubbf8\uc9c0 \ube4c\ub4dc - \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\/38586\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub3c4\ucee4 \uc774\ubbf8\uc9c0 \ube4c\ub4dc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"FastAPI\ub294 \ud604\ub300\uc801\uc778 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uad6c\ucd95\ud558\ub294 \ub370 \uc788\uc5b4 \ub9e4\uc6b0 \uc778\uae30 \uc788\ub294 Python \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac04\ub2e8\ud55c RESTful API\ub97c \ub9cc\ub4e4\uace0 \uc774\ub97c Docker\ub97c \uc0ac\uc6a9\ud574 \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. FastAPI\ub294 \ud0c1\uc6d4\ud55c \uc131\ub2a5\uacfc \uc26c\uc6b4 \uc0ac\uc6a9\uc131\uc744 \uc81c\uacf5\ud558\uba70, Swagger UI, \uc790\ub3d9 \ubb38\uc11c\ud654 \ub4f1 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \ub0b4\uc7a5\ud558\uace0 \uc788\uc5b4 \uac1c\ubc1c\uc790\uc5d0\uac8c \ub9ce\uc740 \uc774\uc810\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \ubaa9\ucc28 1. FastAPI\ub780 \ubb34\uc5c7\uc778\uac00? 2. FastAPI \uc124\uce58 \ubc0f &hellip; \ub354 \ubcf4\uae30 &quot;FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub3c4\ucee4 \uc774\ubbf8\uc9c0 \ube4c\ub4dc&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38586\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T18:18:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:43:55+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\/38586\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38586\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub3c4\ucee4 \uc774\ubbf8\uc9c0 \ube4c\ub4dc\",\"datePublished\":\"2024-11-01T18:18:28+00:00\",\"dateModified\":\"2024-11-26T06:43:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38586\/\"},\"wordCount\":82,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"FastAPI\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38586\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38586\/\",\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub3c4\ucee4 \uc774\ubbf8\uc9c0 \ube4c\ub4dc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T18:18:28+00:00\",\"dateModified\":\"2024-11-26T06:43:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38586\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38586\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38586\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub3c4\ucee4 \uc774\ubbf8\uc9c0 \ube4c\ub4dc\"}]},{\"@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":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub3c4\ucee4 \uc774\ubbf8\uc9c0 \ube4c\ub4dc - \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\/38586\/","og_locale":"ko_KR","og_type":"article","og_title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub3c4\ucee4 \uc774\ubbf8\uc9c0 \ube4c\ub4dc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"FastAPI\ub294 \ud604\ub300\uc801\uc778 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uad6c\ucd95\ud558\ub294 \ub370 \uc788\uc5b4 \ub9e4\uc6b0 \uc778\uae30 \uc788\ub294 Python \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc774 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac04\ub2e8\ud55c RESTful API\ub97c \ub9cc\ub4e4\uace0 \uc774\ub97c Docker\ub97c \uc0ac\uc6a9\ud574 \ubc30\ud3ec\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc124\uba85\ud558\uaca0\uc2b5\ub2c8\ub2e4. FastAPI\ub294 \ud0c1\uc6d4\ud55c \uc131\ub2a5\uacfc \uc26c\uc6b4 \uc0ac\uc6a9\uc131\uc744 \uc81c\uacf5\ud558\uba70, Swagger UI, \uc790\ub3d9 \ubb38\uc11c\ud654 \ub4f1 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \ub0b4\uc7a5\ud558\uace0 \uc788\uc5b4 \uac1c\ubc1c\uc790\uc5d0\uac8c \ub9ce\uc740 \uc774\uc810\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \ubaa9\ucc28 1. FastAPI\ub780 \ubb34\uc5c7\uc778\uac00? 2. FastAPI \uc124\uce58 \ubc0f &hellip; \ub354 \ubcf4\uae30 \"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub3c4\ucee4 \uc774\ubbf8\uc9c0 \ube4c\ub4dc\"","og_url":"https:\/\/atmokpo.com\/w\/38586\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T18:18:28+00:00","article_modified_time":"2024-11-26T06:43:55+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\/38586\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38586\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub3c4\ucee4 \uc774\ubbf8\uc9c0 \ube4c\ub4dc","datePublished":"2024-11-01T18:18:28+00:00","dateModified":"2024-11-26T06:43:55+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38586\/"},"wordCount":82,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["FastAPI\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38586\/","url":"https:\/\/atmokpo.com\/w\/38586\/","name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub3c4\ucee4 \uc774\ubbf8\uc9c0 \ube4c\ub4dc - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T18:18:28+00:00","dateModified":"2024-11-26T06:43:55+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38586\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38586\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38586\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \ub3c4\ucee4 \uc774\ubbf8\uc9c0 \ube4c\ub4dc"}]},{"@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\/38586","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=38586"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38586\/revisions"}],"predecessor-version":[{"id":38587,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38586\/revisions\/38587"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}