{"id":299,"date":"2026-10-31T21:00:00","date_gmt":"2026-10-31T16:00:00","guid":{"rendered":"https:\/\/www.shaz3e.com\/blog\/?p=299"},"modified":"2026-11-02T17:06:13","modified_gmt":"2026-11-02T12:06:13","slug":"openapi-typescript-client","status":"publish","type":"post","link":"https:\/\/www.shaz3e.com\/blog\/openapi-typescript-client\/","title":{"rendered":"Writing OpenAPI Specs and Generating TypeScript Clients"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">OpenAPI TypeScript client generation means writing your API down once, as an OpenAPI spec, and letting a tool turn that spec into TypeScript types your frontend has to obey. If the backend renames a field, the frontend stops compiling instead of quietly showing <code>undefined<\/code> to users.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A lot of teams keep the API contract in three places: the backend code, a Postman collection someone updates when they remember, and a hand-written <code>types.ts<\/code> in the frontend. All three drift. A spec-first workflow collapses them into one file that both sides read. This post walks through a small spec, the generated types, a typed client used from a Next.js server component, and the checks that catch drift before it ships.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"contents\">What this post covers<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li><a href=\"#spec\">Writing the spec first<\/a><\/li>\n\n\n<li><a href=\"#generate\">Generating the types<\/a><\/li>\n\n\n<li><a href=\"#client\">A typed client with openapi-fetch<\/a><\/li>\n\n\n<li><a href=\"#next\">Using it in a Next.js server component<\/a><\/li>\n\n\n<li><a href=\"#errors\">Error responses are part of the contract<\/a><\/li>\n\n\n<li><a href=\"#drift\">Catching drift in CI<\/a><\/li>\n\n\n<li><a href=\"#tests\">The tests<\/a><\/li>\n\n\n<li><a href=\"#faq\">FAQ<\/a><\/li>\n\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Tested on Next.js 16.4.3, React 19.3.1, TypeScript 5.9.3 (strict mode), openapi-typescript 7.13.0, openapi-fetch 0.17.0 and Node 20.19.2. Six runtime tests pass against a local HTTP server, five deliberate type errors are caught by the compiler, and the page builds and renders with <code>next build<\/code> and <code>next start<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"spec\">Writing the spec first<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Spec-first means the contract is agreed before either side writes code. The frontend can start against a mock, the backend knows exactly what to return, and arguments about field names happen in a pull request on one YAML file instead of in a bug report three weeks later. It&#8217;s the API version of writing a <a href=\"https:\/\/diligentcreators.com\/blog\/web-app-requirements-document\/\" target=\"_blank\" rel=\"noopener\">web app requirements document<\/a> before anyone opens an editor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s a small spec for a projects API, written against <a href=\"https:\/\/spec.openapis.org\/oas\/v3.1.0.html\" target=\"_blank\" rel=\"noopener\">OpenAPI 3.1<\/a>. It has a list endpoint with a filter, a create endpoint that can fail validation, and a single-item endpoint that can 404:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>openapi: 3.1.0\ninfo:\n  title: Projects API\n  version: 1.0.0\nservers:\n  - url: http:\/\/localhost:4010\npaths:\n  \/projects:\n    get:\n      operationId: listProjects\n      parameters:\n        - name: status\n          in: query\n          required: false\n          schema:\n            $ref: '#\/components\/schemas\/ProjectStatus'\n      responses:\n        '200':\n          description: A list of projects\n          content:\n            application\/json:\n              schema:\n                type: array\n                items:\n                  $ref: '#\/components\/schemas\/Project'\n    post:\n      operationId: createProject\n      requestBody:\n        required: true\n        content:\n          application\/json:\n            schema:\n              $ref: '#\/components\/schemas\/NewProject'\n      responses:\n        '201':\n          description: Created\n          content:\n            application\/json:\n              schema:\n                $ref: '#\/components\/schemas\/Project'\n        '422':\n          description: Validation failed\n          content:\n            application\/json:\n              schema:\n                $ref: '#\/components\/schemas\/ValidationError'\n  \/projects\/{id}:\n    get:\n      operationId: getProject\n      parameters:\n        - name: id\n          in: path\n          required: true\n          schema:\n            type: integer\n      responses:\n        '200':\n          description: One project\n          content:\n            application\/json:\n              schema:\n                $ref: '#\/components\/schemas\/Project'\n        '404':\n          description: Not found\n          content:\n            application\/json:\n              schema:\n                $ref: '#\/components\/schemas\/NotFound'\ncomponents:\n  schemas:\n    ProjectStatus:\n      type: string\n      enum: [active, paused, archived]\n    Project:\n      type: object\n      required: [id, name, status, created_at]\n      properties:\n        id:\n          type: integer\n        name:\n          type: string\n        status:\n          $ref: '#\/components\/schemas\/ProjectStatus'\n        budget:\n          type: [number, 'null']\n        created_at:\n          type: string\n          format: date-time\n    NewProject:\n      type: object\n      required: [name]\n      properties:\n        name:\n          type: string\n          minLength: 1\n        budget:\n          type: [number, 'null']\n    ValidationError:\n      type: object\n      required: [message, errors]\n      properties:\n        message:\n          type: string\n        errors:\n          type: object\n          additionalProperties:\n            type: array\n            items:\n              type: string\n    NotFound:\n      type: object\n      required: [message]\n      properties:\n        message:\n          type: string<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A few habits that pay off later:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li><strong>Give every operation an <code>operationId<\/code>.<\/strong> Generators and docs tools use it for names, and it keeps them stable when paths change.<\/li>\n\n\n<li><strong>Put reusable shapes in <code>components\/schemas<\/code>.<\/strong> <code>Project<\/code> is defined once and referenced everywhere, so the generated types have one name for it.<\/li>\n\n\n<li><strong>Be honest about nulls.<\/strong> In 3.1, <code>type: [number, 'null']<\/code> says the field can be null. If the backend sometimes sends <code>null<\/code> and the spec doesn&#8217;t say so, the types will lie to you.<\/li>\n\n\n<li><strong>Describe the error responses too.<\/strong> The 422 and 404 bodies are part of the contract. More on why below.<\/li>\n\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;re deciding between a REST contract like this and GraphQL in the first place, I compared them in <a href=\"https:\/\/www.shaz3e.com\/blog\/rest-vs-graphql\/\">REST vs GraphQL for SaaS Public APIs<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"generate\">Generating the types<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">openapi-typescript reads the spec and writes a single <code>.d.ts<\/code> file. There&#8217;s no runtime code in it, only types, so it adds nothing to your bundle.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>npm i -D openapi-typescript typescript\nnpm i openapi-fetch\nnpx openapi-typescript openapi.yaml -o src\/api.d.ts<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Put the command in <code>package.json<\/code> so nobody has to remember the flags:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{\n  \"scripts\": {\n    \"api:types\": \"openapi-typescript openapi.yaml -o src\/api.d.ts\"\n  }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The output for the <code>Project<\/code> schema looks like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Project: {\n    id: number;\n    name: string;\n    status: components[\"schemas\"][\"ProjectStatus\"];\n    budget?: number | null;\n    created_at: string;\n};<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><code>status<\/code> is the union <code>\"active\" | \"paused\" | \"archived\"<\/code>, <code>budget<\/code> is optional and nullable, and <code>created_at<\/code> is a plain string, because JSON has no date type. Parse it yourself where you need a <code>Date<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I commit the generated file. It makes the type changes visible in code review next to the spec change that caused them, and the app builds without running the generator first.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"client\">A typed client with openapi-fetch<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Types alone don&#8217;t stop you from typing <code>\/project<\/code> instead of <code>\/projects<\/code> in a <code>fetch<\/code> call. <a href=\"https:\/\/openapi-ts.dev\/openapi-fetch\/\" target=\"_blank\" rel=\"noopener\">openapi-fetch<\/a> is a thin wrapper around <code>fetch<\/code> that takes the generated <code>paths<\/code> type, so the URL, the path and query parameters, the request body and the response are all checked against the spec.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import createClient, { type Middleware } from \"openapi-fetch\";\nimport type { paths, components } from \"..\/src\/api\";\n\nexport type Project = components[\"schemas\"][\"Project\"];\nexport type NewProject = components[\"schemas\"][\"NewProject\"];\n\nconst auth: Middleware = {\n  async onRequest({ request }) {\n    const token = process.env.API_TOKEN;\n    if (token) request.headers.set(\"Authorization\", `Bearer ${token}`);\n    return request;\n  },\n};\n\nexport function makeApi(baseUrl = process.env.API_URL ?? \"http:\/\/localhost:4010\") {\n  const client = createClient&lt;paths&gt;({ baseUrl });\n  client.use(auth);\n  return client;\n}\n\nexport const api = makeApi();\n\nexport async function getProject(id: number): Promise&lt;Project | null&gt; {\n  const { data, error, response } = await api.GET(\"\/projects\/{id}\", {\n    params: { path: { id } },\n  });\n  if (response.status === 404) return null;\n  if (error) throw new Error(`getProject failed: ${response.status}`);\n  return data;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The middleware adds the bearer token on every request, and the base URL comes from the environment. Keep this module server-side if the token is a secret. The <a href=\"https:\/\/www.shaz3e.com\/blog\/api-integration-guide\/\">API integration guide<\/a> covers where keys should and shouldn&#8217;t live.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s what the compiler now refuses. Every line marked <code>@ts-expect-error<\/code> is a real type error, and <code>tsc<\/code> would fail if any of them stopped being one:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { api } from \".\/api\";\n\nexport async function typeChecks() {\n  \/\/ @ts-expect-error \"done\" is not a ProjectStatus\n  await api.GET(\"\/projects\", { params: { query: { status: \"done\" } } });\n\n  \/\/ @ts-expect-error path param id is required\n  await api.GET(\"\/projects\/{id}\", {});\n\n  \/\/ @ts-expect-error name is required in NewProject\n  await api.POST(\"\/projects\", { body: { budget: 500 } });\n\n  \/\/ @ts-expect-error this path is not in the spec\n  await api.GET(\"\/project\", {});\n\n  const { data } = await api.GET(\"\/projects\/{id}\", { params: { path: { id: 1 } } });\n  if (data) {\n    \/\/ @ts-expect-error budget can be null, so it must be checked first\n    data.budget.toFixed(2);\n  }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The last one is the case I care about most. Because the spec says <code>budget<\/code> can be null, the compiler makes you handle it. A hand-written type would likely have said <code>budget: number<\/code>, and the first project without a budget would crash the page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"next\">Using it in a Next.js server component<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In the App Router, the client works directly in a server component. The <code>data<\/code> and <code>error<\/code> fields are a discriminated pair: after checking <code>error<\/code>, TypeScript knows <code>data<\/code> is a <code>Project[]<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { api } from \"..\/..\/lib\/api\";\n\n\/\/ Re-fetch at most once a minute instead of freezing the build-time result.\nexport const revalidate = 60;\n\nexport default async function ProjectsPage() {\n  const { data, error } = await api.GET(\"\/projects\", {\n    params: { query: { status: \"active\" } },\n  });\n  if (error) return &lt;p&gt;Could not load projects.&lt;\/p&gt;;\n\n  return (\n    &lt;ul&gt;\n      {data.map((p) =&gt; (\n        &lt;li key={p.id}&gt;\n          {p.name} ({p.status}){p.budget != null &amp;&amp; ` \u00b7 budget ${p.budget}`}\n        &lt;\/li&gt;\n      ))}\n    &lt;\/ul&gt;\n  );\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">One thing that caught me while testing: without <code>revalidate<\/code>, Next.js 16 prerendered this page as static content at build time, so it would have shown the build-day project list forever. The fetch goes through openapi-fetch, but it&#8217;s still a normal <code>fetch<\/code> to Next.js, and the usual caching rules apply. Pick <code>revalidate<\/code>, or make the route dynamic if the data is per user.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"errors\">Error responses are part of the contract<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Because the 422 response is in the spec, its body is typed too. That lets you turn a validation failure into data the form can show, instead of a generic exception:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { api, type NewProject, type Project } from \".\/api\";\n\ntype Result =\n  | { ok: true; project: Project }\n  | { ok: false; errors: Record&lt;string, string[]&gt; };\n\nexport async function createProject(input: NewProject): Promise&lt;Result&gt; {\n  const { data, error, response } = await api.POST(\"\/projects\", { body: input });\n  if (data) return { ok: true, project: data };\n  if (response.status === 422 &amp;&amp; error) return { ok: false, errors: error.errors };\n  throw new Error(`createProject failed: ${response.status}`);\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">openapi-fetch doesn&#8217;t throw on 4xx or 5xx. It returns <code>error<\/code> with the body typed from whatever the spec says for that status. I prefer that: the caller decides which failures are expected (a 404, a 422) and which ones should throw.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If your backend is Laravel, the 422 shape above matches its default validation response, a <code>message<\/code> plus an <code>errors<\/code> object keyed by field. Versioning matters once other clients depend on this contract; I covered that in <a href=\"https:\/\/www.shaz3e.com\/blog\/laravel-api-versioning\/\">Designing a Versioned REST API in Laravel<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"drift\">Catching drift in CI<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The whole point is that a contract change shows up as a compile error. To check that it really does, I renamed <code>budget<\/code> to <code>budget_cents<\/code> in the spec, regenerated, and ran <code>tsc<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>app\/projects\/page.tsx(16,35): error TS2339: Property 'budget' does not exist on type\n'{ id: number; name: string; status: \"active\" | \"paused\" | \"archived\";\n   budget_cents?: number | null | undefined; created_at: string; }'.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s the error you want to see in a pull request, not in production. Two CI steps make it reliable:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li><strong>Regenerate and diff.<\/strong> Run <code>npm run api:types<\/code>, then <code>git diff --exit-code src\/api.d.ts<\/code>. If someone edited the spec but didn&#8217;t regenerate, the job fails.<\/li>\n\n\n<li><strong>Type-check the app.<\/strong> Run <code>tsc --noEmit<\/code> (or let <code>next build<\/code> do it). If the spec changed in a way the frontend doesn&#8217;t handle yet, this fails.<\/li>\n\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If the backend generates the spec from its own code rather than the other way round, the same steps still work. Export the spec in the backend&#8217;s CI, commit it, and let the frontend job regenerate and type-check against it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"tests\">The tests<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The runtime tests compile the client with <code>tsc<\/code> and run it against a small Node HTTP server that behaves like the spec, using Node&#8217;s built-in test runner:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Test<\/th><th>Result<\/th><\/tr><\/thead><tbody><tr><td>Query params are serialized from the typed object<\/td><td>Pass, request was <code>\/projects?status=paused<\/code><\/td><\/tr><tr><td>Path params are filled in<\/td><td>Pass, request was <code>\/projects\/1<\/code><\/td><\/tr><tr><td>A 404 comes back as <code>null<\/code>, not an exception<\/td><td>Pass<\/td><\/tr><tr><td>The auth middleware adds the bearer token<\/td><td>Pass<\/td><\/tr><tr><td>A 201 returns the created project<\/td><td>Pass, body sent as JSON<\/td><\/tr><tr><td>A 422 comes back as field errors<\/td><td>Pass<\/td><\/tr><tr><td>Five deliberate type errors<\/td><td>All caught by <code>tsc<\/code><\/td><\/tr><tr><td>Renaming a field in the spec<\/td><td><code>tsc<\/code> fails on the page that uses it<\/td><\/tr><tr><td><code>next build<\/code> and <code>next start<\/code><\/td><td>Page renders the list, revalidates every 60 seconds<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The 422 test, since it&#8217;s the one that proves error bodies are part of the contract:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>test(\"422 validation errors come back as data\", async () =&gt; {\n  const r = await create.createProject({ name: \"\" });\n  assert.deepEqual(r, { ok: false, errors: { name: [\"The name field is required.\"] } });\n});<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"faq\">FAQ<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"faq-what\">What is OpenAPI TypeScript client generation?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It&#8217;s generating TypeScript types, and optionally a client, from an OpenAPI spec, so the frontend&#8217;s API calls are checked against the same contract the backend implements.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"faq-which\">Should I use openapi-typescript or OpenAPI Generator?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">openapi-typescript generates types only and pairs with a tiny fetch wrapper, which suits React and Next.js apps well. OpenAPI Generator produces full client classes in many languages, which helps when you ship SDKs for several platforms. For a single TypeScript frontend I&#8217;d start with the lighter option.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"faq-commit\">Should I commit the generated types?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">I do. It keeps type changes visible in review and lets the app build without the generator. Pair it with a CI step that regenerates and fails on any diff.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><em>I&#8217;m <a href=\"https:\/\/shaz3e.com\" target=\"_blank\" rel=\"noopener\">Shahrukh Akhtar (Shaz3e)<\/a>, CTO &amp; Co-Founder of Diligent Creators Pvt. Ltd., a Technology Executive &amp; Product Builder. I run client delivery and build SaaS products, including EloSync. You can find me on <a href=\"https:\/\/x.com\/shaz3e\" target=\"_blank\" rel=\"noopener\">X<\/a>, <a href=\"https:\/\/www.linkedin.com\/in\/shaz3e\" target=\"_blank\" rel=\"noopener\">LinkedIn<\/a>, <a href=\"https:\/\/peerlist.io\/shaz3e\" target=\"_blank\" rel=\"noopener\">Peerlist<\/a> and <a href=\"https:\/\/github.com\/Shaz3e\" target=\"_blank\" rel=\"noopener\">GitHub<\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Write the API contract once as an OpenAPI spec, generate TypeScript types from it, and call it through a typed client in Next.js, so a renamed field breaks the build instead of the page.<\/p>\n","protected":false},"author":2,"featured_media":300,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[8],"tags":[108,57,107,106],"class_list":["post-299","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-react-next-js","tag-api","tag-nextjs","tag-openapi","tag-typescript"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/phsTKQ-4P","jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.shaz3e.com\/blog\/wp-content\/uploads\/2026\/10\/openapi-typescript-client-1200x630-1.jpg?fit=1200%2C630&ssl=1","_links":{"self":[{"href":"https:\/\/www.shaz3e.com\/blog\/wp-json\/wp\/v2\/posts\/299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shaz3e.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shaz3e.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shaz3e.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shaz3e.com\/blog\/wp-json\/wp\/v2\/comments?post=299"}],"version-history":[{"count":1,"href":"https:\/\/www.shaz3e.com\/blog\/wp-json\/wp\/v2\/posts\/299\/revisions"}],"predecessor-version":[{"id":301,"href":"https:\/\/www.shaz3e.com\/blog\/wp-json\/wp\/v2\/posts\/299\/revisions\/301"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.shaz3e.com\/blog\/wp-json\/wp\/v2\/media\/300"}],"wp:attachment":[{"href":"https:\/\/www.shaz3e.com\/blog\/wp-json\/wp\/v2\/media?parent=299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shaz3e.com\/blog\/wp-json\/wp\/v2\/categories?post=299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shaz3e.com\/blog\/wp-json\/wp\/v2\/tags?post=299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}