{"id":38514,"date":"2024-11-01T18:17:46","date_gmt":"2024-11-01T18:17:46","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38514"},"modified":"2024-11-26T06:44:07","modified_gmt":"2024-11-26T06:44:07","slug":"fastapi-%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c-%ec%9a%94%ec%b2%ad-%eb%b0%8f-%ec%9d%91%eb%8b%b5-%eb%8d%b0%ec%9d%b4%ed%84%b0-%ea%b2%80%ec%a6%9d-%eb%b0%8f-%eb%b3%80%ed%99%98","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38514\/","title":{"rendered":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658"},"content":{"rendered":"<p>FastAPI\ub294 \uac04\ub2e8\ud558\uace0 \ud6a8\uc728\uc801\uc778 \uc6f9 API\ub97c \uad6c\ucd95\ud560 \uc218 \uc788\ub294 \ud604\ub300\uc801\uc778 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. Python\uc758 \ud0c0\uc785 \ud78c\ud2b8\ub97c \uc801\uadf9\uc801\uc73c\ub85c \ud65c\uc6a9\ud558\uc5ec \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uc744 \ub192\uc774\uace0, \uc790\ub3d9\uc73c\ub85c OpenAPI \ubc0f JSON Schema\ub97c \uc0dd\uc131\ud558\ub294 \ub4f1\uc758 \ud2b9\uc131\uc744 \uac16\ucd94\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\uc5d0\uc11c \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130\uc758 \uac80\uc99d \ubc0f \ubcc0\ud658 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. \ub370\uc774\ud130 \uac80\uc99d\uc758 \ud544\uc694\uc131<\/h2>\n<p>\uc6f9 \uc11c\ubc84\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\ub85c\ubd80\ud130 \ub2e4\uc591\ud55c \ud615\ud0dc\uc758 \ub370\uc774\ud130 \uc694\uccad\uc744 \ubc1b\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \ub370\uc774\ud130\ub294 \uc885\uc885 \uc608\uc0c1\ud558\uc9c0 \ubabb\ud55c \ud615\uc2dd\uc774\ub098 \uac12\uc744 \uac00\uc9c8 \uc218 \uc788\uc73c\uba70, \uc774\ub85c \uc778\ud574 \uc11c\ubc84\uc5d0\uc11c \uc624\ub958\uac00 \ubc1c\uc0dd\ud558\uac70\ub098 \uc798\ubabb\ub41c \ub3d9\uc791\uc744 \uc720\ubc1c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub530\ub77c\uc11c \ub370\uc774\ud130\uc758 \uc720\ud6a8\uc131\uc744 \uac80\uc0ac\ud558\uace0, \ud544\uc694\uc2dc \ubcc0\ud658\ud558\ub294 \uacfc\uc815\uc774 \uc911\uc694\ud569\ub2c8\ub2e4.<\/p>\n<h2>2. FastAPI\uc5d0\uc11c\uc758 \ub370\uc774\ud130 \uac80\uc99d<\/h2>\n<p>FastAPI\ub294 Pydantic\uc774\ub77c\ub294 \ub370\uc774\ud130 \uac80\uc99d \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130\uc758 \uac80\uc99d\uc744 \uc218\ud589\ud569\ub2c8\ub2e4. Pydantic\uc758 \ubaa8\ub378\uc744 \uc120\uc5b8\ud558\uace0 \uc720\ud6a8\uc131 \uac80\uc0ac\ub97c \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc744 \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>2.1 Pydantic \ubaa8\ub378 \uc815\uc758\ud558\uae30<\/h3>\n<p>Pydantic \ubaa8\ub378\uc740 \uc694\uccad \ub370\uc774\ud130\uc758 \uad6c\uc870\ub97c \uc815\uc758\ud558\uba70, \uac01 \ud544\ub4dc\uc5d0 \ub300\ud55c \ub370\uc774\ud130 \ud0c0\uc785\uacfc \uc81c\uc57d \uc870\uac74\uc744 \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uc815\uc758\ud558\ub294 Pydantic \ubaa8\ub378\uc758 \uc608\uc2dc\uc785\ub2c8\ub2e4.<\/p>\n<pre><code>from pydantic import BaseModel, EmailStr, conint\n\nclass User(BaseModel):\n    name: str\n    email: EmailStr\n    age: conint(ge=0)  # 0 \uc774\uc0c1\uc758 \uc815\uc218<\/code><\/pre>\n<p>\uc704\uc758 \ubaa8\ub378\uc740 \uc0ac\uc6a9\uc790\uc758 \uc774\ub984, \uc774\uba54\uc77c, \ub098\uc774\ub97c \uc800\uc7a5\ud558\ub294 \uad6c\uc870\uccb4\ub97c \uc815\uc758\ud569\ub2c8\ub2e4. \uc5ec\uae30\uc11c <code>EmailStr<\/code>\ub294 \uc720\ud6a8\ud55c \uc774\uba54\uc77c \ud615\uc2dd\uc778\uc9c0 \uac80\uc0ac\ud558\uba70, <code>conint<\/code>\ub294 \uc815\uc218 \uac12\uc744 \uae30\uc900\uc73c\ub85c \uc81c\uc57d \uc870\uac74\uc744 \uc124\uc815\ud569\ub2c8\ub2e4.<\/p>\n<h3>2.2 FastAPI \uc5d4\ub4dc\ud3ec\uc778\ud2b8\uc5d0\uc11c \ub370\uc774\ud130 \uac80\uc99d\ud558\uae30<\/h3>\n<p>\uc774\uc81c \uc774 Pydantic \ubaa8\ub378\uc744 FastAPI\uc758 \uc5d4\ub4dc\ud3ec\uc778\ud2b8\uc5d0 \uc0ac\uc6a9\ud558\uc5ec \ud074\ub77c\uc774\uc5b8\ud2b8\ub85c\ubd80\ud130 \uc624\ub294 \uc694\uccad\uc744 \uac80\uc99d\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>from fastapi import FastAPI, HTTPException\n\napp = FastAPI()\n\n@app.post(\"\/users\/\")\nasync def create_user(user: User):\n    return user<\/code><\/pre>\n<p>\uc704\uc758 \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub294 POST \uc694\uccad\uc744 \ucc98\ub9ac\ud558\uace0, \uc694\uccad \ubcf8\ubb38\uc5d0\uc11c \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uac00\uc838\uc640 \uac80\uc99d\ud569\ub2c8\ub2e4. \ub9cc\uc57d \uc694\uccad \ub370\uc774\ud130\uac00 \uc720\ud6a8\ud558\uc9c0 \uc54a\ub2e4\uba74 FastAPI\ub294 \uc790\ub3d9\uc73c\ub85c 422 Unprocessable Entity \uc624\ub958\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/p>\n<h2>3. \uc751\ub2f5 \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658<\/h2>\n<p>FastAPI\ub294 \uc751\ub2f5 \ub370\uc774\ud130\ub3c4 Pydantic \ubaa8\ub378\uc744 \uc0ac\uc6a9\ud558\uc5ec \ucd94\ucc9c\ud569\ub2c8\ub2e4. \uc774\ub294 \uc751\ub2f5 \ud615\uc2dd\uc744 \uc77c\uad00\ub418\uac8c \uc720\uc9c0\ud558\uace0 \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \ubc1b\uc744 \ub370\uc774\ud130\ub97c \uc815\ud655\ud788 \uc54c\uace0 \uc788\uac8c \ud569\ub2c8\ub2e4.<\/p>\n<h3>3.1 \uc751\ub2f5 \ubaa8\ub378 \uc815\uc758\ud558\uae30<\/h3>\n<p>\uc751\ub2f5 \ub370\uc774\ud130\uc758 \ud615\ud0dc\ub3c4 Pydantic \ubaa8\ub378\ub85c \uc815\uc758\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc0ac\uc6a9\uc790\uac00 \uc0dd\uc131\ub41c \ud6c4 \ubc18\ud658\ud560 \ub370\uc774\ud130\uc758 \ud615\ud0dc\ub97c \uc815\uc758\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>class UserResponse(BaseModel):\n    id: int\n    name: str\n    email: EmailStr<\/code><\/pre>\n<h3>3.2 \uc5d4\ub4dc\ud3ec\uc778\ud2b8\uc5d0\uc11c \uc751\ub2f5 \ub370\uc774\ud130 \uc0ac\uc6a9\ud558\uae30<\/h3>\n<pre><code>@app.post(\"\/users\/\", response_model=UserResponse)\nasync def create_user(user: User):\n    user_id = 1  # \uc608\ub97c \ub4e4\uc5b4, \uc0ac\uc6a9\uc790 ID\ub97c 1\ub85c \uc124\uc815\n    return UserResponse(id=user_id, name=user.name, email=user.email)<\/code><\/pre>\n<p>\uc774\uc81c \uc751\ub2f5 \ub370\uc774\ud130\ub294 <code>UserResponse<\/code> \ubaa8\ub378\uc5d0 \ub530\ub77c \uac80\uc99d\ub418\uace0 \ubcc0\ud658\ub429\ub2c8\ub2e4. \ud074\ub77c\uc774\uc5b8\ud2b8\ub294 \uba85\ud655\ud558\uac8c \uc5b4\ub5a4 \ud615\ud0dc\uc758 \ub370\uc774\ud130\ub97c \ubc1b\uc744 \uc218 \uc788\ub294\uc9c0 \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>4. \ub370\uc774\ud130 \ubcc0\ud658<\/h2>\n<p>FastAPI\ub294 \uc694\uccad \ub370\uc774\ud130 \ubc0f \uc751\ub2f5 \ub370\uc774\ud130\uc758 \uad6c\uc870\ub97c \ubcc0\ud658\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 UUID \ud615\uc2dd\uc758 ID\ub97c \ubcf4\ub0b8\ub2e4\uace0 \uac00\uc815\ud560 \ub54c, \uc774\ub97c \uc815\uc218\ud615 ID\ub85c \ubcc0\ud658\ud558\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud569\ub2c8\ub2e4.<\/p>\n<h3>4.1 UUID \uac80\uc99d \ubc0f \ubcc0\ud658<\/h3>\n<pre><code>from uuid import UUID\n\nclass User(BaseModel):\n    name: str\n    email: EmailStr\n    id: UUID  # UUID\ub85c ID\ub97c \uc815\uc758<\/code><\/pre>\n<p>\uc774 \uacbd\uc6b0 FastAPI\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \ubcf4\ub0b8 \ub370\uc774\ud130\ub97c \uc790\ub3d9\uc73c\ub85c UUID \ud615\ud0dc\ub85c \ubcc0\ud658\ud569\ub2c8\ub2e4.<\/p>\n<h3>4.2 \ubcc0\ud658 \uc608\uc81c \ucf54\ub4dc<\/h3>\n<pre><code>@app.post(\"\/users\/\", response_model=UserResponse)\nasync def create_user(user: User):\n    user_id = str(user.id)  # UUID\uc5d0\uc11c \ubb38\uc790\uc5f4\ub85c \ubcc0\ud658\n    # DB\uc5d0 \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uc800\uc7a5\ud558\ub294 \ub85c\uc9c1 \ucd94\uac00\n    return UserResponse(id=user_id, name=user.name, email=user.email)<\/code><\/pre>\n<h2>5. \uc804\uccb4 \uc608\uc81c<\/h2>\n<p>\uc804\uccb4\uc801\uc778 \ucf54\ub4dc\ub97c \uc885\ud569\ud558\uc5ec FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uad6c\ud604\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc544\ub798 \uc608\uc2dc\ub294 \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uc0dd\uc131\ud558\ub294 API\ub85c, \ub370\uc774\ud130 \uac80\uc99d \ubc0f \uc751\ub2f5 \ubcc0\ud658\uc744 \ud3ec\ud568\ud569\ub2c8\ub2e4.<\/p>\n<pre><code>from fastapi import FastAPI, HTTPException\nfrom pydantic import BaseModel, EmailStr, conint\nfrom uuid import UUID\nimport uvicorn\n\nclass User(BaseModel):\n    name: str\n    email: EmailStr\n    id: UUID\n\nclass UserResponse(BaseModel):\n    id: str\n    name: str\n    email: EmailStr\n\napp = FastAPI()\n\n@app.post(\"\/users\/\", response_model=UserResponse)\nasync def create_user(user: User):\n    user_id = str(user.id)  # UUID\uc5d0\uc11c \ubb38\uc790\uc5f4\ub85c \ubcc0\ud658\n    # DB\uc5d0 \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \uc800\uc7a5\ud558\ub294 \ub85c\uc9c1 \ucd94\uac00\n    return UserResponse(id=user_id, name=user.name, email=user.email)\n\nif __name__ == \"__main__\":\n    uvicorn.run(app, host=\"0.0.0.0\", port=8000)<\/code><\/pre>\n<h2>6. \uacb0\ub860<\/h2>\n<p>FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130\uc758 \uac80\uc99d \ubc0f \ubcc0\ud658 \uacfc\uc815\uc744 \uac04\ud3b8\ud558\uac8c \ucc98\ub9ac\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uc774\ub294 \uc11c\ubc84\uc758 \uc548\uc815\uc131\uc744 \uc99d\uac00\uc2dc\ud0a4\uace0, \ud074\ub77c\uc774\uc5b8\ud2b8\uc640\uc758 \ud1b5\uc2e0\uc744 \uba85\ud655\ud558\uac8c \ud558\uc5ec \uac1c\ubc1c \ud6a8\uc728\uc131\uc744 \ub192\uc774\ub294 \ub370 \uae30\uc5ec\ud569\ub2c8\ub2e4. FastAPI\uc758 \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658 \uae30\ub2a5\uc744 \ud65c\uc6a9\ud558\uba74, \ubcf5\uc7a1\ud55c \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \uac04\ub2e8\ud558\uac8c \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc774 \uae00\uc744 \ud1b5\ud574 FastAPI\uc758 \uc7a5\uc810\uacfc \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658 \ud504\ub85c\uc138\uc2a4\ub97c \uc774\ud574\ud558\uace0, \uc2e4\uc81c \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uac1c\ubc1c\uc5d0 \uc801\uc6a9\ud560 \uc218 \uc788\uac8c \ub418\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4.<\/p>\n<h2>7. \ucc38\uace0 \ubb38\uc11c<\/h2>\n<ul>\n<li><a href=\"https:\/\/fastapi.tiangolo.com\/\">FastAPI \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<li><a href=\"https:\/\/pydantic-docs.helpmanual.io\/\">Pydantic \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>FastAPI\ub294 \uac04\ub2e8\ud558\uace0 \ud6a8\uc728\uc801\uc778 \uc6f9 API\ub97c \uad6c\ucd95\ud560 \uc218 \uc788\ub294 \ud604\ub300\uc801\uc778 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. Python\uc758 \ud0c0\uc785 \ud78c\ud2b8\ub97c \uc801\uadf9\uc801\uc73c\ub85c \ud65c\uc6a9\ud558\uc5ec \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uc744 \ub192\uc774\uace0, \uc790\ub3d9\uc73c\ub85c OpenAPI \ubc0f JSON Schema\ub97c \uc0dd\uc131\ud558\ub294 \ub4f1\uc758 \ud2b9\uc131\uc744 \uac16\ucd94\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\uc5d0\uc11c \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130\uc758 \uac80\uc99d \ubc0f \ubcc0\ud658 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \ub370\uc774\ud130 \uac80\uc99d\uc758 \ud544\uc694\uc131 \uc6f9 \uc11c\ubc84\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\ub85c\ubd80\ud130 \ub2e4\uc591\ud55c \ud615\ud0dc\uc758 \ub370\uc774\ud130 \uc694\uccad\uc744 \ubc1b\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38514\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658&#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-38514","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, \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658 - \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\/38514\/\" \/>\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, \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"FastAPI\ub294 \uac04\ub2e8\ud558\uace0 \ud6a8\uc728\uc801\uc778 \uc6f9 API\ub97c \uad6c\ucd95\ud560 \uc218 \uc788\ub294 \ud604\ub300\uc801\uc778 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. Python\uc758 \ud0c0\uc785 \ud78c\ud2b8\ub97c \uc801\uadf9\uc801\uc73c\ub85c \ud65c\uc6a9\ud558\uc5ec \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uc744 \ub192\uc774\uace0, \uc790\ub3d9\uc73c\ub85c OpenAPI \ubc0f JSON Schema\ub97c \uc0dd\uc131\ud558\ub294 \ub4f1\uc758 \ud2b9\uc131\uc744 \uac16\ucd94\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\uc5d0\uc11c \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130\uc758 \uac80\uc99d \ubc0f \ubcc0\ud658 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \ub370\uc774\ud130 \uac80\uc99d\uc758 \ud544\uc694\uc131 \uc6f9 \uc11c\ubc84\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\ub85c\ubd80\ud130 \ub2e4\uc591\ud55c \ud615\ud0dc\uc758 \ub370\uc774\ud130 \uc694\uccad\uc744 \ubc1b\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c &hellip; \ub354 \ubcf4\uae30 &quot;FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38514\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T18:17:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:07+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\/38514\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38514\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658\",\"datePublished\":\"2024-11-01T18:17:46+00:00\",\"dateModified\":\"2024-11-26T06:44:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38514\/\"},\"wordCount\":39,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"FastAPI\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38514\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38514\/\",\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T18:17:46+00:00\",\"dateModified\":\"2024-11-26T06:44:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38514\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38514\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38514\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658\"}]},{\"@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, \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658 - \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\/38514\/","og_locale":"ko_KR","og_type":"article","og_title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"FastAPI\ub294 \uac04\ub2e8\ud558\uace0 \ud6a8\uc728\uc801\uc778 \uc6f9 API\ub97c \uad6c\ucd95\ud560 \uc218 \uc788\ub294 \ud604\ub300\uc801\uc778 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. Python\uc758 \ud0c0\uc785 \ud78c\ud2b8\ub97c \uc801\uadf9\uc801\uc73c\ub85c \ud65c\uc6a9\ud558\uc5ec \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uc744 \ub192\uc774\uace0, \uc790\ub3d9\uc73c\ub85c OpenAPI \ubc0f JSON Schema\ub97c \uc0dd\uc131\ud558\ub294 \ub4f1\uc758 \ud2b9\uc131\uc744 \uac16\ucd94\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ubc88 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\uc5d0\uc11c \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130\uc758 \uac80\uc99d \ubc0f \ubcc0\ud658 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. \ub370\uc774\ud130 \uac80\uc99d\uc758 \ud544\uc694\uc131 \uc6f9 \uc11c\ubc84\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\ub85c\ubd80\ud130 \ub2e4\uc591\ud55c \ud615\ud0dc\uc758 \ub370\uc774\ud130 \uc694\uccad\uc744 \ubc1b\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c &hellip; \ub354 \ubcf4\uae30 \"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658\"","og_url":"https:\/\/atmokpo.com\/w\/38514\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T18:17:46+00:00","article_modified_time":"2024-11-26T06:44:07+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\/38514\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38514\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658","datePublished":"2024-11-01T18:17:46+00:00","dateModified":"2024-11-26T06:44:07+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38514\/"},"wordCount":39,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["FastAPI\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38514\/","url":"https:\/\/atmokpo.com\/w\/38514\/","name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T18:17:46+00:00","dateModified":"2024-11-26T06:44:07+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38514\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38514\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38514\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, \uc694\uccad \ubc0f \uc751\ub2f5 \ub370\uc774\ud130 \uac80\uc99d \ubc0f \ubcc0\ud658"}]},{"@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\/38514","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=38514"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38514\/revisions"}],"predecessor-version":[{"id":38515,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38514\/revisions\/38515"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}