Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to write your own REST API in apache airflow?

Tags:

rest

airflow

I want to update some of my resource present in database using REST API. Is there a way by which i can create custom REST endpoint in airflow with my own business logic ?

like image 795
Yash Agarwal Avatar asked Dec 03 '25 04:12

Yash Agarwal


1 Answers

You indeed can extend Airflow, with almost endless possibilities :)

Airflow has something called Airflow Plugins which lets you to identify your own custom plugins, that will be loaded into Airflow. I searched on the web for some plugins that expose REST-API's, and there were some for reference:

  • https://github.com/teamclairvoyant/airflow-rest-api-plugin/blob/master/plugins/rest_api_plugin.py
  • https://github.com/eBay/airflow-rest-api-plugin
  • https://github.com/airflow-plugins/airflow_api_plugin

I bet you can find more if you will search for "AirflowPlugin rest API", or something on that sphere :)

like image 53
alexkru Avatar answered Dec 05 '25 19:12

alexkru