{"id":1548,"date":"2022-05-30T18:00:02","date_gmt":"2022-05-30T10:00:02","guid":{"rendered":"https:\/\/fromideatocreation.com\/?p=928"},"modified":"2023-07-02T17:07:46","modified_gmt":"2023-07-02T09:07:46","slug":"ubuntu-%e8%a3%a1%e4%bd%bf%e7%94%a8-slate-%e6%89%93%e9%80%a0%e6%bc%82%e4%ba%ae%e7%9a%84-api-%e6%96%87%e4%bb%b6%e8%aa%aa%e6%98%8e","status":"publish","type":"post","link":"https:\/\/fromideatocreation.com\/?p=1548","title":{"rendered":"Ubuntu \u88e1\u4f7f\u7528 Slate \u6253\u9020\u6f02\u4eae\u7684 API \u6587\u4ef6"},"content":{"rendered":"\n<p><a href=\"https:\/\/github.com\/slatedocs\/slate\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Slate\">Slate<\/a> \u662f\u4e00\u500b\u53ef\u4ee5\u7528 Markdown \u5beb\u4f5c\u4e26\u751f\u6210 API \u8aaa\u660e\u6587\u4ef6\u7684\u5de5\u5177\uff0c\u7531\u65bc\u9810\u8a2d\u7684\u4f48\u666f\u4e3b\u984c\u5f88\u6f02\u4eae\uff0c\u7de8\u8f2f\u5bb9\u6613\u4e0a\u624b\uff0c\u4e26\u4e14\u53ef\u4ee5\u7de8\u8b6f\u70ba\u975c\u614b HTML \u6a94\u6848\uff0c\u7db2\u9801\u8f09\u5165\u901f\u5ea6\u5feb\uff0c\u56e0\u6b64\u5f88\u53d7\u6b61\u8fce\uff0cGithub \u4e0a\u7684\u661f\u661f\u6578\u5df2\u7d93\u8d85\u904e\u4e86 34k\u3002<\/p>\n\n\n\n<p>\u5e95\u4e0b\u7684\u6559\u5b78\u88e1\u6211\u5011\u5c07\u7d66\u4e88\u5728 Ubuntu \u88e1\u5b89\u88dd Slate\uff0c\u4e26\u4e14\u5229\u7528 Nginx \u8a2d\u5b9a\u6a94\u63d0\u4f9b\u5bc6\u78bc\u4fdd\u8b77\u7684\u65b9\u6cd5\u6b65\u9a5f\u3002<\/p>\n\n\n\n<div style=\"height:24px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u5b89\u88dd Slate<\/h2>\n\n\n\n<p>\u5728 Ubuntu \u74b0\u5883\u88e1\u8f38\u5165\u4e0b\u9762\u6307\u4ee4\uff0c\u5b89\u88dd\u5fc5\u8981\u7684\u5957\u4ef6\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt install ruby ruby-dev build-essential libffi-dev zlib1g-dev liblzma-dev nodejs patch<\/code><\/pre>\n\n\n\n<p>\u63a5\u8457\u60a8\u53ef\u4ee5\u4f9d\u7167\u5b98\u7db2\u88e1\u7684<a href=\"https:\/\/github.com\/slatedocs\/slate\/wiki\/Using-Slate-Natively#getting-set-up\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"\u6307\u793a\">\u6307\u793a<\/a>\uff0cfork \u5f8c\u4e0b\u8f09\u539f\u59cb\u78bc\u5230\u81ea\u5df1\u7684\u4e3b\u6a5f\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Fork Github \u4e0a\u7684 Slate<\/li>\n\n\n\n<li>\u5229\u7528 <code>git clone https:\/\/github.com\/YOURUSERNAME\/slate.git<\/code> \u5c07 forked \u7684\u5c08\u6848\u4e0b\u8f09\u5230\u81ea\u5df1\u7684\u786c\u789f<\/li>\n\n\n\n<li><code>cd slate<\/code><\/li>\n\n\n\n<li>\u5b89\u88dd slate \u9700\u8981\u7684\u76f8\u95dc ruby \u5957\u4ef6<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\"># either run this to run locally\n$ bundle install<\/code><\/pre>\n\n\n\n<p>\u9644\u8a3b\uff1a\u7531\u65bc forked \u7684\u5c08\u6848\u5728 Github \u4e0a\u7121\u6cd5\u8a2d\u5b9a\u70ba private\u3002\u6240\u4ee5\u7b46\u8005\u662f\u4e0b\u8f09\u539f\u59cb\u5c08\u6848\u5f8c\uff0c<code>rm -rf .git<\/code> \u79fb\u9664\u6389 git \u76f8\u95dc\u8a2d\u5b9a\uff0c\u518d\u65bc Github \u5efa\u7acb\u81ea\u5df1\u79c1\u4eba\u5c08\u6848\uff0c\u7136\u5f8c\u4e0a\u50b3\u5230\u9019\u79c1\u4eba\u5c08\u6848\u88e1\u3002<\/p>\n\n\n\n<div style=\"height:24px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u7de8\u8f2f Slate<\/h2>\n\n\n\n<p>\u7de8\u8f2f <code>source\/index.md<\/code> \u5373\u53ef\u6539\u8b8a\u6587\u4ef6\u5167\u5bb9\u3002Slate \u652f\u63f4\u8a31\u591a <a href=\"https:\/\/github.com\/slatedocs\/slate\/wiki\/Markdown-Syntax\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Markdown \u8a9e\u6cd5\">Markdown \u8a9e\u6cd5<\/a>\uff0c\u5982\u679c\u60a8\u5df2\u7d93\u5f88\u719f\u6089 Markdown \u4e86\uff0c\u53ef\u4ee5\u76f4\u63a5\u5f9e\u6a94\u6848\u4e0b\u624b\u3002<\/p>\n\n\n\n<div style=\"height:24px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u904b\u4f5c Slate<\/h2>\n\n\n\n<p>\u5728\u672c\u6a5f\u88e1\uff0c\u60a8\u53ef\u4ee5\u8f38\u5165\u5e95\u4e0b\u6307\u4ee4\u4ee5\u904b\u884c slate<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ bundle exec middleman server<\/code><\/pre>\n\n\n\n<p>\u63a5\u8457\u79fb\u81f3 <code>http:\/\/localhost:4567<\/code> \u5373\u53ef\u770b\u5230 Slate API \u756b\u9762\u3002<\/p>\n\n\n\n<p>\u800c\u5728\u6b63\u5f0f\u74b0\u5883\u88e1\uff0c\u539f\u4f5c\u8005\u5f37\u8abf\u7d55\u4e0d\u8981\u4f7f\u7528 Middleman\uff0c\u800c\u662f\u5efa\u8b70\u7de8\u8b6f\u70ba\u975c\u614b\u6587\u4ef6\u5f8c\u900f\u904e\u670d\u52d9\u5668\u50b3\u905e\u7d66\u700f\u89bd\u5668\u7aef\u7684\u8b80\u8005\u3002<\/p>\n\n\n\n<p>\u8f38\u5165\u5e95\u4e0b\u6307\u4ee4\u8b93\u6587\u4ef6\u7de8\u8b6f\u70ba\u975c\u614b\u6a94\uff0c\u6574\u500b\u7db2\u7ad9\u7684\u975c\u614b HTML \u6587\u4ef6\u6703\u653e\u5728 <code>build<\/code> \u8cc7\u6599\u593e\u88e1\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ bundle exec middleman build --clean<\/code><\/pre>\n\n\n\n<div style=\"height:12px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u63a5\u8457\u6211\u5011\u9700\u8981\u8a2d\u5b9a\u53cd\u5411\u4ee3\u7406\u670d\u52d9\u5668\uff0c\u597d\u8b93\u5916\u90e8\u7684\u4e92\u53eb\u80fd\u5f97\u5230\u56de\u61c9\u3002<\/p>\n\n\n\n<p>\u4e00\u500b\u53ef\u904b\u4f5c\u7684 Nginx \u7684\u7bc4\u4f8b\u8a2d\u5b9a\u6a94\u5982\u5e95\u4e0b\u6240\u793a\uff0c\u5176\u4e2d <code>root<\/code> \u7684\u8def\u5f91\u8207 <code>server_name<\/code> \u8acb\u66f4\u63db\u70ba\u60a8\u6b63\u78ba\u7684\u6578\u503c\uff0c\u5b8c\u7562\u5f8c\u91cd\u555f Nginx \u670d\u52d9\u5668\u3002\u5728 DNS \u8a2d\u5b9a\u6b63\u78ba\u60c5\u6cc1\u4e0b\uff0c\u6253\u958b\u700f\u89bd\u5668\u524d\u5f80  <code>api.yourwebsite.com<\/code> \u5c31\u6703\u770b\u5230 API \u6587\u4ef6\u4e86\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"nginx\" class=\"language-nginx\">server {\n   listen       80;\n   server_name  api.yourwebsite.com;\n   root \/home\/ubuntu\/apps\/your-api-doc\/build;\n}<\/code><\/pre>\n\n\n\n<p>\u91cd\u65b0\u555f\u52d5 Nginx<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo service nginx restart<\/code><\/pre>\n\n\n\n<div style=\"height:24px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u5229\u7528 Nginx auth basic \u5bc6\u78bc\u4fdd\u8b77\u6587\u4ef6<\/h3>\n\n\n\n<p>\u6709\u4e9b\u6642\u5019\u6211\u5011\u4e0d\u5e0c\u671b\u5c07 API \u6587\u4ef6\u5c0d\u5916\u516c\u958b\uff0c\u9019\u6642\u5019\u53ef\u4ee5\u7528 Nginx \u7684\u5bc6\u78bc\u8a2d\u5b9a\u4fdd\u8b77\u6587\u4ef6\u3002<\/p>\n\n\n\n<p>\u5229\u7528 <code>htpasswd<\/code> \u9644\u5e36 <code>-c<\/code> \u6a19\u8a8c\u5efa\u7acb\u5bc6\u78bc\u6a94\u6848\uff0c\u6211\u5011\u5047\u5b9a\u767b\u5165\u7684\u7528\u6236\u540d\u7a31\u70ba <code>tom<\/code><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo htpasswd -c \/etc\/apache2\/.htpasswd tom<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u672a\u4f86\u8981\u52a0\u5165\u66f4\u591a\u7684\u7528\u6236\uff0c\u6bd4\u5982 <code>alice<\/code>\uff0c\u65b9\u6cd5\u76f8\u540c\u53ea\u662f\u4e0d\u9700\u8981 <code>-c<\/code> \u6a19\u8a8c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo htpasswd  \/etc\/apache2\/.htpasswd alice<\/code><\/pre>\n\n\n\n<p>\u60a8\u53ef\u4ee5\u7528 <code>cat<\/code> \u6307\u4ee4\u6aa2\u8996\u6587\u4ef6\uff0c\u78ba\u8a8d\u5e33\u865f\u5bc6\u78bc\u662f\u5426\u5df2\u7d93\u52a0\u5bc6\u4e26\u8a18\u9304\u8d77\u4f86\u4e86<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">$ cat \/etc\/apache2\/.htpasswd\ntom:$apr1$\/woC1jnP$KAh0SsVn5qeSMjTtn0E9Q0\nalice:$apr1$QdR8fNLT$vbCEEzDj7LyqCMyNpSoBh\/\n<\/code><\/pre>\n\n\n\n<p>\u63a5\u8457\u6211\u5011\u65b0\u589e <code>auth_basic<\/code> \u8207 <code>auth_basic_user_file<\/code> \u4ee5\u6dfb\u52a0\u5bc6\u78bc\u6587\u4ef6\uff0c\u5b8c\u6210\u4fdd\u8b77\u7684\u6a5f\u5236\u3002 \u5982\u679c\u662f\u60f3\u8981\u7528 IP \u4f4d\u7f6e\u4f86\u9650\u5236\u7684\u8a71\uff0c\u4e5f\u5f88\u5bb9\u6613\uff0c\u53ea\u8981\u6307\u540d\u8def\u5f91\u5f8c\uff0c\u4f7f\u7528 <code>deny<\/code>, <code>allow<\/code> \u7b49\u8a9e\u6cd5\u5373\u53ef\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"nginx\" class=\"language-nginx\">server {\n   listen       80;\n   server_name  api.yourwebsite.com;\n   root \/home\/ubuntu\/apps\/your-api-doc\/build;\n\n   # limit access to the whole website\n   auth_basic           \"Administrator's Area\";\n   auth_basic_user_file \/etc\/apache2\/.htpasswd;\n\n  location \/api {\n    #...\n    deny  192.168.1.2;\n    allow 192.168.1.1\/24;\n    allow 127.0.0.1;\n    deny  all;\n  }\n}<\/code><\/pre>\n\n\n\n<p>\u7136\u5f8c\u91cd\u555f Nginx \u670d\u52d9\u5668\uff0c\u91cd\u65b0\u6253\u958b\u700f\u89bd\u5668\u9023\u7d50\u81f3\u756b\u9762\uff0c\u5c31\u6703\u770b\u5230\u9700\u8981\u5e33\u865f\u5bc6\u78bc\u9a57\u8b49\u7684\u5c0d\u8a71\u6846\u4e86\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo service nginx restart<\/code><\/pre>\n\n\n\n<div class=\"wp-block-qubely-image qubely-block-618a47\"><div class=\"qubely-block-image  qubely-image-layout-simple\"><div class=\"qubely-image-media qubely-vertical-alignment-center qubely-horizontal-alignment-center\"><figure><div class=\"qubely-image-container\"><img decoding=\"async\" class=\"qubely-image-image\" src=\"https:\/\/fromideatocreation.com\/wp-content\/uploads\/2022\/05\/auth_required.png\" alt=\"\"\/><\/div><\/figure><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Slate \u662f\u4e00\u500b\u53ef\u4ee5\u7528 Markdown \u5beb\u4f5c\u4e26\u751f\u6210 API \u8aaa\u660e\u6587\u4ef6\u7684\u5de5\u5177\uff0c\u5f88\u53d7\u6b61\u8fce\uff0cGithub \u4e0a\u7684\u661f\u661f\u6578\u5df2\u7d93\u8d85\u904e\u4e86 34k\u3002\u9810\u8a2d\u7684\u4f48\u666f\u4e3b\u984c\u5f88\u6f02\u4eae\uff0c\u5bb9\u6613\u4e0a\u624b\uff0c\u800c\u4e14\u56e0\u70ba\u53ef\u4ee5\u7de8\u8b6f\u70ba\u975c\u614b HTML \u6a94\u6848\uff0c\u700f\u89bd\u5668\u8f09\u5165\u7684\u901f\u5ea6\u5c31\u6703\u5f88\u5feb\u3002<\/p>\n","protected":false},"author":1,"featured_media":974,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"qubely_global_settings":"","qubely_interactions":"","inline_featured_image":false,"_ti_tpc_template_sync":false,"_ti_tpc_template_id":"","footnotes":""},"categories":[106],"tags":[174,175],"class_list":["post-1548","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-106","tag-api","tag-slate"],"acf":[],"aioseo_notices":[],"qubely_featured_image_url":{"full":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74.jpg",1320,608,false],"landscape":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-1200x608.jpg",1200,608,true],"portraits":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-540x320.jpg",540,320,true],"thumbnail":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-150x150.jpg",150,150,true],"medium":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-300x138.jpg",300,138,true],"medium_large":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-768x354.jpg",640,295,true],"large":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-1024x472.jpg",640,295,true],"1536x1536":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74.jpg",1320,608,false],"2048x2048":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74.jpg",1320,608,false],"qubely_landscape":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-1200x608.jpg",1200,608,true],"qubely_portrait":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-540x320.jpg",540,320,true],"qubely_thumbnail":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-140x100.jpg",140,100,true],"nazare_single_thumb":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-745x500.jpg",745,500,true],"nazare_post_card_thumb":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-480x600.jpg",480,600,true],"nazare_widget_thumb":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-100x100.jpg",100,100,true],"nazare_widget_first_thumb":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-350x206.jpg",350,206,true],"nazare_el_banner_left":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-900x604.jpg",900,604,true],"nazare_el_banner_right":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-560x495.jpg",560,495,true],"nazare_el_post_400x376":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-400x376.jpg",400,376,true],"nazare_el_post_520x460":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-520x460.jpg",520,460,true],"nazare_el_post_500x335":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-500x335.jpg",500,335,true],"nazare_el_post_500x300":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-500x300.jpg",500,300,true],"nazare_el_post_655x640":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-655x608.jpg",655,608,true],"nazare_el_post_500x290":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-500x290.jpg",500,290,true],"nazare_el_post_416x278":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-416x278.jpg",416,278,true],"nazare_el_post_480x425":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-480x425.jpg",480,425,true],"nazare_el_post_635x640":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-635x608.jpg",635,608,true],"nazare_el_post_305x177":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-305x177.jpg",305,177,true],"nazare_el_post_400x400":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-400x400.jpg",400,400,true],"nazare_el_post_400x360":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-400x360.jpg",400,360,true],"nazare_el_post_416x416":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-416x416.jpg",416,416,true],"nazare_el_post_485x430":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-485x430.jpg",485,430,true],"nazare_el_post_700x467":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-700x467.jpg",700,467,true],"nazare_el_post_1000x581":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-1000x581.jpg",1000,581,true],"nazare_post_1320x605":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-1320x605.jpg",1320,605,true],"nazare_post_705x565":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-705x565.jpg",705,565,true],"nazare_post_400x265":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-400x265.jpg",400,265,true],"nazare_el_post_1248x630":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-1248x608.jpg",1248,608,true],"woocommerce_thumbnail":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-300x300.jpg",300,300,true],"woocommerce_single":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-600x276.jpg",600,276,true],"woocommerce_gallery_thumbnail":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-100x100.jpg",100,100,true],"shop_catalog":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-300x300.jpg",300,300,true],"shop_single":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-600x276.jpg",600,276,true],"shop_thumbnail":["https:\/\/fromideatocreation.com\/wp-content\/uploads\/2023\/05\/blog74-100x100.jpg",100,100,true]},"qubely_author":{"display_name":"Wen","author_link":"https:\/\/fromideatocreation.com\/?author=1"},"qubely_comment":0,"qubely_category":"<a href=\"https:\/\/fromideatocreation.com\/?cat=106\" rel=\"category\">\u6559\u5b78<\/a>","qubely_excerpt":"Slate \u662f\u4e00\u500b\u53ef\u4ee5\u7528 Markdown \u5beb\u4f5c\u4e26\u751f\u6210 API \u8aaa\u660e\u6587\u4ef6\u7684\u5de5\u5177\uff0c\u5f88\u53d7\u6b61\u8fce\uff0cGithub \u4e0a\u7684\u661f...","_links":{"self":[{"href":"https:\/\/fromideatocreation.com\/index.php?rest_route=\/wp\/v2\/posts\/1548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fromideatocreation.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fromideatocreation.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fromideatocreation.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fromideatocreation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1548"}],"version-history":[{"count":1,"href":"https:\/\/fromideatocreation.com\/index.php?rest_route=\/wp\/v2\/posts\/1548\/revisions"}],"predecessor-version":[{"id":1672,"href":"https:\/\/fromideatocreation.com\/index.php?rest_route=\/wp\/v2\/posts\/1548\/revisions\/1672"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fromideatocreation.com\/index.php?rest_route=\/wp\/v2\/media\/974"}],"wp:attachment":[{"href":"https:\/\/fromideatocreation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fromideatocreation.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fromideatocreation.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}