{"id":25,"date":"2026-01-28T12:22:10","date_gmt":"2026-01-28T12:22:10","guid":{"rendered":"https:\/\/www.myclinia.com\/?page_id=25"},"modified":"2026-01-28T12:27:53","modified_gmt":"2026-01-28T12:27:53","slug":"test-api","status":"publish","type":"page","link":"https:\/\/www.myclinia.com\/es\/test-api\/","title":{"rendered":"Test API"},"content":{"rendered":"<button id=\"t2\">Tester \/chat<\/button>\n<pre id=\"out2\" style=\"white-space:pre-wrap;\"><\/pre>\n<script>\ndocument.getElementById(\"t2\").onclick = async () => {\n  const r = await fetch(\"https:\/\/myclinia.com\/wp-json\/clinia\/v1\/chat\", {\n    method: \"POST\",\n    headers: {\"Content-Type\":\"application\/json\"},\n    body: JSON.stringify({message:\"bonjour\"})\n  });\n  const txt = await r.text();\n  document.getElementById(\"out2\").textContent = \"HTTP \" + r.status + \"\\n\" + txt;\n};\n<\/script>","protected":false},"excerpt":{"rendered":"<p>Tester \/chat<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-25","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.myclinia.com\/es\/wp-json\/wp\/v2\/pages\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myclinia.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.myclinia.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.myclinia.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myclinia.com\/es\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":2,"href":"https:\/\/www.myclinia.com\/es\/wp-json\/wp\/v2\/pages\/25\/revisions"}],"predecessor-version":[{"id":27,"href":"https:\/\/www.myclinia.com\/es\/wp-json\/wp\/v2\/pages\/25\/revisions\/27"}],"wp:attachment":[{"href":"https:\/\/www.myclinia.com\/es\/wp-json\/wp\/v2\/media?parent=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}