jason810496 commented on code in PR #45931:
URL: https://github.com/apache/airflow/pull/45931#discussion_r2252043506
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/config.py:
##########
@@ -155,3 +155,36 @@ def get_config_value(
config = Config(sections=[ConfigSection(name=section,
options=[ConfigOption(key=option, value=value)])])
return _response_based_on_accept(accept, config)
+
+
+@config_router.get(
+ "/backends_order",
+ responses={
+ **create_openapi_http_exception_doc(
+ [
+ status.HTTP_404_NOT_FOUND,
+ status.HTTP_406_NOT_ACCEPTABLE,
+ ]
+ ),
+ status.HTTP_200_OK: {
+ "description": "Successful Response",
+ "content": text_example_response_for_get_config_value,
+ },
+ },
+ response_model=Config,
+ dependencies=[Depends(requires_access_configuration("GET"))],
+)
+def get_backends_order_value(
Review Comment:
No problem! That sounds reasonable. If that's the case, I think we can move
on to the UI-specific routes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]