{"id":38598,"date":"2024-11-01T18:18:33","date_gmt":"2024-11-01T18:18:33","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38598"},"modified":"2024-11-26T06:43:53","modified_gmt":"2024-11-26T06:43:53","slug":"fastapi-%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c-restful-api-%ec%84%a4%ea%b3%84-%ec%9b%90%ec%b9%99%ea%b3%bc-fastapi%ec%9d%98-%ed%99%9c%ec%9a%a9","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38598\/","title":{"rendered":"FastAPI \uc11c\ubc84\uac1c\ubc1c, RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9"},"content":{"rendered":"<p><body><\/p>\n<header>\n<p>RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9<\/p>\n<\/header>\n<section>\n<h2>1. FastAPI\ub780?<\/h2>\n<p>FastAPI\ub294 Python\uc73c\ub85c \uc791\uc131\ub41c \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube60\ub974\uace0, \uc0ac\uc6a9\ud558\uae30 \uc26c\uc6b0\uba70, RESTful API \uc11c\ubc84\ub97c \uad6c\ucd95\ud558\uae30 \uc704\ud574 \ucd5c\uc801\ud654\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774 \ud504\ub808\uc784\uc6cc\ud06c\ub294 Pydantic\uacfc Starlette\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uace0 \uc788\uc73c\uba70, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\uc5ec \ub192\uc740 \uc131\ub2a5\uc744 \uc790\ub791\ud569\ub2c8\ub2e4. FastAPI\uc758 \uc8fc\uc694 \uac15\uc810 \uc911 \ud558\ub098\ub294 \ub370\uc774\ud130 \uc720\ud6a8\uc131 \uac80\uc0ac\uc640 \uc2a4\ud0a4\ub9c8 \uc0dd\uc131\uc744 \uc790\ub3d9\uc73c\ub85c \uc218\ud589\ud560 \uc218 \uc788\ub2e4\ub294 \uc810\uc785\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uae30\ub2a5\uc740 \uac1c\ubc1c\uc790 \uacbd\ud5d8\uc744 \ud5a5\uc0c1\uc2dc\ud0a4\uace0 \uac1c\ubc1c \uc2dc\uac04\uc744 \ub2e8\ucd95\uc2dc\ud0b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>2. RESTful API\ub780?<\/h2>\n<p>REST(Representational State Transfer)\ub294 \uc6f9\uc5d0\uc11c \uc790\uc6d0\uc744 \uc815\uc758\ud558\uace0 \uc790\uc6d0\uc5d0 \ub300\ud55c \uc0c1\ud638\uc791\uc6a9\uc744 \uc815\uc758\ud558\ub294 \uc544\ud0a4\ud14d\ucc98 \uc2a4\ud0c0\uc77c\uc785\ub2c8\ub2e4. RESTful API\ub294 \uc774\ub7ec\ud55c \uc6d0\uce59\uc744 \ub530\ub974\ub294 \uc6f9 \uc11c\ube44\uc2a4\ub85c, \uc790\uc6d0\uc5d0 HTTP \uba54\uc11c\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc811\uadfc\ud569\ub2c8\ub2e4. REST \uc544\ud0a4\ud14d\ucc98\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uae30\ubcf8 \uc6d0\uce59\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uc790\uc6d0 \uc9c0\ud5a5: API\ub294 \uace0\uc720\ud55c URI\ub85c \uc790\uc6d0\uc744 \uc2dd\ubcc4\ud569\ub2c8\ub2e4.<\/li>\n<li>\ubb34\uc0c1\ud0dc: \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \uc0c1\ud638\uc791\uc6a9\uc740 \ub3c5\ub9bd\uc801\uc774\uba70, \uc11c\ubc84\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\uc758 \uc0c1\ud0dc\ub97c \uc720\uc9c0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\ud45c\ud604: \uc790\uc6d0\uc740 \ub2e4\uc591\ud55c \ud45c\ud604 \ud615\uc2dd(JSON, XML \ub4f1)\uc73c\ub85c \uc81c\uacf5\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>HTTP \uba54\uc11c\ub4dc \ud65c\uc6a9: GET, POST, PUT, DELETE \ub4f1\uc758 \uba54\uc11c\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc790\uc6d0\uc5d0 \ub300\ud55c CRUD(Create, Read, Update, Delete) \uc791\uc5c5\uc744 \uc218\ud589\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>3. FastAPI \uc124\uce58\ud558\uae30<\/h2>\n<p>FastAPI\ub97c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574\uc11c\ub294 Python\uacfc pip\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. \uc544\ub798\ub294 FastAPI\uc640 \ud568\uaed8 Uvicorn \uc11c\ubc84\ub97c \uc124\uce58\ud558\ub294 \ubc29\ubc95\uc785\ub2c8\ub2e4:<\/p>\n<pre><code>pip install fastapi uvicorn<\/code><\/pre>\n<p>Uvicorn\uc740 FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2e4\ud589\ud558\ub294 ASGI \uc11c\ubc84\uc785\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>4. FastAPI\ub85c \uac04\ub2e8\ud55c RESTful API \uad6c\ucd95\ud558\uae30<\/h2>\n<h3>4.1. \uae30\ubcf8 \uc608\uc81c<\/h3>\n<p>FastAPI\ub85c \uac04\ub2e8\ud55c RESTful API\ub97c \ub9cc\ub4e4\uc5b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \ucc98\ub9ac\ud558\ub294 API\uc785\ub2c8\ub2e4:<\/p>\n<pre><code>from fastapi import FastAPI\nfrom pydantic import BaseModel\n\napp = FastAPI()\n\nclass User(BaseModel):\n    id: int\n    name: str\n    age: int\n\nusers = []\n\n@app.post(\"\/users\/\", response_model=User)\ndef create_user(user: User):\n    users.append(user)\n    return user\n\n@app.get(\"\/users\/\")\ndef get_users():\n    return users\n\n@app.get(\"\/users\/{user_id}\", response_model=User)\ndef get_user(user_id: int):\n    for user in users:\n        if user.id == user_id:\n            return user\n    return {\"error\": \"User not found\"}\n\n@app.delete(\"\/users\/{user_id}\")\ndef delete_user(user_id: int):\n    for user in users:\n        if user.id == user_id:\n            users.remove(user)\n            return {\"message\": \"User deleted successfully\"}\n    return {\"error\": \"User not found\"}<\/code><\/pre>\n<p>\uc704\uc758 \ucf54\ub4dc\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0ac\uc6a9\uc790 \uc815\ubcf4\ub97c \ucd94\uac00, \uc870\ud68c, \uc0ad\uc81c\ud560 \uc218 \uc788\ub294 \uac04\ub2e8\ud55c API\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>5. RESTful API \uc124\uacc4 \uc6d0\uce59<\/h2>\n<h3>5.1. URI \uc124\uacc4<\/h3>\n<p>RESTful API\uc5d0\uc11c\ub294 \uc790\uc6d0\uc758 URI\ub97c \uba85\ud655\ud558\uac8c \uc124\uacc4\ud558\ub294 \uac83\uc774 \uc911\uc694\ud569\ub2c8\ub2e4. URI\ub294 \uc790\uc6d0\uc744 \ud45c\ud604\ud558\uace0, \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 REST API\ub97c \ud1b5\ud574 \uc790\uc6d0\uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\uac8c \ud569\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \uc88b\uc740 URI \uc124\uacc4\uc758 \uc608\uc785\ub2c8\ub2e4:<\/p>\n<ul>\n<li>GET \/users: \ubaa8\ub4e0 \uc0ac\uc6a9\uc790 \ubaa9\ub85d \uc870\ud68c<\/li>\n<li>POST \/users: \uc0c8 \uc0ac\uc6a9\uc790 \ucd94\uac00<\/li>\n<li>GET \/users\/{id}: \ud2b9\uc815 \uc0ac\uc6a9\uc790 \uc870\ud68c<\/li>\n<li>DELETE \/users\/{id}: \ud2b9\uc815 \uc0ac\uc6a9\uc790 \uc0ad\uc81c<\/li>\n<\/ul>\n<p>URI\ub97c \uc124\uacc4\ud560 \ub54c\ub294 \uba85\uc0ac \ud615\ud0dc\ub97c \uc0ac\uc6a9\ud558\ub294 \uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4. \ub3d9\uc0ac\ub294 HTTP \uba54\uc11c\ub4dc\ub97c \ud1b5\ud574 \uc804\ub2ec\ub429\ub2c8\ub2e4.<\/p>\n<h3>5.2. HTTP \uba54\uc11c\ub4dc \uc0ac\uc6a9<\/h3>\n<p>RESTful API\uc5d0\uc11c\ub294 \uc790\uc6d0\uc5d0 \ub300\ud55c \ud589\uc704\ub97c \ud45c\ud604\ud558\uae30 \uc704\ud574 HTTP \uba54\uc11c\ub4dc\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \uac01 \uba54\uc11c\ub4dc\uc758 \uc6a9\ub3c4\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>GET<\/strong>: \uc11c\ubc84\ub85c\ubd80\ud130 \uc790\uc6d0 \uc870\ud68c<\/li>\n<li><strong>POST<\/strong>: \uc11c\ubc84\uc5d0 \uc0c8\ub85c\uc6b4 \uc790\uc6d0 \uc0dd\uc131<\/li>\n<li><strong>PUT<\/strong>: \uc11c\ubc84\uc758 \uc790\uc6d0 \uc218\uc815<\/li>\n<li><strong>DELETE<\/strong>: \uc11c\ubc84\uc758 \uc790\uc6d0 \uc0ad\uc81c<\/li>\n<\/ul>\n<h3>5.3. \uc0c1\ud0dc \ucf54\ub4dc \uc0ac\uc6a9<\/h3>\n<p>RESTful API\uc5d0\uc11c\ub294 \uc801\uc808\ud55c HTTP \uc0c1\ud0dc \ucf54\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uac8c \uc694\uccad\uc758 \uacb0\uacfc\ub97c \uc804\ub2ec\ud574\uc57c \ud569\ub2c8\ub2e4. \uc8fc\uc694 \uc0c1\ud0dc \ucf54\ub4dc\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li><strong>200 OK<\/strong>: \uc694\uccad \uc131\uacf5<\/li>\n<li><strong>201 Created<\/strong>: \uc790\uc6d0 \uc0dd\uc131 \uc131\uacf5<\/li>\n<li><strong>204 No Content<\/strong>: \uc790\uc6d0 \uc0ad\uc81c \uc131\uacf5<\/li>\n<li><strong>404 Not Found<\/strong>: \uc694\uccad\ud55c \uc790\uc6d0 \uc5c6\uc74c<\/li>\n<li><strong>400 Bad Request<\/strong>: \uc798\ubabb\ub41c \uc694\uccad<\/li>\n<li><strong>500 Internal Server Error<\/strong>: \uc11c\ubc84 \uc624\ub958<\/li>\n<\/ul>\n<\/section>\n<section>\n<h2>6. FastAPI\uc758 \uace0\uae09 \uae30\ub2a5<\/h2>\n<h3>6.1. \ub370\uc774\ud130 \uac80\uc99d \ubc0f \uc2a4\ud0a4\ub9c8<\/h3>\n<p>FastAPI\ub294 Pydantic\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130 \uac80\uc99d\uacfc \uc2a4\ud0a4\ub9c8 \uad00\ub9ac\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc694\uccad\uc758 \ubcf8\ubb38\uc5d0\uc11c \uc804\ub2ec\ub418\ub294 \ub370\uc774\ud130\uc5d0 \ub300\ud574 \uc790\ub3d9\uc73c\ub85c \uac80\uc99d\uc744 \uc218\ud589\ud558\uace0, \uc798\ubabb\ub41c \ub370\uc774\ud130\uac00 \ub4e4\uc5b4\uc624\uba74 \uc5d0\ub7ec\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ub2e4\uc74c\uacfc \uac19\uc774 \ub370\uc774\ud130 \uac80\uc99d\uc744 \ucd94\uac00\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>from pydantic import EmailStr\n\nclass User(BaseModel):\n    id: int\n    name: str\n    age: int\n    email: EmailStr<\/code><\/pre>\n<p>\uc5ec\uae30\uc11c email \ud544\ub4dc\ub294 \uc774\uba54\uc77c \ud615\uc2dd\uc758 \ubb38\uc790\uc5f4\ub9cc \ud5c8\uc6a9\ub429\ub2c8\ub2e4.<\/p>\n<h3>6.2. \uc758\uc874\uc131 \uc8fc\uc785<\/h3>\n<p>FastAPI\ub294 \uc758\uc874\uc131 \uc8fc\uc785\uc744 \uc9c0\uc6d0\ud558\uc5ec \ucf54\ub4dc\uc758 \uc7ac\uc0ac\uc6a9\uc131\uc744 \ub192\uc774\uace0, \ud14c\uc2a4\ud2b8\ub97c \uc27d\uac8c \ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc758\uc874\uc131\uc740 FastAPI\uc758 @Depends\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc815\uc758\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4:<\/p>\n<pre><code>from fastapi import Depends\n\ndef get_query_param(skip: int = 0, limit: int = 10):\n    return {\"skip\": skip, \"limit\": limit}\n\n@app.get(\"\/items\/\")\ndef get_items(queries: dict = Depends(get_query_param)):\n    return {\"queries\": queries}<\/code><\/pre>\n<p>\uc5ec\uae30\uc11c get_query_param \ud568\uc218\ub294 \ucffc\ub9ac \ud30c\ub77c\ubbf8\ud130\ub97c \ucc98\ub9ac\ud558\ub294 \uc758\uc874\uc131\uc73c\ub85c \uc0ac\uc6a9\ub429\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>7. FastAPI\uc640 Swagger UI<\/h2>\n<p>FastAPI\ub294 Swagger UI\ub97c \uc790\ub3d9\uc73c\ub85c \uc0dd\uc131\ud558\uc5ec API \ubb38\uc11c\ub97c \uc27d\uac8c \ubcfc \uc218 \uc788\ub3c4\ub85d \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc11c\ubc84\ub97c \uc2e4\ud589\ud55c \ud6c4, \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c <code>http:\/\/localhost:8000\/docs<\/code>\ub85c \uc774\ub3d9\ud558\uba74 API \ubb38\uc11c\ub97c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \ubb38\uc11c\uc5d0\uc11c\ub294 \uac01 API \uc5d4\ub4dc\ud3ec\uc778\ud2b8\uc758 \uc694\uccad \ubc0f \uc751\ub2f5 \ud615\uc2dd, \uc124\uba85 \ub4f1\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>8. FastAPI \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870<\/h2>\n<p>FastAPI \ud504\ub85c\uc81d\ud2b8\uc758 \uad6c\uc870\ub294 \uc758\uacac\uc5d0 \ub530\ub77c \ub2e4\ub97c \uc218 \uc788\uc9c0\ub9cc, \uc77c\ubc18\uc801\uc73c\ub85c \ub2e4\uc74c\uacfc \uac19\uc774 \uad6c\uc131\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>my_fastapi_app\/\n    \u251c\u2500\u2500 app\/\n    \u2502   \u251c\u2500\u2500 __init__.py\n    \u2502   \u251c\u2500\u2500 main.py\n    \u2502   \u251c\u2500\u2500 models.py\n    \u2502   \u251c\u2500\u2500 routers\/\n    \u2502   \u2502   \u251c\u2500\u2500 __init__.py\n    \u2502   \u2502   \u251c\u2500\u2500 user.py\n    \u2502   \u2502   \u2514\u2500\u2500 item.py\n    \u2502   \u2514\u2500\u2500 services\/\n    \u2502       \u251c\u2500\u2500 __init__.py\n    \u2502       \u2514\u2500\u2500 user_service.py\n    \u2514\u2500\u2500 requirements.txt<\/code><\/pre>\n<p>\uc5ec\uae30\uc5d0\uc11c <code>main.py<\/code>\ub294 FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc2e4\ud589\ud558\ub294 \ud30c\uc77c\uc774\uba70, <code>models.py<\/code>\ub294 \ub370\uc774\ud130 \ubaa8\ub378\uc744 \uc815\uc758\ud558\uace0, <code>routers\/<\/code>\uc5d0\ub294 \uac01\uac01\uc758 API \uc5d4\ub4dc\ud3ec\uc778\ud2b8\ub97c \uc815\uc758\ud558\ub294 \ub77c\uc6b0\ud130\ub97c \uad6c\ud604\ud569\ub2c8\ub2e4. <code>services\/<\/code> \ud3f4\ub354\uc5d0\ub294 \ube44\uc988\ub2c8\uc2a4 \ub85c\uc9c1\uc744 \ubd84\ub9ac\ud558\uc5ec \uad00\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>9. FastAPI\ub85c \uc548\uc804\ud55c API \ub9cc\ub4e4\uae30<\/h2>\n<h3>9.1. \uc778\uc99d \ubc0f \uc778\uac00<\/h3>\n<p>FastAPI\ub294 OAuth2\uc640 JWT(Json Web Token)\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc778\uc99d \ubc0f \uc778\uac00 \uae30\ub2a5\uc744 \uc27d\uac8c \uad6c\ud604\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, JWT \ud1a0\ud070\uc744 \uc0dd\uc131\ud558\uace0 \uac80\uc99d\ud558\ub294 \uac04\ub2e8\ud55c \ubc29\ubc95\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>from fastapi import Depends, HTTPException, status\nfrom fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm\nfrom jose import JWTError, jwt\n\noauth2_scheme = OAuth2PasswordBearer(tokenUrl=\"token\")\n\n@app.post(\"\/token\")\nasync def login(form: OAuth2PasswordRequestForm = Depends()):\n    # \uc0ac\uc6a9\uc790 \uc778\uc99d \ub85c\uc9c1 \uad6c\ud604 (mock)\n    if form.username == \"user\" and form.password == \"password\":\n        return {\"access_token\": \"your_token\", \"token_type\": \"bearer\"}\n    raise HTTPException(status_code=400, detail=\"Invalid credentials\")\n\n@app.get(\"\/users\/me\")\nasync def read_users_me(token: str = Depends(oauth2_scheme)):\n    # \ud1a0\ud070 \uac80\uc99d \ub85c\uc9c1 \uad6c\ud604<\/code><\/pre>\n<\/section>\n<section>\n<h2>10. FastAPI\uc5d0\uc11c \ud14c\uc2a4\ud2b8\ud558\uae30<\/h2>\n<p>FastAPI\ub294 \ud14c\uc2a4\ud2b8\ub97c \ub9e4\uc6b0 \uc27d\uac8c \ub9cc\ub4e4\uc5b4\uc90d\ub2c8\ub2e4. Python\uc758 \ube44\ub3d9\uae30 \ud14c\uc2a4\ud2b8 \uae30\ub2a5\uc744 \uc0ac\uc6a9\ud558\uc5ec API\ub97c \ud14c\uc2a4\ud2b8\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc544\ub798\ub294 \ud14c\uc2a4\ud2b8\uc758 \uac04\ub2e8\ud55c \uc608\uc785\ub2c8\ub2e4:<\/p>\n<pre><code>from fastapi.testclient import TestClient\nfrom app.main import app\n\nclient = TestClient(app)\n\ndef test_create_user():\n    response = client.post(\"\/users\/\", json={\"id\": 1, \"name\": \"John\", \"age\": 30})\n    assert response.status_code == 200\n    assert response.json() == {\"id\": 1, \"name\": \"John\", \"age\": 30}<\/code><\/pre>\n<p>\uc704\uc758 \uc608\uc81c\uc5d0\uc11c\ub294 FastAPI\uc758 TestClient\ub97c \uc0ac\uc6a9\ud558\uc5ec API \ud638\ucd9c\uc744 \ud14c\uc2a4\ud2b8\ud569\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>11. FastAPI \ubc30\ud3ec\ud558\uae30<\/h2>\n<p>FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ubc30\ud3ec\ud558\uae30 \uc704\ud574 Uvicorn\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc11c\ubc84\ub97c \uc2e4\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uae30\ubcf8\uc801\uc778 \uc2e4\ud589 \uba85\ub839\uc5b4\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload<\/code><\/pre>\n<p>\uc5ec\uae30\uc11c <code>--reload<\/code> \uc635\uc158\uc740 \uac1c\ubc1c \ubaa8\ub4dc\uc5d0\uc11c \uc18c\uc2a4 \ucf54\ub4dc\ub97c \uc218\uc815\ud560 \ub54c \uc790\ub3d9\uc73c\ub85c \uc11c\ubc84\ub97c \ub2e4\uc2dc \uc2dc\uc791\ud569\ub2c8\ub2e4. \ud504\ub85c\ub355\uc158 \ud658\uacbd\uc5d0\uc11c\ub294 `&#8211;host`, `&#8211;port`, `&#8211;reload` \uc635\uc158\uc744 \uc801\uc808\ud788 \uc124\uc815\ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<\/section>\n<section>\n<h2>12. \ub9c8\uce58\uba70<\/h2>\n<p>FastAPI\ub294 \uc190\uc26c\uc6b4 RESTful API \uac1c\ubc1c\uc744 \uc704\ud574 \ud544\uc694\ud55c \ubaa8\ub4e0 \uae30\ub2a5\uc744 \uc81c\uacf5\ud558\ub294 \uac15\ub825\ud55c \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. \uc774 \uae00\uc5d0\uc11c \ub2e4\ub8ec \ub0b4\uc6a9\uc744 \ud1b5\ud574 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec RESTful API\ub97c \uc124\uacc4\ud558\uace0 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc744 \uc775\ud614\uae30\ub97c \ubc14\ub78d\ub2c8\ub2e4. FastAPI\uc758 \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \ud65c\uc6a9\ud558\uc5ec \ub354\uc6b1 \ud6a8\uc728\uc801\uc774\uace0 \uc548\uc804\ud55c API\ub97c \uac1c\ubc1c\ud574\ubcf4\uc138\uc694.<\/p>\n<\/section>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9 1. FastAPI\ub780? FastAPI\ub294 Python\uc73c\ub85c \uc791\uc131\ub41c \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube60\ub974\uace0, \uc0ac\uc6a9\ud558\uae30 \uc26c\uc6b0\uba70, RESTful API \uc11c\ubc84\ub97c \uad6c\ucd95\ud558\uae30 \uc704\ud574 \ucd5c\uc801\ud654\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774 \ud504\ub808\uc784\uc6cc\ud06c\ub294 Pydantic\uacfc Starlette\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uace0 \uc788\uc73c\uba70, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\uc5ec \ub192\uc740 \uc131\ub2a5\uc744 \uc790\ub791\ud569\ub2c8\ub2e4. FastAPI\uc758 \uc8fc\uc694 \uac15\uc810 \uc911 \ud558\ub098\ub294 \ub370\uc774\ud130 \uc720\ud6a8\uc131 \uac80\uc0ac\uc640 \uc2a4\ud0a4\ub9c8 \uc0dd\uc131\uc744 \uc790\ub3d9\uc73c\ub85c \uc218\ud589\ud560 \uc218 \uc788\ub2e4\ub294 \uc810\uc785\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uae30\ub2a5\uc740 \uac1c\ubc1c\uc790 \uacbd\ud5d8\uc744 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38598\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;FastAPI \uc11c\ubc84\uac1c\ubc1c, RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9&#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-38598","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, RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9 - \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\/38598\/\" \/>\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, RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9 1. FastAPI\ub780? FastAPI\ub294 Python\uc73c\ub85c \uc791\uc131\ub41c \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube60\ub974\uace0, \uc0ac\uc6a9\ud558\uae30 \uc26c\uc6b0\uba70, RESTful API \uc11c\ubc84\ub97c \uad6c\ucd95\ud558\uae30 \uc704\ud574 \ucd5c\uc801\ud654\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774 \ud504\ub808\uc784\uc6cc\ud06c\ub294 Pydantic\uacfc Starlette\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uace0 \uc788\uc73c\uba70, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\uc5ec \ub192\uc740 \uc131\ub2a5\uc744 \uc790\ub791\ud569\ub2c8\ub2e4. FastAPI\uc758 \uc8fc\uc694 \uac15\uc810 \uc911 \ud558\ub098\ub294 \ub370\uc774\ud130 \uc720\ud6a8\uc131 \uac80\uc0ac\uc640 \uc2a4\ud0a4\ub9c8 \uc0dd\uc131\uc744 \uc790\ub3d9\uc73c\ub85c \uc218\ud589\ud560 \uc218 \uc788\ub2e4\ub294 \uc810\uc785\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uae30\ub2a5\uc740 \uac1c\ubc1c\uc790 \uacbd\ud5d8\uc744 &hellip; \ub354 \ubcf4\uae30 &quot;FastAPI \uc11c\ubc84\uac1c\ubc1c, RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38598\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T18:18:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:43:53+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/38598\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38598\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9\",\"datePublished\":\"2024-11-01T18:18:33+00:00\",\"dateModified\":\"2024-11-26T06:43:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38598\/\"},\"wordCount\":154,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"FastAPI\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38598\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38598\/\",\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T18:18:33+00:00\",\"dateModified\":\"2024-11-26T06:43:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38598\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38598\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38598\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9\"}]},{\"@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, RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9 - \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\/38598\/","og_locale":"ko_KR","og_type":"article","og_title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9 1. FastAPI\ub780? FastAPI\ub294 Python\uc73c\ub85c \uc791\uc131\ub41c \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \ube60\ub974\uace0, \uc0ac\uc6a9\ud558\uae30 \uc26c\uc6b0\uba70, RESTful API \uc11c\ubc84\ub97c \uad6c\ucd95\ud558\uae30 \uc704\ud574 \ucd5c\uc801\ud654\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc774 \ud504\ub808\uc784\uc6cc\ud06c\ub294 Pydantic\uacfc Starlette\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uace0 \uc788\uc73c\uba70, \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\uc5ec \ub192\uc740 \uc131\ub2a5\uc744 \uc790\ub791\ud569\ub2c8\ub2e4. FastAPI\uc758 \uc8fc\uc694 \uac15\uc810 \uc911 \ud558\ub098\ub294 \ub370\uc774\ud130 \uc720\ud6a8\uc131 \uac80\uc0ac\uc640 \uc2a4\ud0a4\ub9c8 \uc0dd\uc131\uc744 \uc790\ub3d9\uc73c\ub85c \uc218\ud589\ud560 \uc218 \uc788\ub2e4\ub294 \uc810\uc785\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uae30\ub2a5\uc740 \uac1c\ubc1c\uc790 \uacbd\ud5d8\uc744 &hellip; \ub354 \ubcf4\uae30 \"FastAPI \uc11c\ubc84\uac1c\ubc1c, RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9\"","og_url":"https:\/\/atmokpo.com\/w\/38598\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T18:18:33+00:00","article_modified_time":"2024-11-26T06:43:53+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/38598\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38598\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"FastAPI \uc11c\ubc84\uac1c\ubc1c, RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9","datePublished":"2024-11-01T18:18:33+00:00","dateModified":"2024-11-26T06:43:53+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38598\/"},"wordCount":154,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["FastAPI\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38598\/","url":"https:\/\/atmokpo.com\/w\/38598\/","name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T18:18:33+00:00","dateModified":"2024-11-26T06:43:53+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38598\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38598\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38598\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, RESTful API \uc124\uacc4 \uc6d0\uce59\uacfc FastAPI\uc758 \ud65c\uc6a9"}]},{"@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\/38598","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=38598"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38598\/revisions"}],"predecessor-version":[{"id":38599,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38598\/revisions\/38599"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}