{"id":96927,"date":"2024-03-21T21:19:19","date_gmt":"2024-03-21T12:19:19","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6restful-api%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2024-03-28T00:43:09","modified_gmt":"2024-03-27T15:43:09","slug":"python%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6restful-api%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6restful-api%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"python\u3092\u4f7f\u3063\u3066RESTful API\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>Python \u3067\u306f\u3001Flask\uc774\ub098Django \u3068\u3044\u3063\u305f\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u5229\u7528\u3057\u3066RESTful\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059. \u4ee5\u4e0b\u306b\u3001Flask \u3092\u4f7f\u7528\u3057\u3066RESTful\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u4f8b\u3092\u793a\u3057\u307e\u3059:<\/p>\n<p>1. Flask\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff1a\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>pip install flask\r\n<\/code><\/pre>\n<p>2. app.py \u3068\u3044\u3046\u540d\u524d\u306e Python \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u305d\u3053\u306b\u6b21\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">from<\/span> flask <span class=\"hljs-keyword\">import<\/span> Flask, jsonify, request\r\n\r\napp = Flask(__name__)\r\n\r\n<span class=\"hljs-comment\"># \u521b\u5efa\u4e00\u4e2a\u793a\u4f8b\u6570\u636e<\/span>\r\ndata = [\r\n    {<span class=\"hljs-string\">'id'<\/span>: <span class=\"hljs-number\">1<\/span>, <span class=\"hljs-string\">'name'<\/span>: <span class=\"hljs-string\">'John'<\/span>},\r\n    {<span class=\"hljs-string\">'id'<\/span>: <span class=\"hljs-number\">2<\/span>, <span class=\"hljs-string\">'name'<\/span>: <span class=\"hljs-string\">'Jane'<\/span>},\r\n    {<span class=\"hljs-string\">'id'<\/span>: <span class=\"hljs-number\">3<\/span>, <span class=\"hljs-string\">'name'<\/span>: <span class=\"hljs-string\">'Alice'<\/span>}\r\n]\r\n\r\n<span class=\"hljs-comment\"># \u83b7\u53d6\u6240\u6709\u6570\u636e<\/span>\r\n<span class=\"hljs-meta\">@app.route(<span class=\"hljs-params\"><span class=\"hljs-string\">'\/data'<\/span>, methods=[<span class=\"hljs-string\">'GET'<\/span>]<\/span>)<\/span>\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">get_data<\/span>():\r\n    <span class=\"hljs-keyword\">return<\/span> jsonify(data)\r\n\r\n<span class=\"hljs-comment\"># \u83b7\u53d6\u5355\u4e2a\u6570\u636e<\/span>\r\n<span class=\"hljs-meta\">@app.route(<span class=\"hljs-params\"><span class=\"hljs-string\">'\/data\/&lt;int:data_id&gt;'<\/span>, methods=[<span class=\"hljs-string\">'GET'<\/span>]<\/span>)<\/span>\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">get_single_data<\/span>(<span class=\"hljs-params\">data_id<\/span>):\r\n    single_data = [d <span class=\"hljs-keyword\">for<\/span> d <span class=\"hljs-keyword\">in<\/span> data <span class=\"hljs-keyword\">if<\/span> d[<span class=\"hljs-string\">'id'<\/span>] == data_id]\r\n    <span class=\"hljs-keyword\">return<\/span> jsonify(single_data)\r\n\r\n<span class=\"hljs-comment\"># \u521b\u5efa\u6570\u636e<\/span>\r\n<span class=\"hljs-meta\">@app.route(<span class=\"hljs-params\"><span class=\"hljs-string\">'\/data'<\/span>, methods=[<span class=\"hljs-string\">'POST'<\/span>]<\/span>)<\/span>\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">create_data<\/span>():\r\n    new_data = {<span class=\"hljs-string\">'id'<\/span>: request.json[<span class=\"hljs-string\">'id'<\/span>], <span class=\"hljs-string\">'name'<\/span>: request.json[<span class=\"hljs-string\">'name'<\/span>]}\r\n    data.append(new_data)\r\n    <span class=\"hljs-keyword\">return<\/span> jsonify(new_data), <span class=\"hljs-number\">201<\/span>\r\n\r\n<span class=\"hljs-comment\"># \u66f4\u65b0\u6570\u636e<\/span>\r\n<span class=\"hljs-meta\">@app.route(<span class=\"hljs-params\"><span class=\"hljs-string\">'\/data\/&lt;int:data_id&gt;'<\/span>, methods=[<span class=\"hljs-string\">'PUT'<\/span>]<\/span>)<\/span>\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">update_data<\/span>(<span class=\"hljs-params\">data_id<\/span>):\r\n    single_data = [d <span class=\"hljs-keyword\">for<\/span> d <span class=\"hljs-keyword\">in<\/span> data <span class=\"hljs-keyword\">if<\/span> d[<span class=\"hljs-string\">'id'<\/span>] == data_id]\r\n    single_data[<span class=\"hljs-number\">0<\/span>][<span class=\"hljs-string\">'name'<\/span>] = request.json[<span class=\"hljs-string\">'name'<\/span>]\r\n    <span class=\"hljs-keyword\">return<\/span> jsonify(single_data[<span class=\"hljs-number\">0<\/span>])\r\n\r\n<span class=\"hljs-comment\"># \u5220\u9664\u6570\u636e<\/span>\r\n<span class=\"hljs-meta\">@app.route(<span class=\"hljs-params\"><span class=\"hljs-string\">'\/data\/&lt;int:data_id&gt;'<\/span>, methods=[<span class=\"hljs-string\">'DELETE'<\/span>]<\/span>)<\/span>\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">delete_data<\/span>(<span class=\"hljs-params\">data_id<\/span>):\r\n    single_data = [d <span class=\"hljs-keyword\">for<\/span> d <span class=\"hljs-keyword\">in<\/span> data <span class=\"hljs-keyword\">if<\/span> d[<span class=\"hljs-string\">'id'<\/span>] == data_id]\r\n    data.remove(single_data[<span class=\"hljs-number\">0<\/span>])\r\n    <span class=\"hljs-keyword\">return<\/span> jsonify({<span class=\"hljs-string\">'result'<\/span>: <span class=\"hljs-literal\">True<\/span>})\r\n\r\n<span class=\"hljs-keyword\">if<\/span> __name__ == <span class=\"hljs-string\">'__main__'<\/span>:\r\n    app.run(debug=<span class=\"hljs-literal\">True<\/span>)\r\n<\/code><\/pre>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8d77\u52d5\u3059\u308b:<\/p>\n<pre class=\"post-pre\"><code>python app.py\r\n<\/code><\/pre>\n<p>POST\u3001GET\u3001PUT \u304a\u3088\u3073 DELETE \u8981\u6c42\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u3092\u64cd\u4f5c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u305f\u3068\u3048\u3070\u3001curl \u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3068\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u30c6\u30b9\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>curl -X GET http:\/\/localhost:5000\/data\r\ncurl -X GET http:\/\/localhost:5000\/data\/1\r\ncurl -X POST -H \"Content-Type: application\/json\" -d '{\"id\": 4, \"name\": \"Bob\"}' http:\/\/localhost:5000\/data\r\ncurl -X PUT -H \"Content-Type: application\/json\" -d '{\"name\": \"Updated name\"}' http:\/\/localhost:5000\/data\/1\r\ncurl -X DELETE http:\/\/localhost:5000\/data\/1\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3089\u306e\u4f8b\u306f\u3001Flask\u3092\u4f7f\u7528\u3057\u3066\u7c21\u5358\u306aRESTful\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001\u30b3\u30fc\u30c9\u3092\u5909\u66f4\u3057\u3066\u3001\u3088\u308a\u591a\u304f\u306e\u30eb\u30fc\u30c8\u3068\u6a5f\u80fd\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python \u3067\u306f\u3001Flask\uc774\ub098Django \u3068\u3044\u3063\u305f\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u5229\u7528\u3057\u3066RESTful\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059. \u4ee5\u4e0b\u306b\u3001Flask \u3092\u4f7f\u7528\u3057\u3066RESTful\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u4f8b\u3092\u793a\u3057\u307e\u3059: 1.  [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-96927","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>python\u3092\u4f7f\u3063\u3066RESTful API\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud<\/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:\/\/www.silicloud.com\/ja\/blog\/python\u3092\u4f7f\u3063\u3066restful-api\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"python\u3092\u4f7f\u3063\u3066RESTful API\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Python \u3067\u306f\u3001Flask\uc774\ub098Django \u3068\u3044\u3063\u305f\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u5229\u7528\u3057\u3066RESTful\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059. \u4ee5\u4e0b\u306b\u3001Flask \u3092\u4f7f\u7528\u3057\u3066RESTful\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u4f8b\u3092\u793a\u3057\u307e\u3059: 1. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/python\u3092\u4f7f\u3063\u3066restful-api\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-21T12:19:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-27T15:43:09+00:00\" \/>\n<meta name=\"author\" content=\"\u84ee, \u7ffc\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u84ee, \u7ffc\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6restful-api%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6restful-api%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"python\u3092\u4f7f\u3063\u3066RESTful API\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-21T12:19:19+00:00\",\"dateModified\":\"2024-03-27T15:43:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6restful-api%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6restful-api%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6restful-api%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"python\u3092\u4f7f\u3063\u3066RESTful API\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\",\"name\":\"\u84ee, \u7ffc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"caption\":\"\u84ee, \u7ffc\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6restful-api%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"python\u3092\u4f7f\u3063\u3066RESTful API\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","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:\/\/www.silicloud.com\/ja\/blog\/python\u3092\u4f7f\u3063\u3066restful-api\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"python\u3092\u4f7f\u3063\u3066RESTful API\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5","og_description":"Python \u3067\u306f\u3001Flask\uc774\ub098Django \u3068\u3044\u3063\u305f\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u5229\u7528\u3057\u3066RESTful\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059. \u4ee5\u4e0b\u306b\u3001Flask \u3092\u4f7f\u7528\u3057\u3066RESTful\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f5c\u6210\u3059\u308b\u4f8b\u3092\u793a\u3057\u307e\u3059: 1. [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/python\u3092\u4f7f\u3063\u3066restful-api\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-21T12:19:19+00:00","article_modified_time":"2024-03-27T15:43:09+00:00","author":"\u84ee, \u7ffc","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u84ee, \u7ffc","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6restful-api%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6restful-api%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"python\u3092\u4f7f\u3063\u3066RESTful API\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-21T12:19:19+00:00","dateModified":"2024-03-27T15:43:09+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6restful-api%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6restful-api%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6restful-api%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"python\u3092\u4f7f\u3063\u3066RESTful API\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413","name":"\u84ee, \u7ffc","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","caption":"\u84ee, \u7ffc"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6restful-api%e3%82%92%e4%bd%9c%e6%88%90%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/96927","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=96927"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/96927\/revisions"}],"predecessor-version":[{"id":197616,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/96927\/revisions\/197616"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=96927"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=96927"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=96927"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}