{
    "version":"0.2.0",
    "id":"barrier-rest-service",
    "title":"Barrier REST Service Process",
    "description":"This is a REST service process implementation to handel barriers data",
    "jobControlOptions":[
        "sync-execute",
        "async-execute"
    ],
    "keywords":[
        "safer process"
    ],
    "inputs":{
        "token":{
            "title":"secret token",
            "description":"identify yourself",
            "schema":{
                "type":"string"
            }
        },
        "mode":{
            "title":"mode",
            "description":"REST Service mode. Can be valued as \"GET\" or \"POST\"",
            "schema":{
                "type":"string",
                "enum":[
                    "get",
                    "post"
                ]
            }
        },
        "rest_data":{
            "title":"rest_data",
            "description":"REST data to be processed. When mode is GET, it must contain the cookie_code. When mode is POST, it must contain the cookie_code and the barrier data.",
            "schema":{
                "type":"object"
            }
        },
        "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":"ABC123XYZ666",
            "debug":true,
            "mode":"GET",
            "rest_data":{
                "cookie_code":"1234567890"
            }
        }
    },
    "outputTransmission":[
        "value"
    ],
    "links":[
        {
            "type":"application/json",
            "rel":"self",
            "href":"http://pygeoapi-venezia-1562001364.eu-north-1.elb.amazonaws.com/processes/barrier-rest-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/barrier-rest-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/barrier-rest-service/execution?f=json",
            "title":"Execution for this process as JSON",
            "hreflang":"en-US"
        }
    ]
}