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=" -vhttps://localhost:9443/api/projects/1/models -k

Example

Code Block
languagetext
GET /api/projects/{project_id}/models

Sample output

Code Block
languagetext
[
	{
    	"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"
	 }
]

REST API response

HTTP status code

200

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