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 version sets of a dataset
Resource Path

/api/datasets/{dataset_id}/versions

HTTP MethodGET
Request/Response Formatapplication/json

Parameter description

Parameter
Description
{dataset_id}ID of the dataset of which, you need to retrieve all version sets.

Sample cURL command

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

Example

GET https://localhost:9443/api/datasets/{dataset_id}/versions

Sample output

 [
    {
        "name": "diabetes-1.0",
        "id": 1,
        "targetPath": "<ML_HOME>/diabetes.-1234.1426824112106",
        "tenantId": -1234,
        "userName": "admin",
        "version": 1.0.0,
        "datasetId": 0,
        "samplePoints": {
            "header": {
                "NumPregnancies": 0,
                "PG2": 1,
                "DBP": 2,
                "TSFT": 3,
                "SI2": 4,
                "BMI": 5,
                "DPF": 6,
                "Age": 7,
                "Class": 8
            },
            "stringCellCount": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "samplePoints": [
                [
                    "6",
                    "1",
                    "8"
                ]
            ]
        }
    },
{
        "name": "diabetes-1.0",
        "id": 1,
        "targetPath": "<ML_HOME>/diabetes.-1234.1441170667922",
        "tenantId": -1234,
        "userName": "admin",
        "version": 2.0.0,
        "datasetId": 0,
        "samplePoints": {
            "header": {
                "NumPregnancies": 0,
                "PG2": 1,
                "DBP": 2,
                "TSFT": 3,
                "SI2": 4,
                "BMI": 5,
                "DPF": 6,
                "Age": 7,
                "Class": 8
            },
            "stringCellCount": [
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0,
                0
            ],
            "samplePoints": [
                [
                    "6",
                    "1",
                    "8"
                ]
            ]
        }
    }
]

REST API response

HTTP status code

200

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

  • No labels