[{"data":1,"prerenderedAt":377},["ShallowReactive",2],{"navigation_docs":3,"-advanced-topics-debugging":221,"-advanced-topics-debugging-surround":372},[4,27,77,123,157,207],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":26},"Get started","majesticons:rocket-3-start-line","\u002Fget-started","1.get-started",[10,14,18,22],{"title":11,"path":12,"stem":13},"How it works","\u002Fget-started\u002Fhow-it-works","1.get-started\u002F10.how-it-works",{"title":15,"path":16,"stem":17},"Play online","\u002Fget-started\u002Fplay-online","1.get-started\u002F20.play-online",{"title":19,"path":20,"stem":21},"Create a new project","\u002Fget-started\u002Fcreate-new-project","1.get-started\u002F30.create-new-project",{"title":23,"path":24,"stem":25},"First steps","\u002Fget-started\u002Ffirst-steps","1.get-started\u002F40.first-steps",false,{"title":28,"icon":29,"path":30,"stem":31,"children":32,"page":26},"Guide","mdi:book-open-page-variant-outline","\u002Fguide","2.guide",[33,37,41,45,49,53,57,61,65,69,73],{"title":34,"path":35,"stem":36},"Customized API Output","\u002Fguide\u002Fcustomized-api-output","2.guide\u002F05.customized-api-output",{"title":38,"path":39,"stem":40},"Pages & Routing","\u002Fguide\u002Fpages-routing","2.guide\u002F10.pages-routing",{"title":42,"path":43,"stem":44},"Site layout & Menus","\u002Fguide\u002Fsite-layout-menus","2.guide\u002F20.site-layout-menus",{"title":46,"path":47,"stem":48},"Authentication","\u002Fguide\u002Fauthentication","2.guide\u002F40.authentication",{"title":50,"path":51,"stem":52},"Metatags & Local tasks","\u002Fguide\u002Fmetatags-local-tasks","2.guide\u002F50.metatags-local-tasks",{"title":54,"path":55,"stem":56},"Breadcrumbs & Messages","\u002Fguide\u002Fbreadcrumbs-messages","2.guide\u002F60.breadcrumbs-messages",{"title":58,"path":59,"stem":60},"Redirects","\u002Fguide\u002Fredirects","2.guide\u002F65.redirects",{"title":62,"path":63,"stem":64},"Editorial previews","\u002Fguide\u002Feditorial-previews","2.guide\u002F70.editorial-previews",{"title":66,"path":67,"stem":68},"Layout builder","\u002Fguide\u002Flayout-builder","2.guide\u002F80.layout-builder",{"title":70,"path":71,"stem":72},"Drupal Canvas","\u002Fguide\u002Fcanvas","2.guide\u002F90.canvas",{"title":74,"path":75,"stem":76},"Drupal CMS","\u002Fguide\u002Fdrupal-cms","2.guide\u002F95.drupal-cms",{"title":78,"icon":79,"path":80,"stem":81,"children":82,"page":26},"Advanced topics","bi:diagram-3","\u002Fadvanced-topics","3.advanced-topics",[83,87,91,95,99,103,107,111,115,119],{"title":84,"path":85,"stem":86},"Multi-frontend","\u002Fadvanced-topics\u002Fmulti-frontend","3.advanced-topics\u002F05.multi-frontend",{"title":88,"path":89,"stem":90},"Listings, Views","\u002Fadvanced-topics\u002Flistings-views","3.advanced-topics\u002F10.listings-views",{"title":92,"path":93,"stem":94},"Searches","\u002Fadvanced-topics\u002Fsearches","3.advanced-topics\u002F20.searches",{"title":96,"path":97,"stem":98},"JSON-API & GraphQL","\u002Fadvanced-topics\u002Fjsonapi-graphql","3.advanced-topics\u002F30.jsonapi-graphql",{"title":100,"path":101,"stem":102},"Caching","\u002Fadvanced-topics\u002Fcaching","3.advanced-topics\u002F40.caching",{"title":104,"path":105,"stem":106},"Error pages","\u002Fadvanced-topics\u002Ferror-pages","3.advanced-topics\u002F50.error-pages",{"title":108,"path":109,"stem":110},"Drupal forms","\u002Fadvanced-topics\u002Fdrupal-forms","3.advanced-topics\u002F60.drupal-forms",{"title":112,"path":113,"stem":114},"Site Templates","\u002Fadvanced-topics\u002Fsite-templates","3.advanced-topics\u002F65.site-templates",{"title":116,"path":117,"stem":118},"Block layout","\u002Fadvanced-topics\u002Fblock-layout","3.advanced-topics\u002F70.block-layout",{"title":120,"path":121,"stem":122},"Debugging API requests","\u002Fadvanced-topics\u002Fdebugging","3.advanced-topics\u002F80.debugging",{"title":124,"icon":125,"path":126,"stem":127,"children":128,"page":26},"Drupal","simple-icons:drupal","\u002Fdrupal","4.drupal",[129,133,137,141,145,149,153],{"title":130,"path":131,"stem":132},"Key modules","\u002Fdrupal\u002Fkey-modules","4.drupal\u002F10.key-modules",{"title":134,"path":135,"stem":136},"Custom elements","\u002Fdrupal\u002Fcustom-elements","4.drupal\u002F20.custom-elements",{"title":138,"path":139,"stem":140},"Routes","\u002Fdrupal\u002Froutes","4.drupal\u002F30.routes",{"title":142,"path":143,"stem":144},"Providing blocks","\u002Fdrupal\u002Fproviding-blocks","4.drupal\u002F40.providing-blocks",{"title":146,"path":147,"stem":148},"Custom Element Processors","\u002Fdrupal\u002Fcustom-element-processors","4.drupal\u002F50.custom-element-processors",{"title":150,"path":151,"stem":152},"Adding Drupal forms","\u002Fdrupal\u002Fadd-drupal-forms","4.drupal\u002F60.add-drupal-forms",{"title":154,"path":155,"stem":156},"Providing themes","\u002Fdrupal\u002Fthemes","4.drupal\u002F70.themes",{"title":158,"icon":159,"path":160,"stem":161,"children":162,"page":26},"Nuxt","simple-icons:nuxtdotjs","\u002Fnuxt","5.nuxt",[163,167,171,175,179,183,187,191,195,199,203],{"title":164,"path":165,"stem":166},"Introduction","\u002Fnuxt\u002Fintroduction","5.nuxt\u002F10.introduction",{"title":168,"path":169,"stem":170},"Setup","\u002Fnuxt\u002Fsetup","5.nuxt\u002F20.setup",{"title":172,"path":173,"stem":174},"Rendering Custom Elements","\u002Fnuxt\u002Frender-custom-elements","5.nuxt\u002F30.render-custom-elements",{"title":176,"path":177,"stem":178},"Default components","\u002Fnuxt\u002Fdefault-components","5.nuxt\u002F32.default-components",{"title":180,"path":181,"stem":182},"Composables","\u002Fnuxt\u002Fcomposables","5.nuxt\u002F35.composables",{"title":184,"path":185,"stem":186},"Custom Routes","\u002Fnuxt\u002Fcustom-routes","5.nuxt\u002F40.custom-routes",{"title":188,"path":189,"stem":190},"Page Layouts","\u002Fnuxt\u002Fpage-layouts","5.nuxt\u002F50.page-layouts",{"title":192,"path":193,"stem":194},"Component Previews","\u002Fnuxt\u002Fcomponent-previews","5.nuxt\u002F55.component-previews",{"title":196,"path":197,"stem":198},"Rendering modes","\u002Fnuxt\u002Frendering-modes","5.nuxt\u002F60.rendering-modes",{"title":200,"path":201,"stem":202},"Deployment options","\u002Fnuxt\u002Fdeployment","5.nuxt\u002F70.deployment",{"title":204,"path":205,"stem":206},"Resources","\u002Fnuxt\u002Fresources","5.nuxt\u002F90.resources",{"title":208,"icon":209,"path":210,"stem":211,"children":212,"page":26},"Deployment","solar:server-square-cloud-linear","\u002Fdeployment","6.deployment",[213,217],{"title":214,"path":215,"stem":216},"Deployment Strategies","\u002Fdeployment\u002Fdeployment-strategy","6.deployment\u002F10.deployment-strategy",{"title":218,"path":219,"stem":220},"Unified Hosting","\u002Fdeployment\u002Funified-hosting","6.deployment\u002F20.unified-hosting",{"id":222,"title":120,"body":223,"description":365,"extension":366,"links":367,"meta":368,"navigation":369,"path":121,"seo":370,"stem":122,"__hash__":371},"docs\u002F3.advanced-topics\u002F80.debugging.md",{"type":224,"value":225,"toc":357},"minimark",[226,238,241,244,275,280,297,301,313,318,324,329,344,347],[227,228,229,230,237],"p",{},"For debugging API requests and responses, Lupus Decoupled Drupal offers\nintegration with ",[231,232,236],"a",{"href":233,"rel":234},"https:\u002F\u002Fwww.drupal.org\u002Fproject\u002Frest_log",[235],"nofollow","REST Log","\nmodule.",[227,239,240],{},"In decoupled scenarios, visitors are making requests to the front-end application,\nwhich is itself retrieving data from the back-end. It is helpful to see the\nform of requests that reached the decoupled back-end and the responses that\nthe back-end provided.",[227,242,243],{},"Logged data consists of:",[245,246,247,251,254,257,260,263,266,269,272],"ul",{},[248,249,250],"li",{},"Request method",[248,252,253],{},"Request header",[248,255,256],{},"Request URI",[248,258,259],{},"Request cookie",[248,261,262],{},"Request payload",[248,264,265],{},"Response status",[248,267,268],{},"Response header",[248,270,271],{},"Response body",[248,273,274],{},"Response time",[276,277,279],"h2",{"id":278},"usage","Usage",[227,281,282,283,287,288,292,293,296],{},"Make some requests either to API endpint (",[284,285,286],"code",{},"\u002Fadmin\u002Fcontent"," view provides ",[289,290,291],"strong",{},"View\nAPI Endpoint operation"," for nodes that opens their API endpoint directly) or front-end\nrequests and investigate them at ",[284,294,295],{},"\u002Fadmin\u002Freports\u002Frest_log",".",[276,298,300],{"id":299},"set-up","Set up",[245,302,303,308],{},[248,304,305],{},[284,306,307],{},"composer require --dev drupal\u002Frest_log",[248,309,310],{},[284,311,312],{},"drush en lupus_decoupled_api_log",[314,315,317],"h3",{"id":316},"configuration","Configuration",[227,319,320,321,296],{},"REST Log module's default configuration is sufficient but it can be changed at\n",[284,322,323],{},"\u002Fadmin\u002Fconfig\u002Fdevelopment\u002Flogging\u002Frest_log",[325,326,328],"h1",{"id":327},"debugging-with-curl","Debugging with curl",[227,330,331,332,337,338,343],{},"Sometimes it is useful to trigger ",[231,333,336],{"href":334,"rel":335},"https:\u002F\u002Fxdebug.org\u002F",[235],"Xdebug"," from the command\nline. This can be achieved with ",[231,339,342],{"href":340,"rel":341},"https:\u002F\u002Fcurl.se\u002F",[235],"curl",". Authorization can be\nprovided via session cookie with values copied from the authenticated browser\nsession.",[227,345,346],{},"Example of such curl request:",[348,349,354],"pre",{"className":350,"code":352,"language":353},[351],"language-text","curl -k -i -H 'Cookie: SSESS\u003Csession-name>=\u003Csession-cookie-value>;XDEBUG_SESSION=XDEBUG_ECLIPSE;' https:\u002F\u002F\u003Cdomain>\u002F\u003CAPI-endpoint>\n","text",[284,355,352],{"__ignoreMap":356},"",{"title":356,"searchDepth":358,"depth":358,"links":359},2,[360,361],{"id":278,"depth":358,"text":279},{"id":299,"depth":358,"text":300,"children":362},[363],{"id":316,"depth":364,"text":317},3,"For debugging API requests and responses, Lupus Decoupled Drupal offers\nintegration with REST Log\nmodule.","md",null,{},true,{"title":120,"description":365},"vpYLEIWt9f2W-Wug_7XO9PTl5q1V0WFbQUx1hHvCByc",[373,375],{"title":116,"path":117,"stem":118,"description":374,"children":-1},"As documented at Site layout & Menus by default the site header and footer are built by the frontend. That means, the Drupal Blocks Layout configuration is ignored for custom-elements rendered pages.",{"title":130,"path":131,"stem":132,"description":376,"children":-1},"Lupus Decoupled Drupal builds upon the following two key modules:",1776084717930]