This documentation is for Machine Learner 1.0.0. View documentation for the latest release.
||
Skip to end of metadata
Go to start of metadata

Overview

DescriptionRetrieve all datasets
Resource Path

api/datasets

HTTP MethodGET
Request/Response Formatapplication/json

Sample cURL command

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

Example

GET https://localhost:9443/api/datasets

Sample output

 [
    {
        "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.

  • No labels