{"id":372,"date":"2019-02-20T23:51:00","date_gmt":"2019-02-20T10:51:00","guid":{"rendered":"https:\/\/blog.wiseowls.co.nz\/?p=372"},"modified":"2026-03-08T00:44:43","modified_gmt":"2026-03-07T11:44:43","slug":"making-swagger-to-get-the-authorization-token-from-url-query-string","status":"publish","type":"post","link":"https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/","title":{"rendered":"Making Swagger to get the authorization token from URL query string"},"content":{"rendered":"\n<p>Swagger is extremely useful when developing and debugging Web APIs. Some dev environments however got a bit of security added on top which can get a bit too painful to work around.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Enter API key<\/h2>\n\n\n\n<p>It doesn&#8217;t need to be tedious! We&#8217;ll be looking at overriding Swagger-UI&#8217;s index page so we can plug a custom handler into\u00a0<code>onComplete<\/code>\u00a0callback. Solution is extremely simple:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Grab latest index.html from&nbsp;<a href=\"https:\/\/github.com\/domaindrivendev\/Swashbuckle.AspNetCore\/blob\/master\/src\/Swashbuckle.AspNetCore.SwaggerUI\/index.html\">Swashbuckle&#8217;s source repo<\/a>&nbsp;(ideally, get the matching version)<\/li><li>Tweak&nbsp;<code>configObject<\/code>&nbsp;to add an&nbsp;<code>OnComplete<\/code>&nbsp;callback handler so it will call&nbsp;<a href=\"https:\/\/github.com\/swagger-api\/swagger-ui\/blob\/master\/docs\/usage\/configuration.md\"><code>preauthorizeApiKey<\/code><\/a>&nbsp;when the UI is ready<\/li><li>Override&nbsp;<code>IndexStream<\/code>&nbsp;in&nbsp;<code>UserSwaggerUI<\/code>&nbsp;extension method to serve the custom html<\/li><\/ol>\n\n\n\n<p>I ended up having the following setup (some bits are omitted for brevity):<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">wwwroot\/swashbuckle.html<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"markup\" class=\"language-markup\">&lt;!-- your standard HTML here, nothing special -->\n&lt;script>\n    \/\/ some boilerplate initialisation\n    \/\/ Begin Swagger UI call region\n    configObject.onComplete = () => {\n\n        \/\/ get the authorization portion of the query string\n        var urlParams = new URLSearchParams(window.location.search);\n        if (urlParams.has('authorization')) {\n            var apikey = urlParams.get('authorization');\n\n            \/\/ this is the important bit, see documentation\n            ui.preauthorizeApiKey('api key', apikey );\/\/ key name must match the one you defined in AddSecurityDefinition method in Startup.cs\n       }\n    }\n    const ui = SwaggerUIBundle(configObject);\n    window.ui = ui        \n}\n&lt;\/script><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Startup.cs<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"csharp\" class=\"language-csharp\">    public void ConfigureServices(IServiceCollection services)\n    {\n        .........\n        services.AddSwaggerGen(c => {\n            c.SwaggerDoc(\"v1\", new Info { Title = \"You api title\", Version = \"v1\" });\n            c.AddSecurityDefinition(\"api key\", new ApiKeyScheme() \/\/ key name must match the one you supply to preauthorizeApiKey call in JS\n            {\n                Description = \"Authorization query string expects API key\",\n                In = \"query\",\n                Name = \"authorization\",\n                Type = \"apiKey\"\n            });\n\n            var requirements = new Dictionary&lt;string, IEnumerable&lt;string>> {\n                { \"api key\", new List&lt;string>().AsEnumerable() }\n            };\n            c.AddSecurityRequirement(requirements);\n        });\n    }\n\n    \/\/ This method gets called by the runtime. Use this method to configure the HTTP request pipeline.\n    public void Configure(IApplicationBuilder app, IHostingEnvironment env)\n    {\n        app.UseSwagger();\n        app.UseSwaggerUI(c =>\n        {\n            c.IndexStream = () => File.OpenRead(\"wwwroot\/swashbuckle.html\"); \/\/ this is the important bit. see documentation https:\/\/github.com\/domaindrivendev\/Swashbuckle.AspNetCore\/blob\/master\/README.md\n            c.SwaggerEndpoint(\"\/swagger\/v1\/swagger.json\", \"My API V1\"); \/\/ very standard Swashbuckle init\n        });\n        app.UseMvc();\n    }<\/code><\/pre>\n\n\n\n<p>After having finished all that, calling the standard swagger URL with <code>?authorization=1234567890<\/code> should automatically authorize the page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Swagger is extremely useful when developing and debugging Web APIs. Some dev environments however got a bit of security added on top which can get a bit too painful to work around. Enter API key It doesn&#8217;t need to be tedious! We&#8217;ll be looking at overriding Swagger-UI&#8217;s index page so we can plug a custom &hellip; <a href=\"https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Making Swagger to get the authorization token from URL query string&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":378,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[11],"tags":[12,25],"class_list":["post-372","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev","tag-c","tag-swagger"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Making Swagger to get the authorization token from URL query string - Timur and associates<\/title>\n<meta name=\"description\" content=\"Overriding Swagger UI&#039;s index page to auto-inject API key from query string. Quick and painless.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Making Swagger to get the authorization token from URL query string - Timur and associates\" \/>\n<meta property=\"og:description\" content=\"Overriding Swagger UI&#039;s index page to auto-inject API key from query string. Quick and painless.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/\" \/>\n<meta property=\"og:site_name\" content=\"Timur and associates\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-20T10:51:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-07T11:44:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.wiseowls.co.nz\/wp-content\/uploads\/2020\/02\/shahadat-rahman-BfrQnKBulYQ-unsplash-scaled-e1581852169189.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1280\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"timur\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@TimurKh\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2019\\\/02\\\/20\\\/making-swagger-to-get-the-authorization-token-from-url-query-string\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2019\\\/02\\\/20\\\/making-swagger-to-get-the-authorization-token-from-url-query-string\\\/\"},\"author\":{\"name\":\"timur\",\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/#\\\/schema\\\/person\\\/34d0ed30d573b5bc317ea990bd2e0c59\"},\"headline\":\"Making Swagger to get the authorization token from URL query string\",\"datePublished\":\"2019-02-20T10:51:00+00:00\",\"dateModified\":\"2026-03-07T11:44:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2019\\\/02\\\/20\\\/making-swagger-to-get-the-authorization-token-from-url-query-string\\\/\"},\"wordCount\":156,\"image\":{\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2019\\\/02\\\/20\\\/making-swagger-to-get-the-authorization-token-from-url-query-string\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/shahadat-rahman-BfrQnKBulYQ-unsplash-scaled-e1581852169189.jpg\",\"keywords\":[\"c#\",\"swagger\"],\"articleSection\":[\"Development\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2019\\\/02\\\/20\\\/making-swagger-to-get-the-authorization-token-from-url-query-string\\\/\",\"url\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2019\\\/02\\\/20\\\/making-swagger-to-get-the-authorization-token-from-url-query-string\\\/\",\"name\":\"Making Swagger to get the authorization token from URL query string - Timur and associates\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2019\\\/02\\\/20\\\/making-swagger-to-get-the-authorization-token-from-url-query-string\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2019\\\/02\\\/20\\\/making-swagger-to-get-the-authorization-token-from-url-query-string\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/shahadat-rahman-BfrQnKBulYQ-unsplash-scaled-e1581852169189.jpg\",\"datePublished\":\"2019-02-20T10:51:00+00:00\",\"dateModified\":\"2026-03-07T11:44:43+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/#\\\/schema\\\/person\\\/34d0ed30d573b5bc317ea990bd2e0c59\"},\"description\":\"Overriding Swagger UI's index page to auto-inject API key from query string. Quick and painless.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2019\\\/02\\\/20\\\/making-swagger-to-get-the-authorization-token-from-url-query-string\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2019\\\/02\\\/20\\\/making-swagger-to-get-the-authorization-token-from-url-query-string\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2019\\\/02\\\/20\\\/making-swagger-to-get-the-authorization-token-from-url-query-string\\\/#primaryimage\",\"url\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/shahadat-rahman-BfrQnKBulYQ-unsplash-scaled-e1581852169189.jpg\",\"contentUrl\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/shahadat-rahman-BfrQnKBulYQ-unsplash-scaled-e1581852169189.jpg\",\"width\":1920,\"height\":1280},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/index.php\\\/2019\\\/02\\\/20\\\/making-swagger-to-get-the-authorization-token-from-url-query-string\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Making Swagger to get the authorization token from URL query string\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/#website\",\"url\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/\",\"name\":\"Timur and associates\",\"description\":\"Notes of an IT contractor\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blog.wiseowls.co.nz\\\/#\\\/schema\\\/person\\\/34d0ed30d573b5bc317ea990bd2e0c59\",\"name\":\"timur\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/23d55e17d4f0990ee4d12bc6e5dcfb58a292934efd62a185756876379e780b16?s=96&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/23d55e17d4f0990ee4d12bc6e5dcfb58a292934efd62a185756876379e780b16?s=96&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/23d55e17d4f0990ee4d12bc6e5dcfb58a292934efd62a185756876379e780b16?s=96&r=pg\",\"caption\":\"timur\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/TimurKh\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Making Swagger to get the authorization token from URL query string - Timur and associates","description":"Overriding Swagger UI's index page to auto-inject API key from query string. Quick and painless.","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:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/","og_locale":"en_US","og_type":"article","og_title":"Making Swagger to get the authorization token from URL query string - Timur and associates","og_description":"Overriding Swagger UI's index page to auto-inject API key from query string. Quick and painless.","og_url":"https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/","og_site_name":"Timur and associates","article_published_time":"2019-02-20T10:51:00+00:00","article_modified_time":"2026-03-07T11:44:43+00:00","og_image":[{"width":1920,"height":1280,"url":"https:\/\/blog.wiseowls.co.nz\/wp-content\/uploads\/2020\/02\/shahadat-rahman-BfrQnKBulYQ-unsplash-scaled-e1581852169189.jpg","type":"image\/jpeg"}],"author":"timur","twitter_card":"summary_large_image","twitter_creator":"@TimurKh","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/#article","isPartOf":{"@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/"},"author":{"name":"timur","@id":"https:\/\/blog.wiseowls.co.nz\/#\/schema\/person\/34d0ed30d573b5bc317ea990bd2e0c59"},"headline":"Making Swagger to get the authorization token from URL query string","datePublished":"2019-02-20T10:51:00+00:00","dateModified":"2026-03-07T11:44:43+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/"},"wordCount":156,"image":{"@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.wiseowls.co.nz\/wp-content\/uploads\/2020\/02\/shahadat-rahman-BfrQnKBulYQ-unsplash-scaled-e1581852169189.jpg","keywords":["c#","swagger"],"articleSection":["Development"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/","url":"https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/","name":"Making Swagger to get the authorization token from URL query string - Timur and associates","isPartOf":{"@id":"https:\/\/blog.wiseowls.co.nz\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/#primaryimage"},"image":{"@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.wiseowls.co.nz\/wp-content\/uploads\/2020\/02\/shahadat-rahman-BfrQnKBulYQ-unsplash-scaled-e1581852169189.jpg","datePublished":"2019-02-20T10:51:00+00:00","dateModified":"2026-03-07T11:44:43+00:00","author":{"@id":"https:\/\/blog.wiseowls.co.nz\/#\/schema\/person\/34d0ed30d573b5bc317ea990bd2e0c59"},"description":"Overriding Swagger UI's index page to auto-inject API key from query string. Quick and painless.","breadcrumb":{"@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/#primaryimage","url":"https:\/\/blog.wiseowls.co.nz\/wp-content\/uploads\/2020\/02\/shahadat-rahman-BfrQnKBulYQ-unsplash-scaled-e1581852169189.jpg","contentUrl":"https:\/\/blog.wiseowls.co.nz\/wp-content\/uploads\/2020\/02\/shahadat-rahman-BfrQnKBulYQ-unsplash-scaled-e1581852169189.jpg","width":1920,"height":1280},{"@type":"BreadcrumbList","@id":"https:\/\/blog.wiseowls.co.nz\/index.php\/2019\/02\/20\/making-swagger-to-get-the-authorization-token-from-url-query-string\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.wiseowls.co.nz\/"},{"@type":"ListItem","position":2,"name":"Making Swagger to get the authorization token from URL query string"}]},{"@type":"WebSite","@id":"https:\/\/blog.wiseowls.co.nz\/#website","url":"https:\/\/blog.wiseowls.co.nz\/","name":"Timur and associates","description":"Notes of an IT contractor","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.wiseowls.co.nz\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.wiseowls.co.nz\/#\/schema\/person\/34d0ed30d573b5bc317ea990bd2e0c59","name":"timur","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/23d55e17d4f0990ee4d12bc6e5dcfb58a292934efd62a185756876379e780b16?s=96&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/23d55e17d4f0990ee4d12bc6e5dcfb58a292934efd62a185756876379e780b16?s=96&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/23d55e17d4f0990ee4d12bc6e5dcfb58a292934efd62a185756876379e780b16?s=96&r=pg","caption":"timur"},"sameAs":["https:\/\/x.com\/TimurKh"]}]}},"_links":{"self":[{"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/posts\/372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/comments?post=372"}],"version-history":[{"count":2,"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/posts\/372\/revisions"}],"predecessor-version":[{"id":379,"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/posts\/372\/revisions\/379"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/media\/378"}],"wp:attachment":[{"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/media?parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/categories?post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.wiseowls.co.nz\/index.php\/wp-json\/wp\/v2\/tags?post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}