Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

DescriptionRetrieve all datasets
Resource Path

api/datasets

HTTP MethodGET
Request/Response Formatapplication/json

Sample cURL command

Code Block
languagetext
curl -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/datasets -k

Example

Code Block
languagetext
GET https://localhost:9443/api/datasets

Sample output

Code Block
languagetext
 [
    {
        "name": "diabetes",
        "id": 1,
        "tenantId": -1234,
        "userName": "admin",
        "version": null,
        "dataType": "csv",
        "comments": "diabetes",
        "sourcePath": null,
        "dataSourceType": "file",
        "dataTargetType": "file"
    },
    {
        "name": "seeds",
        "id": 2,
        "tenantId": -1234,
        "comments": "Seeds Dataset",
        "dataType": "CSV",
        "userName": "admin",
        "version": "1.0.0",
        "sourcePath": null,
        "dataSourceType": "file",
        "dataTargetType": "file",
        "containsHeader": true
    }
]

REST API response

HTTP status code

200

For descriptions of the HTTP status codes, see HTTP Status Codes.