Versions Compared

Key

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

...

Parameter
Description
{name}Name of the project of which you need to retrieve.

Sample cURL command

Code Block
languagepowershell
curl -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/projects/wso2-ml-project -k

Example

Code Block
languagetext
GET /api/projects/{name}

...

Code Block
languagetext
{
    "name": "wso2-ml-project",
    "id": 1,
    "createdTime": "2015-03-20 09:32:02.335",
    "tenantId": -1234,
    "description": "test",
    "userName": "admin",
    "datasetId": 1,
    "datasetName": "diabetes"
}

Sample cURL command

Code Block
languagepowershell
curl -H "Content-Type: application/json" -H "Authorization: Basic YWRtaW46YWRtaW4=" -v https://localhost:9443/api/projects/wso2-ml-project -k

REST API response

HTTP status code

200

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