Skip to content

Commit

Permalink
fix (apache#44215)
Browse files Browse the repository at this point in the history
  • Loading branch information
rawwar authored Nov 20, 2024
1 parent 3b8f834 commit 9c6b748
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion airflow/api_fastapi/core_api/openapi/v1-generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1789,7 +1789,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/public/config/:
/public/config:
get:
tags:
- Config
Expand Down
16 changes: 9 additions & 7 deletions airflow/api_fastapi/core_api/routes/public/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,18 @@ def _response_based_on_accept(accept: Mimetype, config: Config):


@config_router.get(
"/",
"",
responses={
**create_openapi_http_exception_doc(
[
status.HTTP_401_UNAUTHORIZED,
status.HTTP_403_FORBIDDEN,
status.HTTP_404_NOT_FOUND,
status.HTTP_406_NOT_ACCEPTABLE,
]
),
"200": {"description": "Successful Response", "content": text_example_response_for_get_config},
status.HTTP_200_OK: {
"description": "Successful Response",
"content": text_example_response_for_get_config,
},
},
response_model=Config,
)
Expand Down Expand Up @@ -142,13 +143,14 @@ def get_config(
responses={
**create_openapi_http_exception_doc(
[
status.HTTP_401_UNAUTHORIZED,
status.HTTP_403_FORBIDDEN,
status.HTTP_404_NOT_FOUND,
status.HTTP_406_NOT_ACCEPTABLE,
]
),
"200": {"description": "Successful Response", "content": text_example_response_for_get_config_value},
status.HTTP_200_OK: {
"description": "Successful Response",
"content": text_example_response_for_get_config_value,
},
},
response_model=Config,
)
Expand Down
2 changes: 1 addition & 1 deletion airflow/ui/openapi-gen/requests/services.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ export class ConfigService {
): CancelablePromise<GetConfigResponse> {
return __request(OpenAPI, {
method: "GET",
url: "/public/config/",
url: "/public/config",
headers: {
accept: data.accept,
},
Expand Down
2 changes: 1 addition & 1 deletion airflow/ui/openapi-gen/requests/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2514,7 +2514,7 @@ export type $OpenApiTs = {
};
};
};
"/public/config/": {
"/public/config": {
get: {
req: GetConfigData;
res: {
Expand Down

0 comments on commit 9c6b748

Please sign in to comment.