{"id":3807,"date":"2019-03-15T00:11:38","date_gmt":"2019-03-14T15:11:38","guid":{"rendered":"https:\/\/greentown.tokyo\/?p=3807"},"modified":"2019-03-31T08:20:45","modified_gmt":"2019-03-30T23:20:45","slug":"10minutes-go16","status":"publish","type":"post","link":"https:\/\/greentown.tokyo\/?p=3807","title":{"rendered":"10\u5206GO 16\u65e5\u76ee"},"content":{"rendered":"<p>goa\u3063\u3066\u3044\u3046\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u3064\u3044\u3066\u304a\u52c9\u5f37\u3002<\/p>\n<p>\u3042\u3061\u3053\u3061\u306e\u30b5\u30a4\u30c8\u3092\u898b\u306a\u304c\u3089\u3001\u4f55\u500b\u304b\u4f5c\u3063\u3066\u307f\u305f\u3093\u3060\u3051\u3069\u30fb\u30fb\u306a\u3093\u304b\u3046\u307e\u304f\u3044\u304b\u306a\u3044<\/p>\n<p>\u4eca\u56de\u306f\u3069\u3046\u304b\u30fb\u30fb<\/p>\n<h2>DSL\u8a00\u8a9e<\/h2>\n<p>\u540d\u524d\u3060\u3051\u306f\u805e\u3044\u305f\u3053\u3068\u3042\u308b\u30fb\u30fb<\/p>\n<h6>\u30c9\u30e1\u30a4\u30f3\u56fa\u6709\u8a00\u8a9e<\/h6>\n<p>\u3042\u308b\u7279\u5b9a\u306e\u9818\u57df\uff08\u30c9\u30e1\u30a4\u30f3\uff09\u306e\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306b\u4f5c\u3089\u308c\u305f\u8a00\u8a9e\u3002\u8a00\u8a9e\u3068\u306f\u4f55\u304b\u3092\u8a18\u8ff0\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3002<\/p>\n<p>\u3063\u3066 Wikipedia \u8aad\u3093\u3060\u3051\u3069\u3001\u4f55\u8a00\u3063\u3066\u308b\u304b\u5168\u7136\u308f\u304b\u3089\u3093\u30fb\u30fb<\/p>\n<p>&nbsp;<\/p>\n<h2>GO<\/h2>\n<p>\u4eca\u56de\u306e\u304a\u984c\u3002GO\u306eAPI\u30b5\u30fc\u30d0\u30fc\u3092\u4f5c\u308b\u3002<\/p>\n<h3>goa<\/h3>\n<h6>goa\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/h6>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$ pwd\r\n\/Users\/mikke\/go\/src\r\n$ ls\r\nawesomeProject\t\tgolang.org\t\tmywebapp\r\ngithub.com\t\tgopkg.in\t\ttodolist\r\ngohandson\t\tgopl.io-ch1-echo1\ttweets-collection\r\n$ go install github.com\/goadesign\/goa\/goagen\r\n$ cd goadesign\/goa\/goagen\r\n$ go build<\/pre>\n<h6><\/h6>\n<p>&nbsp;<\/p>\n<h6><\/h6>\n<h6>goa\u30b5\u30fc\u30d3\u30b9\u7528\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u308b<\/h6>\n<pre class=\"theme:dark-terminal lang:default decode:true\">$ mkdir -p $GOPATH\/src\/goa-adder\/design<\/pre>\n<h6><\/h6>\n<p>&nbsp;<\/p>\n<h6>GoLnad\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30d5\u30a9\u30eb\u30c0\u3092\u958b\u3044\u3066\u3001GO\u30d5\u30a1\u30a4\u30eb\u4f5c\u6210<\/h6>\n<p>\u2193\u3053\u308c\u3001\u958b\u304f\u306e\u9593\u9055\u3048\u305f\u306e\u3002$GOPATH\/src\/goa-adder\/design \u3058\u3083\u306a\u304f\u3066\u3001$GOPATH\/src\/goa-adder \u3092\u958b\u304f\u306e\u304c\u6b63\u89e3\u3002<\/p>\n<p><a href=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/6df6cdf898af5917cebe0ad1261d1fd5.png\"><img decoding=\"async\" class=\"alignnone wp-image-3819 size-full\" src=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/6df6cdf898af5917cebe0ad1261d1fd5.png\" alt=\"\" width=\"1616\" height=\"538\" srcset=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/6df6cdf898af5917cebe0ad1261d1fd5.png 1616w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/6df6cdf898af5917cebe0ad1261d1fd5-300x100.png 300w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/6df6cdf898af5917cebe0ad1261d1fd5-768x256.png 768w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/6df6cdf898af5917cebe0ad1261d1fd5-1024x341.png 1024w\" sizes=\"(max-width: 1616px) 100vw, 1616px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/1fd3d6bef09b33fd1f3fa0b5069c64ad.png\"><img decoding=\"async\" class=\"alignnone wp-image-3820 size-medium\" src=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/1fd3d6bef09b33fd1f3fa0b5069c64ad-300x124.png\" alt=\"\" width=\"300\" height=\"124\" srcset=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/1fd3d6bef09b33fd1f3fa0b5069c64ad-300x124.png 300w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/1fd3d6bef09b33fd1f3fa0b5069c64ad.png 734w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>design\/design.go\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre class=\"\">\/\/ design\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u5b9a\u7fa9\u3059\u308b\r\n\/\/ \u540d\u524d\u306f\u306a\u3093\u3067\u3082\u826f\u3044\uff08design\u306f\u6163\u4f8b\uff09\r\npackage design\r\n\r\n\/\/ goa\u306fGO\u3067\u66f8\u304b\u308c\u3066\u3044\u308b\u3051\u3069GO\u3067\u306f\u306a\u3044\r\nimport (\r\n   . \"github.com\/goadesign\/goa\/design\"\r\n   . \"github.com\/goadesign\/goa\/design\/apidsl\"\r\n)\r\n\r\n\/\/ \u533f\u540d\u5909\u6570\uff08\u30a2\u30f3\u30b9\u30b3\uff09\u3092\u4f7f\u3063\u3066API\u3092\u5ba3\u8a00\u3059\u308b\r\n\/\/ API\u95a2\u6570\r\n\/\/     API(API\u306e\u540d\u524d, \u7121\u540d\u95a2\u6570)\r\nvar _ = API(\"adder\", func() {\r\n   \/\/ \u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30bf\u30a4\u30c8\u30eb\u3068\u8aac\u660e\u6587\u3092\u66f8\u304f\r\n   Title(\"The adder API\")\r\n   Description(\"A teaser for goa\")\r\n   Host(\"localhost:8080\")\r\n   Scheme(\"http\")\r\n})\r\n\r\n\/\/ \u533f\u540d\u95a2\u6570\u3092\u4f7f\u3063\u3066Resource\u3092\u5ba3\u8a00\u3059\u308b\r\n\/\/ Resource\u95a2\u6570\r\n\/\/     Resource(\u304a\u540d\u524d, \u7121\u540d\u95a2\u6570)\r\n\/\/ \u30d7\u30ed\u30d1\u30c6\u30a3\r\n\/\/     \u30ea\u30bd\u30fc\u30b9\u304c\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u5168\u3066\u306e\u30a2\u30af\u30b7\u30e7\u30f3\r\n\/\/     \u30ec\u30b9\u30dd\u30f3\u30b9\u3067\u30ea\u30bd\u30fc\u30b9\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30e1\u30c7\u30a3\u30a2\u30bf\u30a4\u30d7\u3092\u6307\u5b9a\u3059\u308b\r\nvar _ = Resource(\"operands\", func() {\r\n   \/\/ Action\u95a2\u6570\u3092\u5ba3\u8a00\u3059\u308b\r\n   \/\/     HTTP\u30e1\u30bd\u30c3\u30c9, URL, \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8, \u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\r\n   Action(\"add\", func() {\r\n      Routing(GET(\"add\/:left\/:right\"))\r\n      Description(\"add returns the sum of the left and right parameters in the response body\")\r\n      Params(func() {\r\n         \/\/ DSL\u306e\u66f8\u304d\u65b9\u3089\u3057\u3044\uff1f\r\n         \/\/ Param(&lt;\u540d\u524d&gt;, &lt;\u578b&gt;, &lt;\u8aac\u660e&gt; func() {\r\n         \/\/     \u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\uff08\u7701\u7565\u53ef\uff09\r\n         \/\/     default val\uff08\u7701\u7565\u53ef\uff09\r\n         \/\/     \u4f7f\u7528\u4f8b\uff08\u7701\u7565\u53ef\uff09\r\n         \/\/ })\r\n         Param(\"left\", Integer, \"Left operand\")\r\n         Param(\"right\", Integer, \"\")\r\n      })\r\n      Response(OK, \"text\/plain\")\r\n   })\r\n})<\/pre>\n<p>&nbsp;<\/p>\n<h6>\u305d\u3093\u306a\u30b3\u30de\u30f3\u30c9\u306a\u3044\u3088\uff1f<\/h6>\n<pre class=\"theme:dark-terminal lang:default decode:true\">$ goagen bootstrap -d goa-adder\/design\r\n-bash: goagen: command not found<\/pre>\n<p>\u3063\u3066\u8a00\u308f\u308c\u308b\u306e\u3002<\/p>\n<p>2\u6642\u9593\u60b6\u3005\u3068\u3057\u305f\u7d50\u679c\u3001GOPATH\u304c\u901a\u3063\u3066\u306a\u304b\u3063\u305f\u3060\u3051\u3060\u3063\u305f\u30fb\u30fb\u30fb\u304c\u30fc\u3093\u3002<\/p>\n<p>\u30d1\u30b9\u3092\u901a\u3057\u305f\u3089\u00a0goagen bootstrap -d goa-adder\/design \u3067\u304d\u305f\u3002<\/p>\n<p>\u3067\u3001<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true\">$ pwd\r\n\/Users\/mikke\/go\/src\/goa-adder\r\n$ ls\r\napp\t\tdesign\t\toperands.go\ttool\r\nclient\t\tmain.go\t\tswagger<\/pre>\n<p>\u3053\u3093\u306a\u306e\u304c\u3067\u304d\u3066\u3044\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h6>operands.go \u3092\u7de8\u96c6\u3059\u308b<\/h6>\n<p>\/Users\/mikke\/go\/src\/goa-adder\/operands.go \u3053\u3063\u3061\u3060\u3088<\/p>\n<p>\/Users\/mikke\/go\/src\/goa-adder\/client\/operands.go \u3053\u3063\u3061\u3058\u3083\u306a\u3044\u3088<\/p>\n<pre class=\"lang:go decode:true\">package main\r\n\r\nimport (\r\n\t\"github.com\/goadesign\/goa\"\r\n\t\"goa-adder\/app\"\r\n\t\"strconv\"\r\n)\r\n\r\n\/\/ OperandsController implements the operands resource.\r\ntype OperandsController struct {\r\n\t*goa.Controller\r\n}\r\n\r\n\/\/ NewOperandsController creates a operands controller.\r\nfunc NewOperandsController(service *goa.Service) *OperandsController {\r\n\treturn &amp;OperandsController{Controller: service.NewController(\"OperandsController\")}\r\n}\r\n\/* \u30b3\u30e1\u30f3\u30c8\u3057\u3066\r\n\/\/ Add runs the add action.\r\nfunc (c *OperandsController) Add(ctx *AddOperandsContext) error {\r\n\t\/\/ OperandsController_Add: start_implement\r\n\r\n\t\/\/ Put your logic here\r\n\r\n\treturn nil\r\n\t\/\/ OperandsController_Add: end_implement\r\n}\r\n*\/\r\n\/\/ \u3053\u3053\u8ffd\u52a0\r\nfunc (c *OperandsController) Add(ctx *app.AddOperandsContext) error {\r\n\tsum := ctx.Left + ctx.Right\r\n\treturn ctx.OK([]byte(strconv.Itoa(sum)))\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>\u30d3\u30eb\u30c9\u3059\u308b\u3002<\/p>\n<p><a href=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/9e8ffa9854b95e55c4a3196d60bbccb5.png\"><img decoding=\"async\" class=\"alignnone wp-image-3840 size-full\" src=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/9e8ffa9854b95e55c4a3196d60bbccb5.png\" alt=\"\" width=\"1324\" height=\"484\" srcset=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/9e8ffa9854b95e55c4a3196d60bbccb5.png 1324w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/9e8ffa9854b95e55c4a3196d60bbccb5-300x110.png 300w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/9e8ffa9854b95e55c4a3196d60bbccb5-768x281.png 768w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/9e8ffa9854b95e55c4a3196d60bbccb5-1024x374.png 1024w\" sizes=\"(max-width: 1324px) 100vw, 1324px\" \/><\/a><\/p>\n<p>\u304a\u3063\u3051\u3044\u307d\u3044<\/p>\n<p><a href=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/e8fc65cc300d99dd86a9fe57899c8293.png\"><img decoding=\"async\" class=\"alignnone wp-image-3841 size-full\" src=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/e8fc65cc300d99dd86a9fe57899c8293.png\" alt=\"\" width=\"1394\" height=\"212\" srcset=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/e8fc65cc300d99dd86a9fe57899c8293.png 1394w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/e8fc65cc300d99dd86a9fe57899c8293-300x46.png 300w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/e8fc65cc300d99dd86a9fe57899c8293-768x117.png 768w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2019\/03\/e8fc65cc300d99dd86a9fe57899c8293-1024x156.png 1024w\" sizes=\"(max-width: 1394px) 100vw, 1394px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>GoLnad\u4e0a\u3067adder-cli\u3092\u30d3\u30eb\u30c9\u3057\u305f\u3089\u3046\u307e\u304f\u5b9f\u884c\u3067\u304d\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u5b9f\u884c\u3002<\/p>\n<p>\u3053\u308c\u3082\u3046\u307e\u304f\u3044\u304b\u306a\u304f\u3066\u3001<\/p>\n<blockquote><p>Open a new console and compile the generated CLI tool:<\/p><\/blockquote>\n<p>\u516c\u5f0f\u30b5\u30a4\u30c8\u3092\u3088\u304f\u8aad\u3093\u3060\u3089\u3001\u65b0\u3057\u3044\u30bf\u30fc\u30df\u30ca\u30eb\u958b\u304d\u306a\u3055\u3044\u3088\u30fb\u30fb\u3068\u3002\u3002<\/p>\n<p>\u65b0\u3057\u3044\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u3001\u3082\u3046\u3044\u3063\u304b\u3044\u5b9f\u884c<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true\">$ cd $GOPATH\/src\/goa-adder\/tool\/adder-cli\r\n$ go build\r\n$ ls\r\nadder-cli main.go<\/pre>\n<p>adder-cli \u3067\u304d\u3066\u308b\u3057\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$ .\/adder-cli add operands \/add\/1\/2\r\n2019\/03\/14 23:48:56 [INFO] started id=D45GGgDa GET=http:\/\/localhost:8080\/add\/1\/2\r\n2019\/03\/14 23:48:56 [INFO] completed id=D45GGgDa status=200 time=5.192374ms<\/pre>\n<p>\u304a\u3001\u52d5\u304d\u307e\u3057\u305f\u301c<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$ .\/adder-cli add operands --left=1 --right=2\r\n2019\/03\/14 23:52:38 [INFO] started id=1516okXQ GET=http:\/\/localhost:8080\/add\/1\/2\r\n2019\/03\/14 23:52:38 [INFO] completed id=1516okXQ status=200 time=3.995963ms<\/pre>\n<p>\u3053\u308c\u3082\u3002\u30b3\u30d4\u307a\u3060\u3051\u3069\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$ .\/adder-cli add operands add\/1\/\u3042\r\n2019\/03\/14 23:55:34 [INFO] started id=hRU45PBR GET=http:\/\/localhost:8080\/add\/1\/\u3042\r\n2019\/03\/14 23:55:34 [INFO] completed id=hRU45PBR status=400 time=21.12531ms\r\nerror: 400: {\"id\":\"jUC34HqR\",\"code\":\"invalid_request\",\"status\":400,\"detail\":\"invalid value \\\"\u3042\\\" for parameter \\\"right\\\", must be a integer\",\"meta\":{\"expected\":\"integer\",\"param\":\"right\",\"value\":\"\u3042\"}}<\/pre>\n<p>\u691c\u8a3c\u3082\u3070\u3063\u3061\u308a\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u304a\u308f\u308a<\/h2>\n<p>swagger\u3068\u304b\u307e\u3067\u3084\u3063\u3066\u307f\u305f\u304b\u3063\u305f\u3051\u3069\u3001\u30bf\u30a4\u30e0\u30aa\u30fc\u30d0\u30fc\u3002<\/p>\n<p>\u4eca\u9031\u3001\u3042\u3061\u3053\u3061\u306e\u30d6\u30ed\u30b0\u898b\u3066\u3084\u3063\u305f\u3051\u3069\u3067\u304d\u306a\u304f\u3066\u3001\u4e2d\u5cf6\u8061\u6c0f\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u307e\u305a\u898b\u307e\u3057\u3087\u3046\u301c\u3063\u3066\u8a00\u8449\u3092\u601d\u3044\u51fa\u3057\u3066\u3001\u82f1\u8a9e\u3067\u304d\u306a\u3044\u3051\u3069\u304c\u3093\u3070\u3063\u3066\u8aad\u3093\u3060\u308f\u30fb\u30fb\u3002\u3042\u3068\u0016\u3001tenntenn\u3055\u3093\u304cGoogle\u7ffb\u8a33\u304b\u3051\u308b\u3068\u304d\u306fGO\u306e\u90e8\u5206\u3092Java\u3068\u304b\u306b\u7f6e\u304d\u63db\u3048\u3066\u307f\u30fb\u30fb\u3066\u3044\u3046\u306e\u3082\u306a\u304b\u306a\u304b\u4f7f\u3048\u308b\u3002<\/p>\n<p>\u663c\u9593\u306f\u663c\u4f11\u307f\u3042\u3063\u3068\u3044\u3046\u9593\u3060\u3057\u3001\u5e30\u5b85\u3057\u305f\u3089\u3054\u306f\u3093\u4f5c\u3093\u306a\u304d\u3083\u306a\u3093\u306a\u3044\u3057\u3001\u591c\u30011\u301c2\u6642\u9593\u3057\u304b\u6642\u9593\u3068\u308c\u306a\u3044\u3057\u3001\u5bb6\u65cf\u306e\u3058\u3083\u307e\u304c\u3081\u3063\u3061\u3083\u5165\u308b\u3057\u3001\u5f79\u54e1\u306e\u304a\u624b\u4f1d\u3044\u3084\u3089\u306a\u3044\u3068\u3084\u3093\u306a\u3044\u3057\u30fb\u30fb\u4ed6\u306e\u8a00\u8a9e\u3068\u304b\u6280\u8853\u306b\u3082\u8208\u5473\u3042\u308b\u3057\u30fb\u30fb\u306a\u304b\u306a\u304b\u9032\u307e\u306a\u3044\u3051\u3069\u3001\u3086\u308b\u3086\u308b\u3068\u7d99\u7d9a\u3057\u3066\u3044\u304f\u308f\u301c<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>goa\u3063\u3066\u3044\u3046\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u3064\u3044\u3066\u304a\u52c9\u5f37\u3002 \u3042\u3061\u3053\u3061\u306e\u30b5\u30a4\u30c8\u3092\u898b\u306a\u304c\u3089\u3001\u4f55\u500b\u304b\u4f5c\u3063\u3066\u307f\u305f\u3093\u3060\u3051\u3069\u30fb\u30fb\u306a\u3093\u304b\u3046\u307e\u304f\u3044\u304b\u306a\u3044 \u4eca\u56de\u306f\u3069\u3046\u304b\u30fb\u30fb DSL\u8a00\u8a9e \u540d\u524d\u3060\u3051\u306f\u805e\u3044\u305f\u3053\u3068\u3042\u308b\u30fb\u30fb \u30c9\u30e1\u30a4\u30f3\u56fa\u6709\u8a00\u8a9e &#8230; <\/p>\n","protected":false},"author":1,"featured_media":3949,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[95],"tags":[],"class_list":["post-3807","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-golang"],"_links":{"self":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/3807"}],"collection":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3807"}],"version-history":[{"count":25,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/3807\/revisions"}],"predecessor-version":[{"id":3850,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/3807\/revisions\/3850"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/media\/3949"}],"wp:attachment":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}