Description
Currently, the sub-basin GWLF-E modeling endpoint (https://staging.modelmywatershed.org/api/modeling/subbasin/run/
) does NOT allow the user to input a dictionary json of prepared HUC-12 GMS/Z files as input for the run. I would like to be able to use a generated or previously-stashed subbasin/prepare output as input for subbasin/run.
Right now the subbasin/run view delegates to _parse_gwlfe_input
to handle the request body, but sets the raw input flag to be false
which ignores any input and looks up a job instead.
model-my-watershed/src/mmw/apps/geoprocessing_api/views.py
Lines 1504 to 1557 in f96289d
The flag can't be simply reversed because _parse_gwlfe_input(request, raw_input)
attempts to validate the gms by way of the validate_gwlfe_run
function
model-my-watershed/src/mmw/apps/geoprocessing_api/views.py
Lines 1692 to 1733 in f96289d
And the validate_gwlfe_run
function checks keys for a single gms file
model-my-watershed/src/mmw/apps/geoprocessing_api/validation.py
Lines 99 to 102 in f96289d
If the GMS cannot be validated, the only option is a job UUID. So either the _parse_gwlfe_input
function or the validate_gwlfe_run
would need to be changed to accommodate/validate the dictionary of gms files format.