Skip to content

Commit bd0ea6c

Browse files
committed
♻️ update v2 routes
1 parent d6bfc5e commit bd0ea6c

27 files changed

+69
-56
lines changed

.github/workflows/_test-integrations.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
MINDEE_API_KEY: ${{ secrets.MINDEE_API_KEY_SE_TESTS }}
4848
WORKFLOW_ID: ${{ secrets.WORKFLOW_ID_SE_TESTS }}
4949
MINDEE_V2_API_KEY: ${{ secrets.MINDEE_V2_SE_TESTS_API_KEY }}
50-
MINDEE_V2_FINDOC_MODEL_ID: ${{ secrets.MINDEE_V2_SE_TESTS_FINDOC_MODEL_ID }}
50+
MINDEE_V2_SE_TESTS_FINDOC_MODEL_ID: ${{ secrets.MINDEE_V2_SE_TESTS_FINDOC_MODEL_ID }}
5151
MINDEE_V2_SE_TESTS_BLANK_PDF_URL: ${{ secrets.MINDEE_V2_SE_TESTS_BLANK_PDF_URL }}
5252
MINDEE_V2_SE_TESTS_CLASSIFICATION_MODEL_ID: ${{ secrets.MINDEE_V2_SE_TESTS_CLASSIFICATION_MODEL_ID }}
5353
MINDEE_V2_SE_TESTS_CROP_MODEL_ID: ${{ secrets.MINDEE_V2_SE_TESTS_CROP_MODEL_ID }}

docs/extras/code_samples/v2_default.txt renamed to docs/extras/code_samples/v2_extraction.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
from mindee import ClientV2, InferenceParameters, InferenceResponse, PathInput
1+
from mindee import (
2+
ClientV2,
3+
InferenceParameters,
4+
InferenceResponse,
5+
PathInput,
6+
)
27

38
input_path = "/path/to/the/file.ext"
49
api_key = "MY_API_KEY"

mindee/parsing/v2/inference_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class InferenceResponse(BaseResponse):
1010

1111
inference: Inference
1212
"""Inference result."""
13-
_slug: str = "inferences"
13+
_slug: str = "products/extraction/results"
1414
"""Slug of the inference."""
1515

1616
def __init__(self, raw_response: StringDict) -> None:

mindee/v2/product/classification/classification_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ class ClassificationParameters(BaseParameters):
66
Parameters accepted by the classification utility v2 endpoint.
77
"""
88

9-
_slug: str = "utilities/classification"
9+
_slug: str = "products/classification"

mindee/v2/product/classification/classification_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ClassificationResponse(BaseResponse):
1111
inference: ClassificationInference
1212
"""Inference object for classification inference."""
1313

14-
_slug: str = "utilities/classification"
14+
_slug: str = "products/classification/results"
1515
"""Slug of the inference."""
1616

1717
def __init__(self, raw_response: StringDict) -> None:

mindee/v2/product/crop/crop_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ class CropParameters(BaseParameters):
66
Parameters accepted by the crop utility v2 endpoint.
77
"""
88

9-
_slug: str = "utilities/crop"
9+
_slug: str = "products/crop"

mindee/v2/product/crop/crop_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class CropResponse(BaseResponse):
99
inference: CropInference
1010
"""Inference object for crop inference."""
1111

12-
_slug: str = "utilities/crop"
12+
_slug: str = "products/crop/results"
1313
"""Slug of the inference."""
1414

1515
def __init__(self, raw_response: StringDict) -> None:

mindee/v2/product/ocr/ocr_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ class OCRParameters(BaseParameters):
66
Parameters accepted by the ocr utility v2 endpoint.
77
"""
88

9-
_slug: str = "utilities/ocr"
9+
_slug: str = "products/ocr"

mindee/v2/product/ocr/ocr_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class OCRResponse(BaseResponse):
99
inference: OCRInference
1010
"""Inference object for ocr inference."""
1111

12-
_slug: str = "utilities/ocr"
12+
_slug: str = "products/ocr/results"
1313
"""Slug of the inference."""
1414

1515
def __init__(self, raw_response: StringDict) -> None:

mindee/v2/product/split/split_parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ class SplitParameters(BaseParameters):
66
Parameters accepted by the split utility v2 endpoint.
77
"""
88

9-
_slug: str = "utilities/split"
9+
_slug: str = "products/split"

0 commit comments

Comments
 (0)