Skip to content

Commit

Permalink
Merge pull request #153 from ZeitOnline/WCM-536-teaser-entitlements
Browse files Browse the repository at this point in the history
WCM-536: Declare teaser/content entitlements property
  • Loading branch information
wosc authored Dec 5, 2024
2 parents 9df2f9f + 20f578a commit 71ba0aa
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion docs/api/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 71ba0aa

Please sign in to comment.