From 20f578a99ecde4ff11cc3b75d367b3975d35e605 Mon Sep 17 00:00:00 2001 From: Wolfgang Schnerring Date: Wed, 4 Dec 2024 14:31:37 +0100 Subject: [PATCH] WCM-536: Declare teaser/content entitlements property --- docs/api/api.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/api/api.yaml b/docs/api/api.yaml index 94f0f9d..4851665 100644 --- a/docs/api/api.yaml +++ b/docs/api/api.yaml @@ -747,6 +747,19 @@ components: items: $ref: "#/components/schemas/UUIDList" + ContentEntitlements: + type: array + items: + type: string + enum: + - podcast + - registration + - wochenmarkt + - zplus + description: | + List of entitlements that a content object accepts to grant access. + Access to content is granted, if the user has at least one of these. + Structure: type: object properties: @@ -1095,7 +1108,9 @@ components: type: string nullable: true enum: [abo, registration, dynamic, null] - description: "content access restriction" + description: "DEPRECATED use `entitlements` instead" + entitlements: + $ref: "#/components/schemas/ContentEntitlements" color: type: string nullable: true @@ -1277,6 +1292,8 @@ components: nullable: true description: "Human readable relative or absolute date" example: "Vor 3 Stunden" + entitlements: + $ref: "#/components/schemas/ContentEntitlements" byline: type: string nullable: true