{"id":2287,"date":"2021-09-30T04:20:04","date_gmt":"2021-09-29T20:20:04","guid":{"rendered":"https:\/\/www.develop-note.com\/blog\/?p=2287"},"modified":"2022-02-16T17:34:49","modified_gmt":"2022-02-16T09:34:49","slug":"filter-attribute","status":"publish","type":"post","link":"https:\/\/www.develop-note.com\/blog\/2021\/09\/30\/filter-attribute\/","title":{"rendered":"D-15 \u904e\u6ffe\u5668 ? filter ? attribute"},"content":{"rendered":"<h1>filter<\/h1>\n<p>\u773c\u5c16\u7684\u5c0f\u5149\u5728\u6628\u65e5\u7684\u5167\u5bb9\u4e2d\u770b\u5230\u4e86\u4e00\u500b\u6709\u8da3\u7684\u6771\u897f\uff0c\u5c31\u662f<code>MiddlewareFilter<\/code>\uff0c\u6240\u4ee5\u9019\u500bfilter\u53c8\u56f0\u64fe\u4e86\u4ed6\u4e00\u6574\u665a\uff0c\u6240\u4ee5\u4e00\u5927\u65e9\u4ed6\u5c31\u4f86\u4e86\u89e3\u751a\u9ebc\u662ffilter\u3002<\/p>\n<p><!--more--><\/p>\n<h2>\u904e\u6ffe\u5668\u662f\u751a\u9ebc<\/h2>\n<p>\u300c\u524d\u8f29\u963f\uff0c\u6628\u5929\u9047\u5230\u7684\u4e00\u500bMiddlewareFilter\u9019\u662f\u751a\u9ebc\u6771\u897f\u554a?\u300d<br \/>\n\u4e00\u5927\u65e9\u5c0f\u5149\u5c31\u4f86\u554f\u5927\u982d\u95dc\u65bc\u904e\u6ffe\u5668\u7684\u6771\u897f\uff0c\u56e0\u70ba\u9019\u554f\u984c\u56f0\u64fe\u4e86\u4ed6\u4e00\u6574\u665a\u6240\u4ee5\u4ed6\u7684\u9ed1\u773c\u5708\u90fd\u8dd1\u51fa\u4f86\u4e86\u3002<br \/>\n\u300c\u54c8\u54c8\u54c8\uff0c\u4f60\u7684\u773c\u775b\u771f\u5229\u963f\uff0c\u6c92\u60f3\u5230\u9019\u6a23\u7684\u6771\u897f\u90fd\u6703\u88ab\u4f60\u6ce8\u610f\u5230\uff0c\u90a3\u6211\u5011\u4eca\u5929\u5c31\u4f86\u8aaa\u660e\u4e00\u4e0b\u751a\u9ebc\u662f\u904e\u6ffe\u5668\u3002\u300d<br \/>\n\u525b\u8aaa\u5b8c\u9019\u53e5\u8a71\u7684\u5927\u982d\u4f3c\u4e4e\u60f3\u5230\u751a\u9ebc\u505c\u9813\u4e86\u4e00\u4e0b\uff0c\u4e0d\u904e\u904e\u4e86\u5e7e\u79d2\u5f8c\u4ed6\u5c31\u9019\u9ebc\u8aaa\u4e86\u3002<br \/>\n\u300c\u4e0d\u904e\u5728\u8aaa\u660e\u904e\u6ffe\u5668\u4e4b\u524d\u6709\u500b\u6771\u897f\u8981\u5148\u4ecb\u7d39\uff0c\u90a3\u5c31\u662f\u5c6c\u6027\u3002\u300d<\/p>\n<h2>\u5c6c\u6027 attribute<\/h2>\n<p>\u5728\u8aaa\u660e\u904e\u6ffe\u5668\u4e4b\u524d\u8981\u5148\u8aaa\u660e\u5c6c\u6027\uff0c\u6240\u4ee5\u8acb\u5927\u5bb6\u5148\u770b\u4e00\u4e0b\u9019\u500b<a href=\"https:\/\/docs.microsoft.com\/zh-tw\/dotnet\/csharp\/programming-guide\/concepts\/attributes\/\" title=\"MSDN \u5c6c\u6027\" rel=\"nofollow noopener\" target=\"_blank\">\u5c6c\u6027<\/a>\uff0c\u9019\u908a\u7684\u5c6c\u6027\u662f<code>attribute<\/code>\u8ddf\u524d\u9762\u8b1b\u7684<code>property<\/code>\u4e2d\u6587\u7ffb\u8b6f\u662f\u4e00\u6a23\uff0c\u4f46\u662f\u5167\u5bb9\u5dee\u5f88\u591a\uff0c\u6240\u4ee5\u672c\u7bc7\u6240\u8aaa\u7684\u5c6c\u6027\u90fd\u662f\u6307<code>attribute<\/code>\uff0c\u9019\u908a\u63d0\u5230\u7684\u5c6c\u6027\u529f\u7528\u5f88\u591a\uff0c\u4f46\u662f\u4e00\u6a23\u7684\u5730\u65b9\u90fd\u662f\u4ee5<code>[]<\/code>\u5305\u8986\u8d77\u4f86\u7684\u3002\u7136\u800c\u5728\u672c\u7bc7\u7528\u5230\u7684\u5c6c\u6027\u7684\u529f\u7528\u662f\u639b\u4e0a\u8a72\u904e\u6ffe\u5668\u7684\u5c6c\u6027\u5c31\u53ef\u4ee5\u5728\u57f7\u884c\u8a72Action\u6216\u662f\u8a72Controller\u7684Action\u90fd\u6703\u9032\u5165\u904e\u6ffe\u5668\u4e4b\u4e2d\uff0c\u5c31\u8996\u8a72\u904e\u6ffe\u5668\u662f\u639b\u5728Controller\u9084\u662f\u54ea\u500bAction\uff0c\u6240\u4ee5\u63a5\u4e0b\u4f86\u958b\u59cb\u8aaa\u660e\u904e\u6ffe\u5668\u3002<\/p>\n<h2>\u904e\u6ffe\u5668 filter<\/h2>\n<p>\u63d0\u5230\u904e\u6ffe\u5668\u9084\u662f\u6703\u63d0\u5230\u8acb\u6c42\u7684\u6d41\u6c34\u7dda\uff0c\u4f46\u76ee\u524d\u8981\u8aaa\u7684\u662f\u901a\u904e\u4e2d\u4ecb\u5c64\u5f8c\u9762\u90a3\u4e00\u6bb5\uff0c\u6240\u4ee5\u5927\u5bb6\u5148\u770b\u4e00\u4e0b<a href=\"https:\/\/docs.microsoft.com\/zh-tw\/aspnet\/core\/mvc\/controllers\/filters\" title=\"MSDN \u7be9\u9078\u689d\u4ef6\" rel=\"nofollow noopener\" target=\"_blank\">\u904e\u6ffe\u5668<\/a>\u3002<\/p>\n<h3>\u751a\u9ebc\u662f\u904e\u6ffe\u5668<\/h3>\n<p>\u6240\u8b02\u7684\u904e\u6ffe\u5668\u5c31\u662f\u5728\u8acb\u6c42\u7684\u6d41\u6c34\u7dda\u9032\u5165Action\u4e4b\u524d\u8ddf\u4e4b\u5f8c\u6703\u505a\u4e9b\u8655\u7406\u7684\u52d5\u4f5c\uff0c\u6240\u4ee5\u5927\u5bb6\u5148\u770b\u4e00\u4e0b\u4e0b\u5716\u3002<\/p>\n<p><a href=\"https:\/\/www.develop-note.com\/blog\/wp-content\/uploads\/2021\/09\/dotnetcore-filter-pipeline.png\"><img decoding=\"async\" src=\"https:\/\/www.develop-note.com\/blog\/wp-content\/uploads\/2021\/09\/dotnetcore-filter-pipeline.png\" alt=\"\u904e\u6ffe\u5668\u7684\u6d41\u6c34\u7dda\" \/> \u904e\u6ffe\u5668\u7684\u6d41\u6c34\u7dda<\/a><\/p>\n<p>\u6240\u4ee5\u8aaa\u7576\u8def\u7531\u4e2d\u5230\u7279\u5b9a\u7684Action\u4e4b\u5f8c\u8981\u6e96\u5099\u57f7\u884c\u4e4b\u524d\u6703\u5148\u6aa2\u67e5\u8a72Action\u6709\u6c92\u6709\u639b\u904e\u6ffe\u5668\u7684\u7684\u5c6c\u6027\uff0c\u7576\u6709\u639b\u7279\u5b9a\u904e\u6ffe\u5668\u7684\u5c6c\u6027\u6642\u6703\u5148\u57f7\u884c\u8a72\u904e\u6ffe\u5668\uff0c\u4e26\u4e14\u5728\u7d50\u675f\u6642\u6703\u57f7\u884c\u8a72\u904e\u6ffe\u5668\u3002<\/p>\n<h3>\u904e\u6ffe\u5668\u7a2e\u985e<\/h3>\n<p>\u96d6\u7136\u8aaa\u90fd\u662f\u904e\u6ffe\u5668\uff0c\u4f46\u662f\u904e\u6ffe\u5668\u4e5f\u6709\u8a31\u591a\u7a2e\u985e\uff0c\u8acb\u53c3\u8003\u4e0b\u5217\u8868\u683c\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u7a2e\u985e<\/th>\n<th>\u5167\u5bb9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u6388\u6b0a<\/td>\n<td>\u512a\u5148\u57f7\u884c\uff0c\u7528\u4f86\u5224\u65b7\u4f7f\u7528\u8005\u662f\u5426\u5df2\u91dd\u5c0d\u8981\u6c42\u53d6\u5f97\u6388\u6b0a\u3002 \u5982\u679c\u8981\u6c42\u672a\u7372\u6388\u6b0a\uff0c\u6703\u9032\u884c\u8f03\u77ed\u7684\u7dda\u8def\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u8cc7\u6e90<\/td>\n<td>\u6703\u5728\u6388\u6b0a\u4e4b\u5f8c\u57f7\u884c\u3002\u5728\u6a21\u578b\u7cfb\u7d50\u4e4b\u524d\u57f7\u884c\u7a0b\u5f0f\u78bc\u3002\u4e26\u5728\u7ba1\u7dda\u7684\u5176\u9918\u90e8\u5206\u5b8c\u6210\u4e4b\u5f8c\u57f7\u884c\u7a0b\u5f0f\u78bc\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u52d5\u4f5c<\/td>\n<td>\u5728\u547c\u53eb\u52d5\u4f5c\u65b9\u6cd5\u4e4b\u524d\u548c\u4e4b\u5f8c\u7acb\u5373\u57f7\u884c\u7a0b\u5f0f\u78bc\uff0c\u53ef\u4ee5\u8b8a\u66f4\u50b3\u905e\u81f3\u52d5\u4f5c\u7684\u5f15\u6578\u3002\u4e26\u4e14\u53ef\u4ee5\u8b8a\u66f4\u52d5\u4f5c\u50b3\u56de\u7684\u7d50\u679c\u3002\u4e0d\u652f\u63f4Razor\u9801\u9762\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u4f8b\u5916\u72c0\u6cc1<\/td>\n<td>\u6703\u5c07\u5168\u57df\u539f\u5247\u5957\u7528\u81f3\u56de\u61c9\u4e3b\u9ad4\u5beb\u5165\u4e4b\u524d\u767c\u751f\u7684\u672a\u8655\u7406\u4f8b\u5916\u72c0\u6cc1\u3002<\/td>\n<\/tr>\n<tr>\n<td>\u7d50\u679c<\/td>\n<td>\u6703\u5728\u57f7\u884c\u52d5\u4f5c\u7d50\u679c\u4e4b\u524d\u548c\u4e4b\u5f8c\u7acb\u5373\u57f7\u884c\u7a0b\u5f0f\u78bc\u3002 \u5b83\u5011\u53ea\u6709\u5728\u52d5\u4f5c\u65b9\u6cd5\u57f7\u884c\u6210\u529f\u6642\u624d\u57f7\u884c\u3002 \u5b83\u5011\u9069\u7528\u65bc\u5fc5\u9808\u5305\u570d\u6aa2\u8996\u6216\u683c\u5f0f\u5668\u57f7\u884c\u7684\u908f\u8f2f\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u800c\u904e\u6ffe\u5668\u4ed6\u5011\u4e4b\u9593\u57f7\u884c\u7684\u5148\u5f8c\u9806\u5e8f\u5982\u4e0b\u5716\u6240\u793a\u3002<\/p>\n<p><a href=\"https:\/\/www.develop-note.com\/blog\/wp-content\/uploads\/2021\/09\/dotnetcore-filter-pipeline-bykind.png\"><img decoding=\"async\" src=\"https:\/\/www.develop-note.com\/blog\/wp-content\/uploads\/2021\/09\/dotnetcore-filter-pipeline-bykind.png\" alt=\"\u904e\u6ffe\u5668\u985e\u5225\u9593\u7684\u6d41\u6c34\u7dda\" \/> \u904e\u6ffe\u5668\u985e\u5225\u9593\u7684\u6d41\u6c34\u7dda<\/a><\/p>\n<h3>\u5be6\u505a\u904e\u6ffe\u5668<\/h3>\n<p>\u6211\u5011\u9019\u908a\u4ee5\u52d5\u4f5c\u904e\u6ffe\u5668\u70ba\u4f8b\u5b50\u4f86\u8aaa\u660e\u5982\u4f55\u5be6\u4f5c\u4e00\u500b\u904e\u6ffe\u5668\uff0c\u6240\u4ee5\u8acb\u5927\u5bb6\u5148\u770b\u4e0b\u5217\u5167\u5bb9<\/p>\n<pre><code class=\"language-cs\">public class CustomActionFilter : IActionFilter \n{\n    public void OnActionExecuting(ActionExecutingContext context)\n    {\n        \/\/ \u57f7\u884c\u52d5\u4f5c\u524d\u7684\u8655\u7406\n    }\n\n    public void OnActionExecuted(ActionExecutedContext context)\n    {\n        \/\/ \u57f7\u884c\u52d5\u4f5c\u5f8c\u7684\u8655\u7406\n    }\n}<\/code><\/pre>\n<p>\u6240\u4ee5\u904e\u6ffe\u5668\u7684\u5be6\u4f5c\u5c31\u662f\u9019\u9ebc\u7c21\u55ae\uff0c\u60f3\u597d\u4f60\u9700\u8981\u505a\u4e9b\u751a\u9ebc\u5728\u5c0d\u7684\u6642\u9593\u9ede\u5be6\u4f5c\u5373\u53ef\uff0c\u4e0d\u904e\u9019\u908a\u6709\u5206\u5169\u7a2e\u4ecb\u9762\uff0c\u9664\u4e86\u4e0a\u8ff0\u7684<code>IActionFilter<\/code>\u4e4b\u5916\uff0c\u9084\u6709<code>IAsyncActionFilter<\/code>\uff0c\u9019\u908a\u6709\u500b\u6ce8\u610f\u4e8b\u9805\uff0c\u8acb\u5be6\u4f5c<code>\u540c\u6b65<\/code>\u6216<code>\u975e\u540c\u6b65<\/code>\u7248\u672c\u7684\u7be9\u9078\u689d\u4ef6\u4ecb\u9762\uff0c\u800c<code>\u4e0d\u8981<\/code>\u540c\u6642\u5be6\u4f5c\u9019\u5169\u8005\u3002\u57f7\u884c\u968e\u6bb5\u6703\u5148\u6aa2\u67e5\u4ee5\u67e5\u770b\u7be9\u9078\u689d\u4ef6\u662f\u5426\u6703\u5be6\u4f5c\u975e\u540c\u6b65\u4ecb\u9762\uff0c\u5982\u679c\u662f\uff0c\u4fbf\u6703\u547c\u53eb\u8a72\u4ecb\u9762\u3002 \u5982\u679c\u6c92\u6709\uff0c\u5b83\u6703\u547c\u53eb\u540c\u6b65\u4ecb\u9762\u7684\u65b9\u6cd5\u3002\u5982\u679c\u540c\u6642\u5728\u55ae\u4e00\u985e\u5225\u4e2d\u5be6\u4f5c\u975e\u540c\u6b65\u548c\u540c\u6b65\u4ecb\u9762\uff0c<code>\u7cfb\u7d71\u53ea\u6703\u547c\u53eb\u975e\u540c\u6b65\u65b9\u6cd5<\/code>\u3002\u63a5\u4e0b\u4f86\u5728\u770b\u770b\u8981\u5982\u4f55\u628a\u9019\u904e\u6ffe\u5668\u639b\u4e0a\u53bb\u3002<\/p>\n<h3>\u4f7f\u7528\u904e\u6ffe\u5668<\/h3>\n<p>\u4f9d\u64da\u904e\u6ffe\u5668\u7684\u7bc4\u570d\u6709\u5206\u70ba\u4ee5\u4e0b\u5169\u7a2e\uff0c<\/p>\n<ul>\n<li>\u5168\u57df<\/li>\n<li>\u5340\u57df<\/li>\n<\/ul>\n<p>\u95dc\u65bc\u5168\u57df\u7684\u904e\u6ffe\u5668\u53ef\u4ee5\u7528\u4ee5\u4e0b\u65b9\u5f0f\u4f7f\u7528\u3002<\/p>\n<pre><code class=\"language-cs\">public void ConfigureServices(IServiceCollection services)\n{\n    services.AddControllersWithViews(options =&gt;\n    {\n        options.Filters.Add(typeof(CustomActionFilter),\n                            int.MinValue);\n    });\n}<\/code><\/pre>\n<p>\u800c\u5340\u57df\u7684\u904e\u6ffe\u5668\u6709\u4e09\u500b\u639b\u4e0a\u904e\u6ffe\u5668\u7684\u65b9\u6cd5\uff0c\u5982\u4e0b\u5217\u6240\u793a\u3002<\/p>\n<ul>\n<li>ServiceFilterAttribute<\/li>\n<li>TypeFilterAttribute<\/li>\n<li>IFilterFactory\u3002<\/li>\n<\/ul>\n<p>\u9996\u5148\u8aaa\u660e\u5982\u4f55\u4f7f\u7528<code>ServiceFilter<\/code>\u8207<code>TypeFilter<\/code>\u65b9\u5f0f\u639b\u4e0a\u904e\u6ffe\u5668\u3002<\/p>\n<pre><code class=\"language-cs\">\/\/ \u7528ServiceFilter\u5728Action\u639b\u4e0a\u904e\u6ffe\u5668\n[ServiceFilter(typeof(CustomActionFilter))]\npublic IActionResult Index()\n{\n    return View();\n}\n\n\/\/ \u7528TypeFilter\u5728Action\u639b\u4e0a\u904e\u6ffe\u5668\n[TypeFilter(typeof(CustomActionFilter),\n    Arguments = new object[] { &quot;\u9019\u662f\u53c3\u6578&quot; })]\npublic IActionResult Hi(string name)\n{\n    return Content($&quot;Hi {name}&quot;);\n}<\/code><\/pre>\n<p>\u4ee5\u4e0a\u5169\u500b\u4f7f\u7528\u7684\u65b9\u5f0f\u5dee\u5225\u5982\u4e0b\uff0c\u4f7f\u7528TypeFilter\u53c3\u8003\u7684\u985e\u578b\u4e0d\u9700\u8981\u5411DI\u5bb9\u5668\u8a3b\u518a\u3002\u4e0d\u904e\u5b83\u5011\u7684\u76f8\u4f9d\u6027\u6703\u7531DI\u5bb9\u5668\u6eff\u8db3\u3002\u800c\u4e14TypeFilter\u53ef\u4ee5\u9078\u64c7\u6027\u5730\u63a5\u53d7\u985e\u578b\u7684\u5efa\u69cb\u51fd\u5f0f\u5f15\u6578\u3002\u800cServiceFilter\u9700\u8981\u5148\u5728DI\u8a3b\u518a\u904e\u6ffe\u5668\u3002<\/p>\n<p>\u6700\u5f8c\u7528IFilterFactory\u639b\u4e0a\u904e\u6ffe\u5668\u7684\u65b9\u5f0f\u5982\u4e0b\u3002<\/p>\n<pre><code class=\"language-cs\">\/\/ \u5de5\u5ee0\u7684\u5be6\u4f5c\npublic class CustomActionFactoryAttribute : Attribute, IFilterFactory\n{\n    \/\/ Implement IFilterFactory\n    public IFilterMetadata CreateInstance(IServiceProvider serviceProvider)\n    {\n        return new CustomActionFilter();\n    }\n\n    public bool IsReusable\n    {\n        get\n        {\n            return false;\n        }\n    }\n}\n\n\/\/ \u639b\u5de5\u5ee0\u5728\u65b9\u6cd5\u4e0a\n[CustomActionFactoryAttribute]\npublic IActionResult CustomActionFactory()\n{\n    \/\/ ...\n}<\/code><\/pre>\n<p>\u9019\u908a\u8981\u6ce8\u610f<code>IFilterFactory.IsReusable<\/code>\u7576\u904e\u6ffe\u5668\u7684\u4f86\u6e90\u662f\u660e\u78ba\u7684\u3001\u70ba\u7121\u72c0\u614b\uff0c\u800c\u4e14\u53ef\u4ee5\u5728\u591a\u500bHTTP\u8981\u6c42\u4e2d\u5b89\u5168\u5730\u4f7f\u7528\u6642\uff0c\u624d\u8a2d\u5b9a\u70ba\u50b3\u56de<code>true<\/code>\u3002<\/p>\n<h2>\u5f8c\u8a18<\/h2>\n<p>\u300c\u524d\u8f29\u963f\uff0c\u9019\u5e7e\u5929\u8b1b\u7684\u5f88\u591a\u6771\u897f\u90fd\u5728\u8def\u7531\u3001\u4e2d\u4ecb\u5c64\u8ddf\u904e\u6ffe\u5668\u505a\u5b8c\u4e86\uff0c\u90a3Action\u8981\u505a\u751a\u9ebc\u963f\u3002\u300d<br \/>\n\u807d\u5b8c\u4e86\u9019\u5e7e\u5929\u7684\u5167\u5bb9\u5f8c\u5c0f\u5149\u9019\u9ebc\u554f\u5927\u982d\u3002<br \/>\n\u300c\u54c8\u54c8\u54c8\uff0c\u4f60\u592a\u5c0f\u770b\u7db2\u9801\u7a0b\u5f0f\u4e86\uff0c\u4f60\u9019\u554f\u984c\u660e\u5929\u5c31\u6703\u544a\u8a34\u4f60Controller\u8ddfAction\u8981\u505a\u751a\u9ebc\u52d5\u4f5c\uff0c\u5176\u4e2d\u4e00\u9805\u5c31\u662f\u756b\u9762\u6e32\u67d3\u3002\u300d<br \/>\n\u6240\u4ee5\u5927\u5bb6\u5c31\u671f\u5f85\u4e00\u4e0b\u660e\u5929\u7684razor\u6e32\u67d3\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>filter \u773c\u5c16\u7684\u5c0f\u5149\u5728\u6628\u65e5\u7684\u5167\u5bb9\u4e2d\u770b\u5230\u4e86\u4e00\u500b\u6709\u8da3\u7684\u6771\u897f\uff0c\u5c31\u662fMiddlewareFilter\uff0c\u6240\u4ee5\u9019\u500bfi &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.develop-note.com\/blog\/2021\/09\/30\/filter-attribute\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008D-15 \u904e\u6ffe\u5668 ? filter ? attribute\u3009<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[2],"tags":[90,118,92,116],"class_list":["post-2287","post","type-post","status-publish","format-standard","hentry","category-develop","tag-2021ironman","tag-attribute","tag-dotnetcore","tag-filter"],"_links":{"self":[{"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/posts\/2287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/comments?post=2287"}],"version-history":[{"count":36,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/posts\/2287\/revisions"}],"predecessor-version":[{"id":2938,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/posts\/2287\/revisions\/2938"}],"wp:attachment":[{"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/media?parent=2287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/categories?post=2287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/tags?post=2287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}