{"id":31816,"date":"2026-12-01T22:04:17","date_gmt":"2026-12-01T22:04:17","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=31816"},"modified":"2026-12-01T22:04:17","modified_gmt":"2026-12-01T22:04:17","slug":"chef-tutorials-how-to-write-and-test-a-chef-recipe","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/chef-tutorials-how-to-write-and-test-a-chef-recipe\/","title":{"rendered":"Chef Tutorials: How to write and test a chef recipe?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The quickest way to write and test a Chef recipe is to put Chef resources in a single Ruby file and run it with <code>chef-apply<\/code>, which ships with Chef Workstation and needs no Chef Infra Server or cookbook. The steps below create a file with the <code>file<\/code> resource, then run it normally, with debug logging and in why-run mode. The sections after them complete the missing install step and show how to check idempotency, lint with Cookstyle and confirm the result with Chef InSpec.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1 &#8211; Install &amp; Verify Chef Workstation<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2 &#8211; Write a following content in hello.rb<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">file <span class=\"hljs-string\">'index.html'<\/span> <span class=\"hljs-keyword\">do<\/span>\r\n  content <span class=\"hljs-string\">\"Hello everyone from DevOpsSchool\"<\/span>\r\nend<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3 &#8211; Write a following content in hello.rb<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">$ chef-apply hello.rb\r\n$ chef-apply hello.rb\r\n$ chef-apply hello.rb -l debug\r\n$ chef-apply hello.rb --why-run<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Run the executable in why-run mode, which is a type of Chef Infra Client run that does everything except modify the system. Use why-run mode to understand why the Chef Infra Client makes the decisions that it makes and to learn more about the current and proposed state of the system.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Corrections to the steps above<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Step 1 has no commands.<\/strong> The install and verify steps are filled in in the next section.<\/li>\n\n\n<li><strong>Step 3 has the wrong heading.<\/strong> It repeats &quot;Write a following content in hello.rb&quot;, but this step runs the recipe. A better heading is &quot;Run the recipe with chef-apply&quot;.<\/li>\n\n\n<li><strong>The repeated <code>chef-apply hello.rb<\/code> line is not explained.<\/strong> Running the recipe a second time is a deliberate idempotency check. The second run should report the resource as <code>(up to date)<\/code> and change nothing.<\/li>\n\n\n<li><strong>The relative path <code>index.html<\/code> is resolved against the current working directory.<\/strong> The file ends up wherever you ran the command. Use an absolute path in real recipes so the result is predictable.<\/li>\n\n\n<li><strong>License acceptance is missing.<\/strong> On first use, Chef Infra tools ask you to accept the Chef license. On a non-interactive shell or in CI the run fails unless you pass <code>--chef-license accept<\/code>.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Install and verify Chef Workstation<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Chef Workstation bundles Chef Infra Client (which provides <code>chef-apply<\/code>), Chef InSpec, Cookstyle, ChefSpec and Test Kitchen. Download the package for your operating system from Chef&#039;s official downloads page, then install it with the package manager for your system.<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\"><span class=\"hljs-comment\"># Debian \/ Ubuntu<\/span>\nsudo dpkg -i chef-workstation_*.deb\n\n<span class=\"hljs-comment\"># RHEL \/ Rocky \/ Alma \/ Amazon Linux<\/span>\nsudo rpm -Uvh chef-workstation-*.rpm\n\n<span class=\"hljs-comment\"># macOS (Homebrew)<\/span>\nbrew install --cask chef-workstation<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Verify the install and make the embedded Ruby and tools the default in your shell:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">chef -v\n<span class=\"hljs-comment\"># Lists the versions of Chef Workstation, Chef Infra Client, Chef InSpec,<\/span>\n<span class=\"hljs-comment\"># Chef CLI, Test Kitchen and Cookstyle<\/span>\n\nwhich chef-apply\n\n<span class=\"hljs-comment\"># Optional: use Workstation's embedded Ruby in this shell<\/span>\n<span class=\"hljs-keyword\">eval<\/span> <span class=\"hljs-string\">\"$(chef shell-init bash)\"<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> To accept the license once without being prompted, run <code>chef-apply<\/code> with <code>--chef-license accept<\/code> the first time, or export <code>CHEF_LICENSE=accept<\/code> in CI jobs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What the recipe does and what to expect<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><code>file &#039;index.html&#039;<\/code> declares a <strong>resource<\/strong>: the type is <code>file<\/code> and the name is the path. The <code>content<\/code> property describes the desired state. Chef compares that desired state with what is on disk and acts only if they differ. With no <code>action<\/code> line, the default action <code>:create<\/code> is used.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The first run creates the file and prints a diff. The checksum and temp file names will differ on your machine:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-4\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">$ chef-apply hello.rb\n<span class=\"hljs-attr\">Recipe<\/span>: (chef-apply cookbook)::(chef-apply recipe)\n  * file&#91;index.html] action create\n    - create <span class=\"hljs-keyword\">new<\/span> file index.html\n    - update content <span class=\"hljs-keyword\">in<\/span> file index.html <span class=\"hljs-keyword\">from<\/span> none to <span class=\"hljs-number\">3<\/span>b1f2e\n    --- index.html\n    +++ .\/.chef-index20261201<span class=\"hljs-number\">-12345<\/span>-abcd.html\n    @@ <span class=\"hljs-number\">-1<\/span> +<span class=\"hljs-number\">1<\/span>,<span class=\"hljs-number\">2<\/span> @@\n    +Hello everyone <span class=\"hljs-keyword\">from<\/span> DevOpsSchool<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-4\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">The second run changes nothing. This is the idempotency check that the repeated command above is there for:<\/p>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs\">$ chef-apply hello.rb\nRecipe: (chef-apply cookbook)::(chef-apply recipe)\n  * file&#91;index.html] action create (up to date)<\/code><\/span><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Edit <code>index.html<\/code> by hand and run the recipe again. Chef detects the drift and restores the declared content. This convergence behaviour is the main reason to manage configuration with Chef instead of shell scripts.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">A more realistic recipe<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Real recipes use absolute paths, set ownership and permissions, and combine several resources. This version creates a directory and a file inside it. It writes under <code>\/tmp<\/code>, so no root access is needed:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-5\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">directory <span class=\"hljs-string\">'\/tmp\/devopsschool'<\/span> <span class=\"hljs-keyword\">do<\/span>\n  mode <span class=\"hljs-string\">'0755'<\/span>\n  <span class=\"hljs-attr\">action<\/span> :create\nend\n\nfile <span class=\"hljs-string\">'\/tmp\/devopsschool\/index.html'<\/span> <span class=\"hljs-keyword\">do<\/span>\n  content <span class=\"hljs-string\">\"Hello everyone from DevOpsSchool\\n\"<\/span>\n  mode <span class=\"hljs-string\">'0644'<\/span>\n  <span class=\"hljs-attr\">action<\/span> :create\nend<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-5\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">Resources run in the order they are written, so the directory exists before the file is created. To remove the file, change the action to <code>action :delete<\/code> and run <code>chef-apply<\/code> again. Recipes that manage packages, services or files under <code>\/etc<\/code> must be run with <code>sudo<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Testing the recipe<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">&quot;Testing&quot; a recipe covers several levels. For a single-file recipe, the following steps catch most problems before anything touches a real server:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Syntax check:<\/strong> <code>chef exec ruby -c hello.rb<\/code> should print <code>Syntax OK<\/code>.<\/li>\n\n\n<li><strong>Lint:<\/strong> <code>cookstyle hello.rb<\/code> reports Ruby style problems and Chef-specific issues. A clean result ends with <code>no offenses detected<\/code>. <code>cookstyle -a hello.rb<\/code> fixes the issues it can correct automatically.<\/li>\n\n\n<li><strong>Dry run:<\/strong> <code>chef-apply hello.rb --why-run<\/code> (short form <code>-W<\/code>) shows what would change without changing it.<\/li>\n\n\n<li><strong>Converge twice:<\/strong> the second run must report every resource as <code>(up to date)<\/code>. Changes on every run point to a non-idempotent resource, usually an <code>execute<\/code> or <code>bash<\/code> block without a guard.<\/li>\n\n\n<li><strong>Verify the end state<\/strong> with Chef InSpec, as shown below.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Save this InSpec control as <code>verify.rb<\/code>:<\/p>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-6\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">describe file(<span class=\"hljs-string\">'\/tmp\/devopsschool\/index.html'<\/span>) <span class=\"hljs-keyword\">do<\/span>\n  it { should exist }\n  it { should be_file }\n  its(<span class=\"hljs-string\">'mode'<\/span>) { should cmp <span class=\"hljs-string\">'0644'<\/span> }\n  its(<span class=\"hljs-string\">'content'<\/span>) { should match \/Hello everyone <span class=\"hljs-keyword\">from<\/span> DevOpsSchool\/ }\nend<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-6\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-7\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php\">inspec exec verify.rb --chef-license accept\n<span class=\"hljs-comment\"># With no --target option, InSpec checks the local machine.<\/span>\n<span class=\"hljs-comment\"># Expected summary: 4 successful, 0 failures, 0 skipped<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-7\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<p class=\"wp-block-paragraph\">When the recipe moves into a cookbook (<code>chef generate cookbook my_cookbook<\/code>), the same ideas grow into ChefSpec unit tests (<code>chef exec rspec<\/code>) and Test Kitchen integration tests (<code>kitchen test<\/code>). Test Kitchen converges the cookbook on a fresh VM or container and then runs InSpec against it. For more on InSpec itself, see <a href=\"https:\/\/www.devopsschool.com\/blog\/what-is-chef-inspec-and-how-it-works-an-overview-and-its-use-cases\/\">What is Chef InSpec and How it works?<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> Why-run mode makes assumptions. If a later resource depends on an earlier one, such as a service whose package is not installed yet, why-run assumes the earlier step would have succeeded. Treat its output as a forecast, not a guarantee.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Useful chef-apply options<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Option<\/th><th>Purpose<\/th><\/tr><\/thead><tbody><tr><td><code>-W<\/code>, <code>--why-run<\/code><\/td><td>Show what would change without modifying the system<\/td><\/tr><tr><td><code>-l debug<\/code>, <code>--log_level debug<\/code><\/td><td>Verbose logging for troubleshooting resource decisions<\/td><\/tr><tr><td><code>-e &#039;RECIPE_TEXT&#039;<\/code><\/td><td>Run recipe code passed on the command line instead of from a file<\/td><\/tr><tr><td><code>-s<\/code>, <code>--stdin<\/code><\/td><td>Read the recipe from standard input<\/td><\/tr><tr><td><code>--chef-license accept<\/code><\/td><td>Accept the Chef license non-interactively<\/td><\/tr><tr><td><code>--minimal-ohai<\/code><\/td><td>Collect only essential system data, so runs start faster<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-8\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript\">chef-apply -e <span class=\"hljs-string\">\"file '\/tmp\/quick.txt' do content 'hi' end\"<\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-8\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h2 class=\"wp-block-heading\">Common errors and fixes<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Symptom<\/th><th>Cause<\/th><th>Fix<\/th><\/tr><\/thead><tbody><tr><td><code>chef-apply: command not found<\/code><\/td><td>Chef Workstation is not installed or its bin directory is not on <code>PATH<\/code><\/td><td>Reinstall, or open a new shell and run <code>eval &quot;$(chef shell-init bash)&quot;<\/code><\/td><\/tr><tr><td>Run stops and asks to accept the license, or fails in CI<\/td><td>The license has not been accepted<\/td><td>Add <code>--chef-license accept<\/code> or set <code>CHEF_LICENSE=accept<\/code><\/td><\/tr><tr><td><code>Permission denied<\/code> on a path such as <code>\/var\/www\/html<\/code><\/td><td>The user cannot write to that location<\/td><td>Run with <code>sudo<\/code> or choose a writable path<\/td><\/tr><tr><td><code>SyntaxError<\/code> or <code>unexpected end-of-input<\/code><\/td><td>A missing <code>end<\/code> or an unbalanced quote in the Ruby<\/td><td>Run <code>chef exec ruby -c hello.rb<\/code> and fix the reported line<\/td><\/tr><tr><td><code>index.html<\/code> is not where you expected<\/td><td>A relative path was used<\/td><td>Use an absolute path in the resource name<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">What is the difference between chef-apply and chef-client?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>chef-apply<\/code> runs a single recipe file directly, with no cookbook, run-list or server, which makes it ideal for learning and quick tests. <code>chef-client<\/code> runs cookbooks from a run-list, either against a Chef Infra Server or locally with <code>chef-client --local-mode<\/code> (<code>-z<\/code>).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Does why-run mode change anything on the system?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">No. <code>--why-run<\/code> evaluates every resource and reports what it would do, but makes no changes. Because it cannot see the results of earlier changes, its output for dependent resources is based on assumptions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I know my Chef recipe is idempotent?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Run it twice in a row. On the second run every resource should report <code>(up to date)<\/code> and the summary should show no resources updated.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Can I test a Chef recipe without a Chef Infra Server?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. <code>chef-apply<\/code>, Cookstyle, ChefSpec, Test Kitchen and InSpec all work locally from Chef Workstation. A server is only needed to manage nodes centrally.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Where does chef-apply create a file when the path is relative?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In the current working directory of the shell where you ran <code>chef-apply<\/code>. Use absolute paths in recipes so the result does not depend on where the command is run.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related tutorials<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/what-is-chef-and-use-cases-of-chef\/\">What is Chef and use cases of Chef?<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/what-is-chef-inspec-and-how-it-works-an-overview-and-its-use-cases\/\">What is Chef InSpec and How it works? An Overview and Its Use Cases<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/chef-tutorials-knife-command-line-reference\/\">Chef Tutorials: knife command line reference<\/a><\/li>\n\n\n<li><a href=\"https:\/\/www.devopsschool.com\/blog\/category\/infrastructure-as-code\/chef\/\">More Chef tutorials<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The quickest way to write and test a Chef recipe is to put Chef resources in a single Ruby file and run it with chef-apply, which ships&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[88],"tags":[4799],"class_list":["post-31816","post","type-post","status-publish","format-standard","hentry","category-chef","tag-chef-recipes"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/31816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=31816"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/31816\/revisions"}],"predecessor-version":[{"id":80484,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/31816\/revisions\/80484"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=31816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=31816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=31816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}