Bugs and new features should be submitted using Github issues. Please include with a detailed description and the expected behaviour. If you would like to submit a change yourself do the following steps.
- Fork it.
- Create a branch (git checkout -b fix-for-that-thing)
- Commit a failing test (git commit -am "adds a failing test to demonstrate that thing")
- Commit a fix that makes the test pass (git commit -am "fixes that thing")
- Push to the branch (git push origin fix-for-that-thing)
- Open a [Pull Request](github repo)
Please keep your branch up to date by rebasing upstream changes from master.
First, to make sure that the required dependencies have been successfully installed. The dependencies can be installed by the following command:
pip install [package]
- Check the plugins_floder configuration in ~/airflow/airflow.cfg. If not, please configure.
- Copy
rest_api_plugin.py
andtemplates folder
to plugins_floder directory.
cp -r airflow-rest-api-plugin/plugins/ {PLUGINS_FOLDER}
- Start services of the airflow webserver and the airflow scheduler.
airflow webserver -p 8080
airflow scheduler
- Enter the airflow home page through the following url:
http://localhost:8080/admin/
- Enter the airflow rest api plugins page through the following url:
http://localhost:8080/admin/rest_api/
You can also enter the page through Admin - REST API Plugins
on the upper navigation bar
- tips:
- If you add a new interface, you need to add the interface information in the
apis_metadata
list of therest_api_plugin.py
file, otherwise the new interface you added cannot be displayed on the ui. - Every time you modify the
rest_api_plugin.py
file, you need to restart the airflow webserver service. You can kill the service throughCrtl + C
, and then start it through theairflow webserver -p 8080
command.
- If you add a new interface, you need to add the interface information in the