kontent-ai / delivery-sdk-php

Kontent.ai Delivery SDK for PHP
https://kontent.ai
MIT License
46 stars 15 forks source link

Add collection property to item system attributes #91

Closed ivanaliptakova closed 3 years ago

ivanaliptakova commented 3 years ago

Motivation

The deliver will soon support sending collection information within the item.system property. Feature release ETA: 25.11

Proposed solution

See .Net SDK solution here.

Additional context

Example of system property with collection:

"system": {
      "id": "f25f38d3-a453-41fe-bc2e-804258b5dbda",
      "name": "My first item",
      "codename": "my_first_item",
      "language": "default",
      "collection": "default",
      "type": "article",
      "sitemap_locations": [],
      "last_modified": "2020-11-16T18:43:11.9212466Z"
    }

Type of collection system property: string Collection property is required with a default value default.

Components and linked items in modular_content property also have collection in system property.