{"id":38475,"date":"2024-11-01T18:17:23","date_gmt":"2024-11-01T18:17:23","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38475"},"modified":"2024-11-26T06:44:14","modified_gmt":"2024-11-26T06:44:14","slug":"fastapi-%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c-websocket%ec%9d%84-%ec%9d%b4%ec%9a%a9%ed%95%9c-%ec%8b%a4%ec%8b%9c%ea%b0%84-%ed%86%b5%ec%8b%a0-%ea%b5%ac%ed%98%84","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38475\/","title":{"rendered":"FastAPI \uc11c\ubc84\uac1c\ubc1c, WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604"},"content":{"rendered":"<p><body><\/p>\n<p>FastAPI\ub294 \ud604\ub300\uc801\uc778 \uc6f9 API\ub97c \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\ub3c4\ub85d \uc124\uacc4\ub41c \ud30c\uc774\uc36c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. RESTful API\ubfd0\ub9cc \uc544\ub2c8\ub77c WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uae30\ub2a5\uc744 \uc9c0\uc6d0\ud558\ub294\ub370, \uc774\ub97c \ud1b5\ud574 \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \uc591\ubc29\ud5a5 \ud1b5\uc2e0\uc774 \uac00\ub2a5\ud574\uc9d1\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec WebSocket\uc744 \ud1b5\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>1. FastAPI \uac1c\uc694<\/h2>\n<p>FastAPI\ub294 \uace0\uc131\ub2a5 \uc6f9 \uc11c\ubc84\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc774\uba70, \ub2e4\uc74c\uacfc \uac19\uc740 \uc8fc\uc694 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/p>\n<ul>\n<li>\ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d \uc9c0\uc6d0: \ube44\ub3d9\uae30 \ucc98\ub9ac\ub97c \ud1b5\ud574 \ub354 \ub9ce\uc740 \uc694\uccad\uc744 \ub3d9\uc2dc\uc5d0 \ucc98\ub9ac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\uc790\ub3d9 \ubb38\uc11c\ud654: Swagger UI\uc640 ReDoc\uc744 \ud1b5\ud574 \uc790\ub3d9\uc73c\ub85c API \ubb38\uc11c\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/li>\n<li>Python \ud0c0\uc785 \ud78c\ud2b8 \ud65c\uc6a9: \ud0c0\uc785 \ud78c\ud2b8\ub97c \ud1b5\ud574 \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uacfc \uc720\uc9c0\ubcf4\uc218\uc131\uc744 \ub192\uc785\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>2. WebSocket\uc774\ub780?<\/h2>\n<p>WebSocket\uc740 \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \uc804\uc774\uc911(Full-Duplex) \ud1b5\uc2e0\uc744 \uac00\ub2a5\ud558\uac8c \ud558\ub294 \ud504\ub85c\ud1a0\ucf5c\uc785\ub2c8\ub2e4. HTTP\uc640\ub294 \ub2e4\ub974\uac8c, WebSocket\uc744 \uc0ac\uc6a9\ud558\uba74 \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \uc11c\ubc84\uc5d0 \uc694\uccad\ud558\uc9c0 \uc54a\uace0\ub3c4 \uc11c\ubc84\ub85c\ubd80\ud130 \uc2e4\uc2dc\uac04 \uc5c5\ub370\uc774\ud2b8\ub97c \ubc1b\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ub85c \uc778\ud574 \ucc44\ud305 \uc751\uc6a9 \ud504\ub85c\uadf8\ub7a8, \uc2e4\uc2dc\uac04 \ub370\uc774\ud130 \ud53c\ub4dc \ub4f1\uacfc \uac19\uc740 \ub2e4\uc591\ud55c \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc5d0 \uc801\ud569\ud569\ub2c8\ub2e4.<\/p>\n<h2>3. FastAPI \uc124\uce58\ud558\uae30<\/h2>\n<p>FastAPI\ub97c \uc0ac\uc6a9\ud558\ub824\uba74 \uba3c\uc800 FastAPI\uc640 ASGI \uc11c\ubc84(Uvicorn)\ub97c \uc124\uce58\ud574\uc57c \ud569\ub2c8\ub2e4. \ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc124\uce58\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>pip install fastapi uvicorn<\/code><\/pre>\n<h2>4. FastAPI WebSocket \uc608\uc81c<\/h2>\n<p>\uc774\uc81c FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec \uac04\ub2e8\ud55c WebSocket \uc11c\ubc84\ub97c \uad6c\ud604\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774 \uc608\uc81c\uc5d0\uc11c\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \uc11c\ubc84\uc5d0 \uc5f0\uacb0\ud558\uace0 \uba54\uc2dc\uc9c0\ub97c \uc8fc\uace0\ubc1b\ub294 \uae30\ubcf8\uc801\uc778 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>4.1 \uae30\ubcf8 WebSocket \uc11c\ubc84 \ub9cc\ub4e4\uae30<\/h3>\n<pre><code>from fastapi import FastAPI, WebSocket\nfrom fastapi.responses import HTMLResponse\n\napp = FastAPI()\n\nhtml = \"\"\"\n<!DOCTYPE html>\n\n<html lang=\"ko\">\n<head>\n    <meta charset=\"utf-8\"\/>\n    <meta content=\"width=device-width, initial-scale=1.0\" name=\"viewport\"\/>\n    <title>WebSocket Chat<\/title>\n<\/head>\n<body>\n    <h1>WebSocket Chat<\/h1>\n    <textarea cols=\"30\" disabled=\"\" id=\"chat\" rows=\"10\"><\/textarea><br\/>\n    <input id=\"message\" placeholder=\"\uba54\uc2dc\uc9c0\ub97c \uc785\ub825\ud558\uc138\uc694...\" type=\"text\"\/>\n    <button onclick=\"sendMessage()\">\uc804\uc1a1<\/button>\n\n    <script>\n        let ws = new WebSocket(\"ws:\/\/localhost:8000\/ws\");\n        \n        ws.onmessage = function(event) {\n            let chat = document.getElementById(\"chat\");\n            chat.value += event.data + '\\\\n';\n        };\n\n        function sendMessage() {\n            let input = document.getElementById(\"message\");\n            ws.send(input.value);\n            input.value = '';\n        }\n    <\/script>\n<\/body>\n<\/html>\n\"\"\"\n\n@app.get(\"\/\")\nasync def get():\n    return HTMLResponse(html)\n\n@app.websocket(\"\/ws\")\nasync def websocket_endpoint(websocket: WebSocket):\n    await websocket.accept()\n    while True:\n        data = await websocket.receive_text()\n        await websocket.send_text(f\"\uba54\uc2dc\uc9c0 \uc218\uc2e0: {data}\")\n<\/code><\/pre>\n<h3>4.2 \ucf54\ub4dc \uc124\uba85<\/h3>\n<p>\uc704 \ucf54\ub4dc\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec WebSocket \uc11c\ubc84\ub97c \uad6c\ud604\ud55c \uac83\uc785\ub2c8\ub2e4. <\/p>\n<ul>\n<li><code>FastAPI<\/code> \ubaa8\ub4c8\uc5d0\uc11c <code>FastAPI<\/code>\uc640 <code>WebSocket<\/code>\ub97c \uac00\uc838\uc635\ub2c8\ub2e4.<\/li>\n<li><code>html<\/code> \ubcc0\uc218\uc5d0 \ud074\ub77c\uc774\uc5b8\ud2b8 \uce21 HTML \ucf54\ub4dc\ub97c \uc800\uc7a5\ud569\ub2c8\ub2e4. \ud074\ub77c\uc774\uc5b8\ud2b8\ub294 \uc774 HTML \ucf54\ub4dc\ub97c \ud1b5\ud574 WebSocket \uc11c\ubc84\uc5d0 \uc5f0\uacb0\ud558\uace0 \uba54\uc2dc\uc9c0\ub97c \uc8fc\uace0\ubc1b\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li><code>get()<\/code> \ud568\uc218\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\uc758 GET \uc694\uccad\uc5d0 \ub300\ud574 HTML \ud398\uc774\uc9c0\ub97c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/li>\n<li><code>websocket_endpoint()<\/code> \ud568\uc218\ub294 WebSocket \uc694\uccad\uc744 \ucc98\ub9ac\ud569\ub2c8\ub2e4. \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \uc5f0\uacb0\ud560 \ub54c <code>await websocket.accept()<\/code>\ub85c \uc5f0\uacb0\uc744 \uc2b9\uc778\ud558\uace0, \uc774\ud6c4 \ud074\ub77c\uc774\uc5b8\ud2b8\ub85c\ubd80\ud130 \uba54\uc2dc\uc9c0\ub97c \ubc1b\uc73c\uba74 \ud655\uc778 \uba54\uc2dc\uc9c0\ub97c \ub2e4\uc2dc \uc804\uc1a1\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>5. \uc6f9\uc18c\ucf13 \uc11c\ubc84 \uc2e4\ud589\ud558\uae30<\/h2>\n<p>\uc11c\ubc84 \ucf54\ub4dc\ub97c \uc791\uc131\ud55c \ud6c4, \ub2e4\uc74c \uba85\ub839\uc5b4\ub85c FastAPI \uc11c\ubc84\ub97c \uc2e4\ud589\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>uvicorn main:app --reload<\/code><\/pre>\n<p>\uc774 \uba85\ub839\uc5b4\uc5d0\uc11c <code>main<\/code>\uc740 Python \ud30c\uc77c\uc758 \uc774\ub984\uc774\uace0, <code>app<\/code>\ub294 FastAPI \uc778\uc2a4\ud134\uc2a4\uc785\ub2c8\ub2e4. <\/p>\n<h2>6. WebSocket \ud074\ub77c\uc774\uc5b8\ud2b8 \ud14c\uc2a4\ud2b8\ud558\uae30<\/h2>\n<p>\ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c <code>http:\/\/localhost:8000<\/code>\ub97c \ubc29\ubb38\ud558\uba74 \uc6f9\uc18c\ucf13 \ucc44\ud305 \uc778\ud130\ud398\uc774\uc2a4\uac00 \ub098\ud0c0\ub0a9\ub2c8\ub2e4. \uba54\uc2dc\uc9c0\ub97c \uc785\ub825\ud55c \ud6c4 &#8220;\uc804\uc1a1&#8221; \ubc84\ud2bc\uc744 \ub204\ub974\uba74, \uc11c\ubc84\uc5d0\uc11c \uc218\uc2e0\ud55c \uba54\uc2dc\uc9c0\uac00 \ub2e4\uc2dc \ud074\ub77c\uc774\uc5b8\ud2b8\ub85c \uc804\uc1a1\ub418\uace0, \ud14d\uc2a4\ud2b8 \uc601\uc5ed\uc5d0 \ud45c\uc2dc\ub429\ub2c8\ub2e4.<\/p>\n<h2>7. WebSocket\uc758 \uace0\uae09 \uae30\ub2a5 \uad6c\ud604\ud558\uae30<\/h2>\n<p>\uc774\uc81c \uae30\ubcf8\uc801\uc778 WebSocket \uad6c\ud604\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc73c\ubbc0\ub85c, \ub2e4\uc74c \ub2e8\uacc4\ub85c\ub294 \uc5ec\ub7ec \ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \ub3d9\uc2dc\uc5d0 \uc5f0\uacb0\ud558\uc5ec \uc11c\ub85c \uba54\uc2dc\uc9c0\ub97c \uc8fc\uace0\ubc1b\uc744 \uc218 \uc788\ub294 \uae30\ub2a5\uc744 \ucd94\uac00\ud558\uaca0\uc2b5\ub2c8\ub2e4. \uc774\ub97c \uc704\ud574 \ud074\ub77c\uc774\uc5b8\ud2b8 \uad00\ub9ac\ub97c \uc704\ud55c \ub9ac\uc2a4\ud2b8\uc640 \uba54\uc2dc\uc9c0 \ubc29\uc1a1 \uae30\ub2a5\uc744 \uad6c\ud604\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>7.1 \uc5ec\ub7ec \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc704\ud55c \ucf54\ub4dc \uc218\uc815<\/h3>\n<pre><code>from fastapi import FastAPI, WebSocket\nfrom fastapi.responses import HTMLResponse\nfrom typing import List\n\napp = FastAPI()\nclients: List[WebSocket] = []\n\nhtml = \"\"\"\n<!DOCTYPE html>\n\n<html lang=\"ko\">\n<head>\n    <meta charset=\"utf-8\"\/>\n    <meta content=\"width=device-width, initial-scale=1.0\" name=\"viewport\"\/>\n    <title>WebSocket Chat<\/title>\n<\/head>\n<body>\n    <h1>WebSocket Chat<\/h1>\n    <textarea cols=\"30\" disabled=\"\" id=\"chat\" rows=\"10\"><\/textarea><br\/>\n    <input id=\"message\" placeholder=\"\uba54\uc2dc\uc9c0\ub97c \uc785\ub825\ud558\uc138\uc694...\" type=\"text\"\/>\n    <button onclick=\"sendMessage()\">\uc804\uc1a1<\/button>\n\n    <script>\n        let ws = new WebSocket(\"ws:\/\/localhost:8000\/ws\");\n        \n        ws.onmessage = function(event) {\n            let chat = document.getElementById(\"chat\");\n            chat.value += event.data + '\\\\n';\n        };\n\n        function sendMessage() {\n            let input = document.getElementById(\"message\");\n            ws.send(input.value);\n            input.value = '';\n        }\n    <\/script>\n<\/body>\n<\/html>\n\"\"\"\n\n@app.get(\"\/\")\nasync def get():\n    return HTMLResponse(html)\n\n@app.websocket(\"\/ws\")\nasync def websocket_endpoint(websocket: WebSocket):\n    await websocket.accept()\n    clients.append(websocket)\n    try:\n        while True:\n            data = await websocket.receive_text()\n            for client in clients:\n                if client != websocket:  # \ud604\uc7ac \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc81c\uc678\ud558\uace0 \uba54\uc2dc\uc9c0 \uc804\uc1a1\n                    await client.send_text(f\"\uc804\ub2ec\ub41c \uba54\uc2dc\uc9c0: {data}\")\n    except Exception as e:\n        print(\"\ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \uc5f0\uacb0\uc744 \uc885\ub8cc\ud588\uc2b5\ub2c8\ub2e4.\", e)\n    finally:\n        clients.remove(websocket)\n<\/code><\/pre>\n<h3>7.2 \ucd94\uac00\ub41c \uae30\ub2a5 \uc124\uba85<\/h3>\n<p>\uc704 \ucf54\ub4dc\uc5d0\uc11c\ub294 \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uad00\ub9ac\ud558\ub294 <code>clients<\/code> \ub9ac\uc2a4\ud2b8\ub97c \ucd94\uac00\ud558\uc5ec \ud604\uc7ac \uc5f0\uacb0\ub41c \ubaa8\ub4e0 \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc800\uc7a5\ud569\ub2c8\ub2e4. \uba54\uc2dc\uc9c0\ub97c \uc218\uc2e0\ud558\uba74, \ubaa8\ub4e0 \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uac8c \uadf8 \uba54\uc2dc\uc9c0\ub97c \uc804\uc1a1\ud558\uc5ec \uc11c\ub85c \uac04\uc758 \ucc44\ud305\uc774 \uac00\ub2a5\ud558\ub3c4\ub85d \ud569\ub2c8\ub2e4. \ub2e4\uc74c\uc740 \ucf54\ub4dc\uc758 \uc8fc\uc694 \ubcc0\uacbd \uc0ac\ud56d\uc785\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\ud074\ub77c\uc774\uc5b8\ud2b8\uac00 \uc5f0\uacb0\ub420 \ub54c <code>clients<\/code> \ub9ac\uc2a4\ud2b8\uc5d0 \ucd94\uac00\ud569\ub2c8\ub2e4.<\/li>\n<li>\uc11c\ubc84\ub294 \ubaa8\ub4e0 \ud074\ub77c\uc774\uc5b8\ud2b8\uc5d0\uac8c \uc218\uc2e0\ud55c \uba54\uc2dc\uc9c0\ub97c \uc804\uc1a1\ud558\uace0, \ud604\uc7ac \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \uc81c\uc678\ud569\ub2c8\ub2e4.<\/li>\n<li>\uc608\uc678\uac00 \ubc1c\uc0dd\ud560 \uacbd\uc6b0(\uc608: \ud074\ub77c\uc774\uc5b8\ud2b8 \uc5f0\uacb0 \uc885\ub8cc) <code>finally<\/code> \ube14\ub85d\uc5d0\uc11c \ud574\ub2f9 \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \ub9ac\uc2a4\ud2b8\uc5d0\uc11c \uc81c\uac70\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>8. \ud074\ub77c\uc774\uc5b8\ud2b8 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158 \ub9cc\ub4e4\uae30<\/h2>\n<p>\uc9c0\uae08\uae4c\uc9c0\uc758 \uc124\uba85\uc744 \ud1b5\ud574 \uac04\ub2e8\ud55c WebSocket \uc11c\ubc84\ub97c \uad6c\ud604\ud588\uc2b5\ub2c8\ub2e4. \uc774\uc81c\ub294 \uc704\uc758 \uc608\uc81c\ub97c \ubc14\ud0d5\uc73c\ub85c \ud504\ub860\ud2b8\uc5d4\ub4dc\uc640 \ubc31\uc5d4\ub4dc\ub97c \ud1b5\ud569\ud55c \ud074\ub77c\uc774\uc5b8\ud2b8 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \ub9cc\ub4e4\uc5b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. React, Vue.js, \ub610\ub294 Angular\uc640 \uac19\uc740 \ud504\ub860\ud2b8\uc5d4\ub4dc \ud504\ub808\uc784\uc6cc\ud06c\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h3>8.1 React\ub97c \ud1b5\ud55c WebSocket \ud074\ub77c\uc774\uc5b8\ud2b8 \uad6c\ud604\ud558\uae30<\/h3>\n<p>React\ub97c \uc0ac\uc6a9\ud558\uc5ec WebSocket \ud074\ub77c\uc774\uc5b8\ud2b8\ub97c \ub9cc\ub4e4\uc5b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><code>import React, { useState, useEffect } from 'react';\n\nfunction App() {\n    const [socket, setSocket] = useState(null);\n    const [message, setMessage] = useState('');\n    const [chat, setChat] = useState([]);\n\n    useEffect(() =&gt; {\n        const ws = new WebSocket('ws:\/\/localhost:8000\/ws');\n        ws.onmessage = (event) =&gt; {\n            setChat((prevChat) =&gt; [...prevChat, event.data]);\n        };\n        setSocket(ws);\n\n        return () =&gt; {\n            ws.close();\n        };\n    }, []);\n\n    const sendMessage = () =&gt; {\n        if (socket) {\n            socket.send(message);\n            setMessage('');\n        }\n    };\n\n    return (\n        <div>\n            <h1>WebSocket Chat<\/h1>\n            <textarea cols=\"30\" readonly=\"\" rows=\"10\" value=\"{chat.join('\\\\n')}\"><\/textarea>\n            <br>\n            <input ==\"\" onchange=\"{(e)\" type=\"text\" value=\"{message}\"\/> setMessage(e.target.value)}\n                placeholder=\"\uba54\uc2dc\uc9c0\ub97c \uc785\ub825\ud558\uc138\uc694...\"\n            \/&gt;\n            <button onclick=\"{sendMessage}\">\uc804\uc1a1<\/button>\n        <\/br><\/div>\n    );\n}\n\nexport default App;<\/code><\/pre>\n<h2>9. \uacb0\ub860<\/h2>\n<p>\uc774\ubc88 \ud3ec\uc2a4\ud2b8\ub97c \ud1b5\ud574 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec WebSocket\uc744 \ud1b5\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc54c\uc544\ubcf4\uc558\uc2b5\ub2c8\ub2e4. FastAPI\uc758 \uc7a5\uc810\uc744 \uc0b4\ub9ac\uba74\uc11c, \ube44\ub3d9\uae30 \ubc29\uc2dd\uc73c\ub85c \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \uc2e4\uc2dc\uac04 \uc18c\ud1b5\uc744 \uad6c\ud604\ud560 \uc218 \uc788\uc5c8\uc2b5\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uae30\uc220\uc740 \ub2e4\uc591\ud55c \uc751\uc6a9 \ubd84\uc57c\uc5d0 \ud65c\uc6a9\ub420 \uc218 \uc788\uc73c\uba70, \uc2e4\uc2dc\uac04 \ub370\uc774\ud130 \ucc98\ub9ac\uc640 \uc790\uadf9\uc801\uc778 UX\ub97c \uc81c\uacf5\ud558\ub294 \ub370 \uae30\uc5ec\ud560 \uac83\uc785\ub2c8\ub2e4.<\/p>\n<h2>10. \ucc38\uace0 \uc790\ub8cc<\/h2>\n<ul>\n<li><a href=\"https:\/\/fastapi.tiangolo.com\/\">FastAPI \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<li><a href=\"https:\/\/developer.mozilla.org\/ko\/docs\/Web\/API\/WebSockets_API\">WebSockets API \uc18c\uac1c<\/a><\/li>\n<li><a href=\"https:\/\/reactjs.org\/\">React \uacf5\uc2dd \ubb38\uc11c<\/a><\/li>\n<\/ul>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>FastAPI\ub294 \ud604\ub300\uc801\uc778 \uc6f9 API\ub97c \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\ub3c4\ub85d \uc124\uacc4\ub41c \ud30c\uc774\uc36c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. RESTful API\ubfd0\ub9cc \uc544\ub2c8\ub77c WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uae30\ub2a5\uc744 \uc9c0\uc6d0\ud558\ub294\ub370, \uc774\ub97c \ud1b5\ud574 \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \uc591\ubc29\ud5a5 \ud1b5\uc2e0\uc774 \uac00\ub2a5\ud574\uc9d1\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec WebSocket\uc744 \ud1b5\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. FastAPI \uac1c\uc694 FastAPI\ub294 \uace0\uc131\ub2a5 \uc6f9 \uc11c\ubc84\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc774\uba70, \ub2e4\uc74c\uacfc \uac19\uc740 &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38475\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;FastAPI \uc11c\ubc84\uac1c\ubc1c, WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604&#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-38475","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, WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604 - \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\/38475\/\" \/>\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, WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"FastAPI\ub294 \ud604\ub300\uc801\uc778 \uc6f9 API\ub97c \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\ub3c4\ub85d \uc124\uacc4\ub41c \ud30c\uc774\uc36c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. RESTful API\ubfd0\ub9cc \uc544\ub2c8\ub77c WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uae30\ub2a5\uc744 \uc9c0\uc6d0\ud558\ub294\ub370, \uc774\ub97c \ud1b5\ud574 \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \uc591\ubc29\ud5a5 \ud1b5\uc2e0\uc774 \uac00\ub2a5\ud574\uc9d1\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec WebSocket\uc744 \ud1b5\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. FastAPI \uac1c\uc694 FastAPI\ub294 \uace0\uc131\ub2a5 \uc6f9 \uc11c\ubc84\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc774\uba70, \ub2e4\uc74c\uacfc \uac19\uc740 &hellip; \ub354 \ubcf4\uae30 &quot;FastAPI \uc11c\ubc84\uac1c\ubc1c, WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38475\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T18:17:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:14+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\/38475\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38475\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\",\"datePublished\":\"2024-11-01T18:17:23+00:00\",\"dateModified\":\"2024-11-26T06:44:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38475\/\"},\"wordCount\":62,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"FastAPI\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38475\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38475\/\",\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T18:17:23+00:00\",\"dateModified\":\"2024-11-26T06:44:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38475\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38475\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38475\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\"}]},{\"@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, WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604 - \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\/38475\/","og_locale":"ko_KR","og_type":"article","og_title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"FastAPI\ub294 \ud604\ub300\uc801\uc778 \uc6f9 API\ub97c \uc27d\uac8c \uad6c\ucd95\ud560 \uc218 \uc788\ub3c4\ub85d \uc124\uacc4\ub41c \ud30c\uc774\uc36c \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\uc785\ub2c8\ub2e4. RESTful API\ubfd0\ub9cc \uc544\ub2c8\ub77c WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uae30\ub2a5\uc744 \uc9c0\uc6d0\ud558\ub294\ub370, \uc774\ub97c \ud1b5\ud574 \ud074\ub77c\uc774\uc5b8\ud2b8\uc640 \uc11c\ubc84 \uac04\uc758 \uc591\ubc29\ud5a5 \ud1b5\uc2e0\uc774 \uac00\ub2a5\ud574\uc9d1\ub2c8\ub2e4. \uc774\ubc88 \uae00\uc5d0\uc11c\ub294 FastAPI\ub97c \uc0ac\uc6a9\ud558\uc5ec WebSocket\uc744 \ud1b5\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0\uc744 \uad6c\ud604\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. 1. FastAPI \uac1c\uc694 FastAPI\ub294 \uace0\uc131\ub2a5 \uc6f9 \uc11c\ubc84\ub97c \uad6c\ucd95\ud558\ub294 \ub370 \ub9e4\uc6b0 \ud6a8\uc728\uc801\uc774\uba70, \ub2e4\uc74c\uacfc \uac19\uc740 &hellip; \ub354 \ubcf4\uae30 \"FastAPI \uc11c\ubc84\uac1c\ubc1c, WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604\"","og_url":"https:\/\/atmokpo.com\/w\/38475\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T18:17:23+00:00","article_modified_time":"2024-11-26T06:44:14+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\/38475\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38475\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"FastAPI \uc11c\ubc84\uac1c\ubc1c, WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604","datePublished":"2024-11-01T18:17:23+00:00","dateModified":"2024-11-26T06:44:14+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38475\/"},"wordCount":62,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["FastAPI\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38475\/","url":"https:\/\/atmokpo.com\/w\/38475\/","name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T18:17:23+00:00","dateModified":"2024-11-26T06:44:14+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38475\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38475\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38475\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, WebSocket\uc744 \uc774\uc6a9\ud55c \uc2e4\uc2dc\uac04 \ud1b5\uc2e0 \uad6c\ud604"}]},{"@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\/38475","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=38475"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38475\/revisions"}],"predecessor-version":[{"id":38476,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38475\/revisions\/38476"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38475"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38475"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38475"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}