From f67656cc449b5ad3f476dd6025900dfbd7a133be Mon Sep 17 00:00:00 2001
From: David Schwarzmann <david.schwarzmann@codecentric.de>
Date: Tue, 21 Sep 2021 09:18:46 +0200
Subject: [PATCH] feat(api#87): Pagination for listing destinations

---
 spec/schemas/destination-list.yaml | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/spec/schemas/destination-list.yaml b/spec/schemas/destination-list.yaml
index f496c4a5..7fd093f8 100644
--- a/spec/schemas/destination-list.yaml
+++ b/spec/schemas/destination-list.yaml
@@ -3,9 +3,26 @@ type: object
 required:
   - destinations
 properties:
+  count:
+    type: integer
+    format: int32
+    description: Anzahl zurückgegebener Zustellpunkte
+    maximum: 500
+    minimum: 0
+  offset:
+    type: integer
+    format: int32
+    description: Startpunkt in der Gesamtanzahl der Zustellpunkte
+    minimum: 0
+  totalCount:
+    type: integer
+    format: int32
+    description: Gesamtanzahl der Zustellpunkte
+    minimum: 0
   destinations:
     type: array
-    minItems: 0
     items:
       $ref: './destination-private.yaml'
     description: Eine Auflistung aller selbst angelegten Zustellpunkte
+    maxItems: 500
+    minItems: 0
-- 
GitLab