DE API Documentation

View on GitHub

File/Directory existence

The /exists endpoint allows the caller to check for the existence of a set of files. The following is an example call to the exists endpoint:

URL Path: /secured/filesystem/exists

HTTP Method: POST

Error Codes: ERR_NOT_A_USER

Request Query Parameters:

Request Body:

{
    "paths" : [
        "/iplant/home/wregglej/pom.xml",
        "/iplant/home/wregglej/pom.xml2"
    ]
}

Response Body:

{
    "paths":{
        "/iplant/home/wregglej/pom.xml2":false,
        "/iplant/home/wregglej/pom.xml":false
    }
}

Curl Command:

curl -H "$AUTH_HEADER" -H "Content-type:application/json" -d '{"paths" : ["/iplant/home/wregglej/pom.xml", "/iplant/home/wregglej/pom.xml2"]}' 'http://127.0.0.1:3000/secured/filesystem/exists