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

DescriptionRetrieving chart sample points of the latest dataset version.
Resource Path

/api/datasets/{datasetId}/charts?features={featuresList}

HTTP MethodGET
Request/Response Formatapplication/json

Parameter description

Parameter
Description
{datasetId}ID of the data set of which you need to retrieve the chart sample points of the latest version.
{featuresList}Comma separated features list

Sample cURL command

curl -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/datasets/1/charts?features=Class,SI2,Age -k

Example

GET https://localhost:9443/api/datasets/{datasetId}/charts?features={featuresList}

Sample output

[
{"SI2":"0","Age":"54","Class":"0"},
{"SI2":"41","Age":"25","Class":"0"},
{"SI2":"76","Age":"25","Class":"0"},
{"SI2":"105","Age":"27","Class":"0"},
{"SI2":"0","Age":"22","Class":"0"},
{"SI2":"49","Age":"26","Class":"0"},
{"SI2":"0","Age":"36","Class":"1"},
{"SI2":"46","Age":"28","Class":"0"},
{"SI2":"0","Age":"22","Class":"0"},
{"SI2":"0","Age":"41","Class":"1"},
{"SI2":"0","Age":"28","Class":"1"}
]

REST API response

HTTP status code

200, 404 or 500.

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

  • No labels