component

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

GET /api/component-config

Request

{}

Response

{
  "items": [
    {
      "id": "uuid",
      "type": "component-type",
      "cssClasses": [
        "class-1",
        "class-2",
        "etc"
      ],
      "cssStyles": [
        "background-color: #CCCCCC;",
        "font-size: 1em;",
        "etc"
      ],
      "contents": []
    },
    {
      "id": "uuid",
      "type": "component-type",
      "cssClasses": [
        "class-1",
        "class-2",
        "etc"
      ],
      "cssStyles": [
        "background-color: #CCCCCC;",
        "font-size: 1em;",
        "etc"
      ],
      "contents": []
    }
  ],
  "total": 2
}

GET /api/component-config/[id]

Request

{}

Response

{
  "id": "uuid",
  "type": "component-type",
  "cssClasses": ["class-1", "class-2", "etc"],
  "cssStyles": ["background-color: #CCCCCC;", "font-size: 1em;", "etc"],
  "contents": []
}

POST /api/component-config

Request

{
  "type": "component-type",
  "cssClasses": ["class-1", "class-2", "etc"],
  "cssStyles": ["background-color: #CCCCCC;", "font-size: 1em;", "etc"],
  "contents": []
}

Response

{
  "id": "uuid",
  "type": "component-type",
  "cssClasses": ["class-1", "class-2", "etc"],
  "cssStyles": ["background-color: #CCCCCC;", "font-size: 1em;", "etc"],
  "contents": []
}

PUT /api/component-config/[id]

Request

{
  "type": "component-type",
  "cssClasses": ["class-1", "class-2", "etc"],
  "cssStyles": ["background-color: #CCCCCC;", "font-size: 1em;", "etc"],
  "contents": []
}

Response

{
  "id": "uuid",
  "type": "component-type",
  "cssClasses": ["class-1", "class-2", "etc"],
  "cssStyles": ["background-color: #CCCCCC;", "font-size: 1em;", "etc"],
  "contents": []
}

DELETE /api/component-config/[id]

Request

{
}

Response

{
}

Tickets: PA-6