amoghrajesh commented on code in PR #48440:
URL: https://github.com/apache/airflow/pull/48440#discussion_r2017122380
##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/xcoms.py:
##########
@@ -131,12 +131,22 @@ def get_xcom(
run_id: str,
task_id: str,
key: str,
- xcom_query: Annotated[Select, Depends(xcom_query)],
+ session: SessionDep,
map_index: Annotated[int, Query()] = -1,
+ include_prior_dates: Annotated[bool, Query()] = False,
Review Comment:
Yep just made changes and tested it
## API versioning
- Added API versioning too, it is not essentially needed but good to have to
get used to it. Followed
https://fastapi.tiangolo.com/tutorial/query-param-models/#query-parameters-with-a-pydantic-model

Get XCom in 26/03 version (newest)

Get Xcom in 19/03 version

--
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]