Skip to content

Commit

Permalink
update spec with backend update
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-groundlight committed Dec 13, 2024
1 parent b52a04b commit ed3aa61
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions generated/docs/ImageQueriesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ with groundlight_openapi_client.ApiClient(configuration) as api_client:
api_instance = image_queries_api.ImageQueriesApi(api_client)
page = 1 # int | A page number within the paginated result set. (optional)
page_size = 1 # int | Number of items to return per page. (optional)
predictor_id = "predictor_id_example" # str | Optionally filter image queries by detector ID. (optional)
detector_id = "detector_id_example" # str | Optionally filter image queries by detector ID. (optional)

# example passing only required values which don't have defaults set
# and optional values
try:
api_response = api_instance.list_image_queries(page=page, page_size=page_size, predictor_id=predictor_id)
api_response = api_instance.list_image_queries(page=page, page_size=page_size, detector_id=detector_id)
pprint(api_response)
except groundlight_openapi_client.ApiException as e:
print("Exception when calling ImageQueriesApi->list_image_queries: %s\n" % e)
Expand All @@ -221,7 +221,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**page** | **int**| A page number within the paginated result set. | [optional]
**page_size** | **int**| Number of items to return per page. | [optional]
**predictor_id** | **str**| Optionally filter image queries by detector ID. | [optional]
**detector_id** | **str**| Optionally filter image queries by detector ID. | [optional]

### Return type

Expand Down
10 changes: 5 additions & 5 deletions generated/groundlight_openapi_client/api/image_queries_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def __init__(self, api_client=None):
"all": [
"page",
"page_size",
"predictor_id",
"detector_id",
],
"required": [],
"nullable": [],
Expand All @@ -142,17 +142,17 @@ def __init__(self, api_client=None):
"openapi_types": {
"page": (int,),
"page_size": (int,),
"predictor_id": (str,),
"detector_id": (str,),
},
"attribute_map": {
"page": "page",
"page_size": "page_size",
"predictor_id": "predictor_id",
"detector_id": "detector_id",
},
"location_map": {
"page": "query",
"page_size": "query",
"predictor_id": "query",
"detector_id": "query",
},
"collection_format_map": {},
},
Expand Down Expand Up @@ -379,7 +379,7 @@ def list_image_queries(self, **kwargs):
Keyword Args:
page (int): A page number within the paginated result set.. [optional]
page_size (int): Number of items to return per page.. [optional]
predictor_id (str): Optionally filter image queries by detector ID.. [optional]
detector_id (str): Optionally filter image queries by detector ID.. [optional]
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
Expand Down
2 changes: 1 addition & 1 deletion generated/model.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# filename: public-api.yaml
# timestamp: 2024-12-10T01:13:13+00:00
# timestamp: 2024-12-13T20:04:02+00:00

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion spec/public-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ paths:
type: integer
description: Number of items to return per page.
- in: query
name: predictor_id
name: detector_id
schema:
type: string
description: Optionally filter image queries by detector ID.
Expand Down

0 comments on commit ed3aa61

Please sign in to comment.