Route v2 /api/v2/public/:principal_slug/cms/routes

Überblick

Klasse / Datentyp
Route
Response Formats
JSON
API Version
v2
Öffentlich erreichbar
true
HTTP Methode
GET
Zuletzt aktualisiert

/api/v2/public/:principal_slug/cms/routes

Parameter

Query Parameter

Schlüssel
parent_id optional

CMS Route :parent_id

principal_slug Pflicht

Backend::Principal Slug / ID

page optional

Seite Definition der darzustellenden Seite. Standardwert: 1

per optional

Anzahl Datensätze pro Seite Definition der darzustellenden Datensätze pro Seite.

Beispiel Rückgabe

{
  "data" : [
    {
      "id"            : "5a4a2fce56820b0cde052832",
      "generated_url" : "/---footer",
      "nav_title"     : "Footer",
      "page_title"    : "Footer",
      "depth"         : 0,
      "position"      : 0,
      "parent"        : null
    },
    {
      "id"            : "5b210ade56820b079012aba3",
      "generated_url" : "/test",
      "nav_title"     : "testtest",
      "page_title"    : "test",
      "depth"         : 0,
      "position"      : 1,
      "parent"        : null
    },
    {
      "id"            : "5b7be93256820b509eaccd0f",
      "generated_url" : "/cms-demo",
      "nav_title"     : "CMS Demo",
      "page_title"    : "CMS Demo",
      "depth"         : 0,
      "position"      : 2,
      "parent"        : null
    },
    {
      "id"            : "5b7ea0fa56820b1c5672f619",
      "generated_url" : "/one-pager-demo-1",
      "nav_title"     : "One Pager Demo 1",
      "page_title"    : "One Pager Demo 1",
      "depth"         : 0,
      "position"      : 4,
      "parent"        : null
    },
    {
      "id"            : "5b7be95556820b5098accd0f",
      "generated_url" : "/cms-demo/cms-demo-unterseite-1",
      "nav_title"     : "CMS Demo Unterseite 1",
      "page_title"    : "CMS Demo Unterseite 1",
      "depth"         : 1,
      "position"      : 0,
      "parent"        : {
        "id"            : "5b7be93256820b509eaccd0f",
        "generated_url" : "/cms-demo",
        "nav_title"     : "CMS Demo",
        "page_title"    : "CMS Demo"
      }
    },
    {
      "id"            : "5b7be98856820b509eaccf43",
      "generated_url" : "/cms-demo-2/cms-demo-2-unterseite-1",
      "nav_title"     : "CMS Demo 2 Unterseite 1",
      "page_title"    : "CMS Demo 2 Unterseite 1",
      "depth"         : 1,
      "position"      : 1,
      "parent"        : {
        "id"            : "5b7be97756820b508aaccd0f",
        "generated_url" : "/cms-demo-2",
        "nav_title"     : "CMS Demo 2",
        "page_title"    : "CMS Demo 2"
      }
    },
    {
      "id"            : "5b7be96256820b5095accda3",
      "generated_url" : "/cms-demo/cms-demo-unterseite-2",
      "nav_title"     : "CMS Demo Unterseite 2",
      "page_title"    : "CMS Demo Unterseite 2",
      "depth"         : 1,
      "position"      : 2,
      "parent"        : {
        "id"            : "5b7be93256820b509eaccd0f",
        "generated_url" : "/cms-demo",
        "nav_title"     : "CMS Demo",
        "page_title"    : "CMS Demo"
      }
    },
    {
      "id"            : "5b7be99256820b50a4accd13",
      "generated_url" : "/cms-demo-2/cms-demo-2-unterseite-2",
      "nav_title"     : "CMS Demo 2 Unterseite 2",
      "page_title"    : "CMS Demo 2 Unterseite 2",
      "depth"         : 1,
      "position"      : 3,
      "parent"        : {
        "id"            : "5b7be97756820b508aaccd0f",
        "generated_url" : "/cms-demo-2",
        "nav_title"     : "CMS Demo 2",
        "page_title"    : "CMS Demo 2"
      }
    }
  ],
  "meta" : {
    "resource_class" : "Cms::Route",
    "max_updated_at" : "2019-01-28T08:52:42.546Z",
    "page"           : 1,
    "per"            : 24,
    "total_pages"    : 1,
    "total_count"    : 8
  }
}