{"id":363,"date":"2025-04-09T10:43:30","date_gmt":"2025-04-09T02:43:30","guid":{"rendered":"https:\/\/zhaoyanqi.cn\/?p=363"},"modified":"2025-04-09T10:43:31","modified_gmt":"2025-04-09T02:43:31","slug":"centos%e9%83%a8%e7%bd%b2yapi","status":"publish","type":"post","link":"https:\/\/zhaoyanqi.cn\/?p=363","title":{"rendered":"centos\u90e8\u7f72YApi"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"t2pzI\">1. \u73af\u5883\u51c6\u5907<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"NYDbp\">1.1 \u5b89\u88c5 Node.js \u548c npm<\/h3>\n\n\n\n<p id=\"uc0da22a4\">\u5efa\u8bae\u4f7f\u7528 <a href=\"https:\/\/github.com\/nvm-sh\/nvm\" target=\"_blank\" rel=\"noreferrer noopener\">nvm<\/a> \u6765\u7ba1\u7406 Node.js \u7248\u672c\u3002\u64cd\u4f5c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u5b89\u88c5 nvm\uff1a<\/strong><br>\u6253\u5f00\u7ec8\u7aef\uff0c\u6267\u884c\uff1a<\/li>\n<\/ol>\n\n\n\n<pre id=\"krgQl\" class=\"wp-block-code\"><code>curl -o- https:\/\/raw.githubusercontent.com\/nvm-sh\/nvm\/v0.39.5\/install.sh | bash<\/code><\/pre>\n\n\n\n<p id=\"u000af057\">\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u91cd\u542f\u7ec8\u7aef\u6216\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u52a0\u8f7d nvm\uff08\u6839\u636e\u4f60\u7684 shell \u7c7b\u578b\u9009\u62e9\u5bf9\u5e94\u7684\u914d\u7f6e\u6587\u4ef6\uff09\uff1a<\/p>\n\n\n\n<pre id=\"sRMVJ\" class=\"wp-block-code\"><code>source ~\/.bashrc\n# \u6216\u8005\u5982\u679c\u4f60\u4f7f\u7528 zsh\uff1a\nsource ~\/.zshrc<\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>\u5b89\u88c5 Node.js\uff08\u5efa\u8bae v14 \u6216\u66f4\u9ad8\u7248\u672c\uff09\uff1a<\/strong><\/li>\n<\/ol>\n\n\n\n<pre id=\"jZeiv\" class=\"wp-block-code\"><code>nvm install 14\nnvm use 14\n#\u5207\u6362\u963f\u91cc\u4e91\u955c\u50cf\nnpm config set registry https:\/\/registry.npmmirror.com<\/code><\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>\u9a8c\u8bc1\u5b89\u88c5\uff1a<\/strong><\/li>\n<\/ol>\n\n\n\n<pre id=\"LV4pD\" class=\"wp-block-code\"><code>node -v\nnpm -v<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" id=\"EGikB\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"vQANR\">1.2 \u5b89\u88c5 MongoDB<\/h3>\n\n\n\n<p id=\"uda642f45\">YApi \u4f7f\u7528 MongoDB \u4f5c\u4e3a\u6570\u636e\u5b58\u50a8\u3002\u7531\u4e8e CentOS 9 \u5c1a\u672a\u76f4\u63a5\u652f\u6301 MongoDB \u5b98\u65b9\u4ed3\u5e93\uff0c\u56e0\u6b64\u53ef\u4ee5\u4f7f\u7528 CentOS 8 \u7684\u5b98\u65b9\u4ed3\u5e93\u5b89\u88c5 MongoDB Community 6.0 \u7248\uff08\u5927\u90e8\u5206\u60c5\u51b5\u4e0b\u5728 CentOS 9 \u4e0a\u4e5f\u53ef\u6b63\u5e38\u8fd0\u884c\uff09\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u6dfb\u52a0 MongoDB \u4ed3\u5e93\uff1a<\/strong><\/li>\n<\/ol>\n\n\n\n<p id=\"u4e0e8fbb\">\u4ee5 root \u7528\u6237\u6216\u4f7f\u7528 sudo \u521b\u5efa\u4ed3\u5e93\u6587\u4ef6 <code>\/etc\/yum.repos.d\/mongodb-org-6.0.repo<\/code>\uff1a<\/p>\n\n\n\n<pre id=\"fhV0R\" class=\"wp-block-code\"><code>sudo vi \/etc\/yum.repos.d\/mongodb-org-6.0.repo<\/code><\/pre>\n\n\n\n<p id=\"udda52e37\">\u5c06\u4ee5\u4e0b\u5185\u5bb9\u7c98\u8d34\u5230\u6587\u4ef6\u4e2d\uff08\u6ce8\u610f baseurl \u4e2d\u4f7f\u7528\u7684\u662f <code>redhat\/8<\/code>\uff09\uff1a<\/p>\n\n\n\n<pre id=\"nWJwg\" class=\"wp-block-code\"><code>&#91;mongodb-org-6.0]\nname=MongoDB Repository\nbaseurl=https:\/\/repo.mongodb.org\/yum\/redhat\/8\/mongodb-org\/6.0\/x86_64\/\ngpgcheck=1\nenabled=1\ngpgkey=https:\/\/www.mongodb.org\/static\/pgp\/server-6.0.asc<\/code><\/pre>\n\n\n\n<p id=\"u4aeaa672\">\u4fdd\u5b58\u5e76\u9000\u51fa\u7f16\u8f91\u5668\u3002<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>\u5b89\u88c5 MongoDB\uff1a<\/strong><\/li>\n<\/ol>\n\n\n\n<pre id=\"DS0wS\" class=\"wp-block-code\"><code>sudo dnf install -y mongodb-org<\/code><\/pre>\n\n\n\n<ol start=\"3\" class=\"wp-block-list\">\n<li><strong>\u542f\u52a8 MongoDB \u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f\uff1a<\/strong><\/li>\n<\/ol>\n\n\n\n<pre id=\"TUNRd\" class=\"wp-block-code\"><code>sudo systemctl start mongod\nsudo systemctl enable mongod<\/code><\/pre>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li><strong>\u68c0\u67e5 MongoDB \u72b6\u6001\uff1a<\/strong><\/li>\n<\/ol>\n\n\n\n<pre id=\"RnKaO\" class=\"wp-block-code\"><code>sudo systemctl status mongod<\/code><\/pre>\n\n\n\n<p id=\"u71c041e4\">\u786e\u4fdd MongoDB \u6b63\u5e38\u542f\u52a8\u5e76\u76d1\u542c\u9ed8\u8ba4\u7aef\u53e3 27017\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" id=\"GSAv9\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"JFySY\">2. \u4e0b\u8f7d YApi \u6e90\u7801<\/h2>\n\n\n\n<p id=\"u0971fb42\">\u9009\u62e9\u5408\u9002\u7684\u76ee\u5f55\uff0c\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre id=\"KVbQT\" class=\"wp-block-code\"><code>git clone --depth=1 https:\/\/github.com\/YMFE\/yapi.git vendors\ncd yapi<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" id=\"yrHs2\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"CniAf\">3. \u5b89\u88c5 YApi \u4f9d\u8d56<\/h2>\n\n\n\n<p id=\"u0c38846b\">\u5728 YApi \u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u6267\u884c\uff1a<\/p>\n\n\n\n<pre id=\"GsCph\" class=\"wp-block-code\"><code>npm install<\/code><\/pre>\n\n\n\n<p id=\"u36bbc4f7\"><strong>\u63d0\u793a\uff1a<\/strong><br>\u5982\u679c\u5728\u56fd\u5185\u4e0b\u8f7d\u4f9d\u8d56\u8f83\u6162\uff0c\u5efa\u8bae\u5148\u5168\u5c40\u5b89\u88c5 <a href=\"https:\/\/cnpmjs.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">cnpm<\/a>\uff1a<\/p>\n\n\n\n<pre id=\"ZiXMJ\" class=\"wp-block-code\"><code>npm install -g cnpm --registry=https:\/\/registry.npmmirror.com<\/code><\/pre>\n\n\n\n<p id=\"u53e304fe\">\u7136\u540e\u4f7f\u7528\uff1a<\/p>\n\n\n\n<pre id=\"I25pP\" class=\"wp-block-code\"><code>cnpm install<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" id=\"LTNGD\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"dS4Bj\">4. \u914d\u7f6e YApi<\/h2>\n\n\n\n<p id=\"u6b844599\">YApi \u7684\u914d\u7f6e\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u7684 <code>config.json<\/code>\uff08\u6216\u5728\u90e8\u5206\u7248\u672c\u7684 <code>config<\/code> \u76ee\u5f55\u4e2d\uff09\u3002\u8bf7\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u4fee\u6539\u914d\u7f6e\uff0c\u4e0b\u9762\u7ed9\u51fa\u4e00\u4e2a\u57fa\u7840\u793a\u4f8b\uff1a<\/p>\n\n\n\n<pre id=\"Zl9sv\" class=\"wp-block-code\"><code>&#91;root@VM-1-12-tencentos yapi]# cat config.json \n{\n  \"port\": \"3000\",\n  \"adminAccount\": \"admin@admin.com\",\n  \"timeout\":120000,\n  \"db\": {\n    \"servername\": \"127.0.0.1\",\n    \"DATABASE\": \"yapi\",\n    \"port\": 27017,\n    \"user\": \"yapi\",\n    \"pass\": \"\u5bc6\u7801\",\n    \"authSource\": \"\"\n  },\n  \"mail\": {\n    \"enable\": true,\n    \"host\": \"smtp.163.com\",\n    \"port\": 465,\n    \"from\": \"***@163.com\",\n    \"auth\": {\n      \"user\": \"***@163.com\",\n      \"pass\": \"*****\"\n    }\n  }\n}\n<\/code><\/pre>\n\n\n\n<p id=\"u4205ab79\">\u7279\u522b\u6ce8\u610f\uff1a\u786e\u4fdd <code>db<\/code> \u90e8\u5206\u4e0e\u672c\u5730 MongoDB \u7684\u914d\u7f6e\u4e00\u81f4\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" id=\"AIpmZ\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"FjBsM\">5. \u521d\u59cb\u5316 YApi \u6570\u636e\u5e93<\/h2>\n\n\n\n<p id=\"u0d578411\">YApi \u63d0\u4f9b\u4e86\u521d\u59cb\u5316\u811a\u672c\uff0c\u7528\u4e8e\u521b\u5efa\u6240\u9700\u96c6\u5408\u5e76\u751f\u6210\u7ba1\u7406\u5458\u8d26\u53f7\u3002\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre id=\"CKvjR\" class=\"wp-block-code\"><code>node install\/install.js<\/code><\/pre>\n\n\n\n<p id=\"u7a1e670d\">\u6309\u7167\u63d0\u793a\u5b8c\u6210\u7ba1\u7406\u5458\u8d26\u53f7\u548c\u5bc6\u7801\u7684\u8bbe\u7f6e\uff0c\u521d\u59cb\u5316\u5b8c\u6210\u540e MongoDB \u4e2d\u5c06\u81ea\u52a8\u751f\u6210 <code>yapi<\/code> \u6570\u636e\u5e93\u53ca\u76f8\u5173\u96c6\u5408\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" id=\"uSEl4\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"xtU9C\">6. \u4f7f\u7528 PM2 \u7ba1\u7406 YApi \u670d\u52a1<\/h2>\n\n\n\n<p id=\"ubcd1655c\">\u5229\u7528 PM2 \u53ef\u4ee5\u65b9\u4fbf\u5730\u7ba1\u7406 YApi \u7684\u542f\u52a8\u3001\u505c\u6b62\u3001\u91cd\u542f\u53ca\u65e5\u5fd7\u67e5\u770b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"OXf7r\">6.1 \u5b89\u88c5 PM2<\/h3>\n\n\n\n<p id=\"u940e095a\">\u5168\u5c40\u5b89\u88c5 PM2\uff1a<\/p>\n\n\n\n<pre id=\"VyDJc\" class=\"wp-block-code\"><code>npm install -g pm2<\/code><\/pre>\n\n\n\n<p id=\"u904d87c4\">\u9a8c\u8bc1\u5b89\u88c5\uff1a<\/p>\n\n\n\n<pre id=\"zzA4s\" class=\"wp-block-code\"><code>pm2 -v<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" id=\"nuMeI\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"XjLLF\">6.2 \u4f7f\u7528 PM2 \u542f\u52a8 YApi \u670d\u52a1<\/h3>\n\n\n\n<p id=\"ua298c5d5\">\u5728 YApi \u9879\u76ee\u6839\u76ee\u5f55\u4e0b\uff0c\u5047\u8bbe\u5165\u53e3\u6587\u4ef6\u4e3a <code>vendors\/server\/app.js<\/code>\uff08\u90e8\u5206\u7248\u672c\u53ef\u80fd\u7565\u6709\u4e0d\u540c\uff09\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u542f\u52a8\u5e76\u6307\u5b9a\u8fdb\u7a0b\u540d\u79f0\u4e3a <code>yapi<\/code>\uff1a<\/p>\n\n\n\n<pre id=\"qFhhI\" class=\"wp-block-code\"><code>pm2 start ~\/yapi\/vendors\/server\/app.js --name yapi<\/code><\/pre>\n\n\n\n<p id=\"ua8117456\">\u5982\u9700\u4f20\u9012\u73af\u5883\u53d8\u91cf\u6216\u53c2\u6570\uff0c\u53ef\u4f7f\u7528 <code>--<\/code> \u53c2\u6570\u3002\u4f8b\u5982\uff1a<\/p>\n\n\n\n<pre id=\"gkpTs\" class=\"wp-block-code\"><code>pm2 start ~\/yapi\/vendors\/server\/app.js --name yapi -- --port=3000<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" id=\"BikcZ\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"CCu5A\">6.3 \u67e5\u770b PM2 \u8fdb\u7a0b\u53ca\u65e5\u5fd7<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u67e5\u770b\u8fdb\u7a0b\u5217\u8868\uff1a<\/strong><\/li>\n<\/ul>\n\n\n\n<pre id=\"S7QmX\" class=\"wp-block-code\"><code>pm2 list<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u67e5\u770b\u6240\u6709\u65e5\u5fd7\uff1a<\/strong><\/li>\n<\/ul>\n\n\n\n<pre id=\"Y6NHP\" class=\"wp-block-code\"><code>pm2 logs<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u67e5\u770b\u6307\u5b9a\u8fdb\u7a0b\uff08\u5982 <\/strong><code><strong>yapi<\/strong><\/code><strong>\uff09\u65e5\u5fd7\uff1a<\/strong><\/li>\n<\/ul>\n\n\n\n<pre id=\"p6J1B\" class=\"wp-block-code\"><code>pm2 logs yapi<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" id=\"Nzn02\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"hj57W\">6.4 \u7ba1\u7406 PM2 \u8fdb\u7a0b<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u505c\u6b62 YApi \u670d\u52a1\uff1a<\/strong><\/li>\n<\/ul>\n\n\n\n<pre id=\"ysK1f\" class=\"wp-block-code\"><code>pm2 stop yapi<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u91cd\u542f YApi \u670d\u52a1\uff1a<\/strong><\/li>\n<\/ul>\n\n\n\n<pre id=\"QREf8\" class=\"wp-block-code\"><code>pm2 restart yapi<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5220\u9664 YApi \u670d\u52a1\uff08\u505c\u6b62\u5e76\u4ece PM2 \u7ba1\u7406\u4e2d\u79fb\u9664\uff09\uff1a<\/strong><\/li>\n<\/ul>\n\n\n\n<pre id=\"IbpSx\" class=\"wp-block-code\"><code>pm2 delete yapi<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" id=\"pt0zT\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"YucHb\">6.5 \u914d\u7f6e PM2 \u5f00\u673a\u81ea\u542f<\/h3>\n\n\n\n<p id=\"u68e5f988\">\u786e\u4fdd\u670d\u52a1\u5668\u91cd\u542f\u540e YApi \u670d\u52a1\u80fd\u81ea\u52a8\u542f\u52a8\uff0c\u8bf7\u6309\u4ee5\u4e0b\u6b65\u9aa4\u914d\u7f6e PM2 \u5f00\u673a\u81ea\u542f\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u751f\u6210\u542f\u52a8\u811a\u672c\uff1a<\/strong><\/li>\n<\/ol>\n\n\n\n<pre id=\"kfS9i\" class=\"wp-block-code\"><code>pm2 startup<\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li><strong>\u4fdd\u5b58\u5f53\u524d PM2 \u8fdb\u7a0b\u5217\u8868\uff1a<\/strong><\/li>\n<\/ol>\n\n\n\n<pre id=\"zffZk\" class=\"wp-block-code\"><code>pm2 save<\/code><\/pre>\n\n\n\n<p id=\"u8bd5d057\">\u4ee5\u540e\u91cd\u542f\u7cfb\u7edf\u540e\uff0cPM2 \u4f1a\u6839\u636e\u4fdd\u5b58\u7684\u8fdb\u7a0b\u5217\u8868\u81ea\u52a8\u6062\u590d\u670d\u52a1\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" id=\"Fp2kn\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Fzt13\">7. \u8bbf\u95ee YApi<\/h2>\n\n\n\n<p id=\"ucd392170\">\u542f\u52a8 YApi \u540e\uff0c\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee\uff1a<\/p>\n\n\n\n<pre id=\"wggDc\" class=\"wp-block-code\"><code>http:&#47;&#47;localhost:3000<\/code><\/pre>\n\n\n\n<p id=\"u8510329b\">\u4f7f\u7528\u521d\u59cb\u5316\u65f6\u8bbe\u7f6e\u7684\u7ba1\u7406\u5458\u8d26\u53f7\u548c\u5bc6\u7801\u767b\u5f55\u540e\u53f0\u7ba1\u7406\u7cfb\u7edf\uff0c\u5373\u53ef\u5f00\u59cb\u4f7f\u7528 YApi \u8fdb\u884c\u63a5\u53e3\u7ba1\u7406\u4e0e\u6d4b\u8bd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u73af\u5883\u51c6\u5907 1.1 \u5b89\u88c5 Node.js \u548c npm \u5efa\u8bae\u4f7f\u7528 nvm \u6765\u7ba1\u7406 Node.js \u7248\u672c\u3002\u64cd\u4f5c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,3],"tags":[],"class_list":["post-363","post","type-post","status-publish","format-standard","hentry","category-19","category-3"],"_links":{"self":[{"href":"https:\/\/zhaoyanqi.cn\/index.php?rest_route=\/wp\/v2\/posts\/363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zhaoyanqi.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhaoyanqi.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhaoyanqi.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhaoyanqi.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=363"}],"version-history":[{"count":1,"href":"https:\/\/zhaoyanqi.cn\/index.php?rest_route=\/wp\/v2\/posts\/363\/revisions"}],"predecessor-version":[{"id":364,"href":"https:\/\/zhaoyanqi.cn\/index.php?rest_route=\/wp\/v2\/posts\/363\/revisions\/364"}],"wp:attachment":[{"href":"https:\/\/zhaoyanqi.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhaoyanqi.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhaoyanqi.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}