{
    "version":"0.2.0",
    "id":"avaliable-data-service",
    "title":"Avaliable Data Service",
    "description":"This process returns avaliable data given optional filters of time ranges and providers",
    "jobControlOptions":[
        "sync-execute",
        "async-execute"
    ],
    "keywords":[
        "safer process"
    ],
    "inputs":{
        "token":{
            "title":"secret token",
            "description":"identify yourself",
            "schema":{
                "type":"string"
            }
        },
        "providers":{
            "title":"Providers",
            "description":"Dictionary of providers to filter the avaliable data. If not provided, all providers will be considered. Key is the provider name, value is a list of variables required for that provider.",
            "schema":{
                "type":"object"
            }
        },
        "time_range":{
            "title":"Time Range",
            "description":"Time range for which you want to retrieve data. It should be a list of two datetime strings in ISO format.",
            "schema":{
                "type":"array",
                "items":{
                    "type":"string",
                    "format":"date-time"
                },
                "minItems":2,
                "maxItems":2
            }
        },
        "group_by":{
            "title":"Group By",
            "description":"Group by columns for the output data. It should be a list of column names.",
            "schema":{
                "type":"array",
                "items":{
                    "type":"string"
                },
                "default":[
                    "provider",
                    "variable"
                ]
            }
        },
        "debug":{
            "title":"Debug",
            "description":"Enable Debug mode. Can be valued as true or false",
            "schema":{}
        }
    },
    "outputs":{
        "status":{
            "title":"status",
            "description":"Staus of the process execution [OK or KO]",
            "schema":{}
        }
    },
    "example":{
        "inputs":{
            "token":"D1rected_T0ken",
            "debug":true,
            "providers":{
                "ARPAE_realtime":[
                    "B13011",
                    "B22070"
                ],
                "ADRIAC":"sea_level__points",
                "SWANEMR":"ALL"
            },
            "time_range":[
                "2025-06-18T08:00:00",
                null
            ]
        }
    },
    "outputTransmission":[
        "value"
    ],
    "links":[
        {
            "type":"application/json",
            "rel":"self",
            "href":"http://pygeoapi-venezia-1562001364.eu-north-1.elb.amazonaws.com/processes/avaliable-data-service?f=json",
            "title":"Process description as JSON",
            "hreflang":"en-US"
        },
        {
            "type":"text/html",
            "rel":"alternate",
            "href":"http://pygeoapi-venezia-1562001364.eu-north-1.elb.amazonaws.com/processes/avaliable-data-service?f=html",
            "title":"Process description as HTML",
            "hreflang":"en-US"
        },
        {
            "type":"text/html",
            "rel":"http://www.opengis.net/def/rel/ogc/1.0/job-list",
            "href":"http://pygeoapi-venezia-1562001364.eu-north-1.elb.amazonaws.com/jobs?f=html",
            "title":"Jobs list as HTML",
            "hreflang":"en-US"
        },
        {
            "type":"application/json",
            "rel":"http://www.opengis.net/def/rel/ogc/1.0/job-list",
            "href":"http://pygeoapi-venezia-1562001364.eu-north-1.elb.amazonaws.com/jobs?f=json",
            "title":"Jobs list as JSON",
            "hreflang":"en-US"
        },
        {
            "type":"application/json",
            "rel":"http://www.opengis.net/def/rel/ogc/1.0/execute",
            "href":"http://pygeoapi-venezia-1562001364.eu-north-1.elb.amazonaws.com/processes/avaliable-data-service/execution?f=json",
            "title":"Execution for this process as JSON",
            "hreflang":"en-US"
        }
    ]
}