The following are the REST APIs that are implemented in WSO2 Machine Learner.
Entity | Operation | REST API |
---|---|---|
Dataset | Upload a dataset | POST /api/datasets |
Retrieve all datasets | GET /api/datasets | |
Retrieve all datasets and their versions for a given user | GET /api/datasets/versions | |
Retrieve the dataset of a given dataset ID | GET /api/datasets/{datasetId} | |
Retrieve all version sets of a dataset | GET /api/datasets/{dataset_id}/versions | |
Retrieve version set ID of a given dataset version | GET /api/datasets/{dataset_id}/versions/{version} | |
Retrieve a version set | GET /api/datasets/versions/{versionset_id} | |
Delete a dataset |
| |
Retrieve scatter plot points of a dataset version | POST /api/datasets/{ | |
Retrieve Cluster points of a dataset for a feature list | GET /api/datasets/ | |
Retrieve summarized statistics of a feature in a dataset | GET | |
Project | Create a project (with a dataset name) | POST /api/projects |
Retrieve a project | GET /api/projects/{name} | |
Delete a project | DELETE /api/projects/{name} | |
Retrieve all projects | GET /api/projects | |
Retrieve all models in a project | GET /api/projects/{project_id}/models | |
Retrieve all analyses in a project | GET /api/projects/{project_id}/analyses | |
Analysis (Workflow) | Create a new analysis | POST /api/analyses |
GET /api/analyses/{name} | ||
Delete an analysis | DELETE /api/analyses/{id} | |
Retrieve all analyses | GET /api/analyses | |
Set analysis configurations (e.g. algorithm type) | POST /api/analyses/{id}/configurations | |
Set customized features for an analysis | POST /api/analyses/{id}/features | |
Load default features as customized features | POST /api/analyses/{id}/features/defaults | |
Set hyper parameters for the selected algorithm of an analysis | POST /api/analyses/{id}/hyperParams | |
Load default hyper parameters for the selected algorithm of an analysis | POST /api/analyses/{id}/hyperParams/defaults | |
Model | Create a model | POST /api/models |
Retrieve a model | GET /api/models/{name} | |
Retrieve all models | GET /api/models | |
Add model storage information | POST /api/models/{id}/storages | |
Build a model | POST /api/models/{id} | |
Predict with a model | POST /api/models/{id}/predict | |
Publish a model | POST /api/models/{id}/publish | |
Delete a model | DELETE /api/models/{id} | |
Export a model | GET /api/models/{name}/export |
The REST APIs are secured with basic authentication. Therefore, follow the steps below to add a basic auth header when calling these methods.
- Build a string of the form username:password.
- Encode the sting you created above using Base64. For encoding the above string using Base64, see Encode to Base64 format.
- Define an authorization header with the term "Basic_", followed by the encoded string. For example, the basic auth authorization header using "admin" as both username and password is as follows:
Authorization: Basic YWRtaW46YWRtaW4=
Overview
Content Tools
Activity