Versions Compared

Key

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

Table of Contents
maxLevel3

Overview

DescriptionRetrieve all models in of a project.
Resource Path

 /api/projects/{project_id}/models

HTTP MethodGET
Request/Response Formatapplication/json

Parameter description

Parameter
Description
{project_id}ID of the project of which you need to retrieve models.

Sample cURL command

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

Example

Code Block
languagetext
GET https://localhost:9443/api/projects/{project_id}/models

Sample output

Code Block
languagetext
[
	{
"datasetId":0,
"samplePoints":
{
 	"name": "wso2-ml-project",
    	"id": 1,
		"analysisId": 1,
		"versionSetId": 1,
		"createdTime": "2015-03-20 09:32:02.335",
		"tenantId": -1234,
		"storageType": "file",
		"storageDirectory": "/tmp/wso2-ml-model.2015-03-20_20:16:01",
		"description": "test",
    	"userName": "admin",
    	"status": "Complete"
	 "samplePoints":[["6","2","0","5","3"],["134","175","165","121","78"],["70","88","76","72","50"],["23","0","43","23","32"],["130","0","255","112","88"],["35.4","22.9","47.9","26.2","31.0"],["0.542","0.326","0.259","0.245","0.248"],["29","22","26","30","26"],["1","0","0","0","1"]],
"generated":true,
"missing":[0,0,0,0,0,0,0,0,0],
"stringCellCount":[0,0,0,0,0,0,0,0,0],
"decimalCellCount":[0,0,0,0,0,768,768,0,0],
"header":{"SI2":4,"PG2":1,"Age":7,"DBP":2,"Class":8,"BMI":5,"DPF":6,"TSFT":3,"NumPregnancies":0}
},
"tenantId":-1234,
"targetPath":"ML_HOME/datasets/Diabetes dataset.-1234.1441170667922",
"name":"Diabetes dataset-1.0.0",
"id":2,
"version":"1.0.0",
"userName":"admin",
"status":"Processed"
}
]

REST API response

HTTP status code

200

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