Page

WICHTIG: Feld "contents" für diese Iteration ignorieren. Die Definition der API dafür kommt mit der nächsten iteration.

GET /api/page

Request

{}

Response

{
  "items": [
    {
      "id": "uuid",
      "siteId": "uuid",
      "name": "string",
      "titel": "Page title",
      "cssClasses": [
        "class-1",
        "class-2",
        "etc"
      ],
      "cssStyles": [
        "background-color: #CCCCCC;",
        "font-size: 1em;",
        "etc"
      ],
      "contents": []
    },
    {
      "id": "uuid",
      "siteId": "uuid",
      "name": "string",
      "titel": "Page title",
      "cssClasses": [
        "class-1",
        "class-2",
        "etc"
      ],
      "cssStyles": [
        "background-color: #CCCCCC;",
        "font-size: 1em;",
        "etc"
      ],
      "contents": []
    }
  ],
  "total": 2
}

GET /api/page/[id]

Request

{}

Response

{
  "id": "uuid",
  "siteId": "uuid",
  "name": "string",
  "titel": "Page title",
  "cssClasses": ["class-1", "class-2", "etc"],
  "cssStyles": ["background-color: #CCCCCC;", "font-size: 1em;", "etc"],
  "contents": []
}

POST /api/page

Request

{
  "siteId": "uuid",
  "name": "string",
  "titel": "Page title",
  "cssClasses": ["class-1", "class-2", "etc"],
  "cssStyles": ["background-color: #CCCCCC;", "font-size: 1em;", "etc"],
  "contents": []
}

Response

{
  "id": "uuid",
  "siteId": "uuid",
  "name": "string",
  "titel": "Page title",
  "cssClasses": ["class-1", "class-2", "etc"],
  "cssStyles": ["background-color: #CCCCCC;", "font-size: 1em;", "etc"],
  "contents": []
}

PUT /api/page/[id]

Request

{
  "siteId": "uuid",
  "name": "string",
  "titel": "Page title",
  "cssClasses": ["class-1", "class-2", "etc"],
  "cssStyles": ["background-color: #CCCCCC;", "font-size: 1em;", "etc"],
  "contents": []
}

Response

{
  "id": "uuid",
  "siteId": "uuid",
  "name": "string",
  "titel": "Page title",
  "cssClasses": ["class-1", "class-2", "etc"],
  "cssStyles": ["background-color: #CCCCCC;", "font-size: 1em;", "etc"],
  "contents": []
}

DELETE /api/page/[id]

Request

{
}

Response

{
}

Tickets: PA-10