This should probably be a separate package plugin. Docs: http://streamflow-prediction-tool.readthedocs.io/en/latest/spt_rest_api/rest_api.html