diff --git a/mindee/endpoints.py b/mindee/endpoints.py index e782d6b0..758d7498 100644 --- a/mindee/endpoints.py +++ b/mindee/endpoints.py @@ -191,6 +191,15 @@ def document_queue_req_get(self, queue_id: str) -> requests.Response: ) return response + def openapi_get_req(self): + """Get the OpenAPI specification of the product.""" + response = requests.get( + f"{self._url_root}/openapi.json", + headers=self.base_headers, + timeout=self._request_timeout, + ) + return response + class CustomEndpoint(Endpoint): """Endpoint for all custom documents."""