Skip to content

Commit d637667

Browse files
authored
✨ add openapi get request (#146)
1 parent 432860b commit d637667

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

mindee/endpoints.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,15 @@ def document_queue_req_get(self, queue_id: str) -> requests.Response:
191191
)
192192
return response
193193

194+
def openapi_get_req(self):
195+
"""Get the OpenAPI specification of the product."""
196+
response = requests.get(
197+
f"{self._url_root}/openapi.json",
198+
headers=self.base_headers,
199+
timeout=self._request_timeout,
200+
)
201+
return response
202+
194203

195204
class CustomEndpoint(Endpoint):
196205
"""Endpoint for all custom documents."""

0 commit comments

Comments
 (0)