From 2a21ccf0aa446640d2903f32502ed9b103237d7c Mon Sep 17 00:00:00 2001 From: jgunstone Date: Thu, 29 Feb 2024 16:35:27 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20add=20limit=20and=20offset=20kwa?= =?UTF-8?q?rgs=20to=20`get=5Fclasses`.=20TODO-=20I=20think=20this=20needs?= =?UTF-8?q?=20doing=20throughout...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bsdd/bsdd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bsdd/bsdd.py b/src/bsdd/bsdd.py index 3ba93937e7..8c5fe9298a 100644 --- a/src/bsdd/bsdd.py +++ b/src/bsdd/bsdd.py @@ -576,7 +576,7 @@ class Client: def get_classes(self, dictionary_uri: str, use_nested_classes: bool = True, class_type: ClassTypes = "Class", - language_code: str = "", version: int = 1) -> DictionaryClassesResponseContractV1: + language_code: str = "", version: int = 1, offset=0, limit=1000) -> DictionaryClassesResponseContractV1: """ Get Dictionary with tree of classes This API replaces Domain @@ -587,6 +587,8 @@ class Client: "UseNestedClasses": use_nested_classes, "ClassType": class_type, "languageCode": language_code, + "offset" : offset, + "limit" : limit } return self.get(endpoint, params)