1.0.5 • Published 7 years ago

cloud_sml_api v1.0.5

Weekly downloads
-
License
Unlicense
Repository
-
Last release
7 years ago

cloud_sml_api

CloudSmlApi - JavaScript client for cloud_sml_api CloudSML is a next-generation Data Mining platform by Salford Systems. This is an online and interactive documentation for CloudSML RESTful API. Here you can check out what kind of information you can have and what actions you can do. You can generate a client library from the provided OpenAPI Specification using codegen tool. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0
  • Package version: 1.0
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install cloud_sml_api --save

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Getting Started

Please follow the installation instruction and execute the following JS code:

var CloudSmlApi = require('cloud_sml_api');

var defaultClient = CloudSmlApi.ApiClient.instance;

// Configure OAuth2 access token for authorization: oauth2_password
var oauth2_password = defaultClient.authentications['oauth2_password'];
oauth2_password.accessToken = "YOUR ACCESS TOKEN"

var api = new CloudSmlApi.AuthApi()

var defaultScopes = ["defaultScopes_example"]; // {[String]} 

var opts = { 
  'redirectUris': ["redirectUris_example"] // {[String]} 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.createOauthClient(defaultScopes, opts, callback);

Documentation for API Endpoints

All URIs are relative to https://localhost/api/v1

ClassMethodHTTP requestDescription
CloudSmlApi.AuthApicreateOauthClientPOST /auth/oauth2_clients/Create a new OAuth2 Client
CloudSmlApi.AuthApigetOAuth2ClientsGET /auth/oauth2_clients/List of OAuth2 Clients
CloudSmlApi.AuthApioptionsOAuth2ClientsOPTIONS /auth/oauth2_clients/Check which methods are allowed
CloudSmlApi.DataApicreateDataSourcePOST /data/sources/Add a new data source
CloudSmlApi.DataApicreateDataSourceColumnPOST /data/sources/{data_source_id}/columns/Create DataSourceColumn (action may be performed by Computational Backend)
CloudSmlApi.DataApicreateDataTransformationPOST /data/transformations/Make a new data transformation
CloudSmlApi.DataApideleteDataSourceByIdDELETE /data/sources/{data_source_id}Delete a data source by ID
CloudSmlApi.DataApideleteDataTransformationByIdDELETE /data/transformations/{data_transformation_id}Delete a data transformation by ID
CloudSmlApi.DataApigetDataSourceByIdGET /data/sources/{data_source_id}Get data source details by ID
CloudSmlApi.DataApigetDataSourceColumnsGET /data/sources/{data_source_id}/columns/Get data source predictors list by data source ID
CloudSmlApi.DataApigetDataSourcesGET /data/sources/List of data sources
CloudSmlApi.DataApigetDataTransformationByIdGET /data/transformations/{data_transformation_id}Get data transformation details by ID
CloudSmlApi.DataApigetDataTransformationMaterializationByIdGET /data/transformations/{data_transformation_id}/data.{export_format}Preview Data Transformation
CloudSmlApi.DataApigetDataTransformationsGET /data/transformations/List of data transformations
CloudSmlApi.DataApigetExportDataTransformationByIdGET /data/transformations/{data_transformation_id}.{export_format}Get Data Transformation in specified format
CloudSmlApi.DataApioptionsDataSourceByIdOPTIONS /data/sources/{data_source_id}Check which methods are allowed
CloudSmlApi.DataApioptionsDataSourceColumnsOPTIONS /data/sources/{data_source_id}/columns/Check which methods are allowed
CloudSmlApi.DataApioptionsDataSourcesOPTIONS /data/sources/Check which methods are allowed
CloudSmlApi.DataApioptionsDataTransformationByIdOPTIONS /data/transformations/{data_transformation_id}Check which methods are allowed
CloudSmlApi.DataApioptionsDataTransformationMaterializationByIdOPTIONS /data/transformations/{data_transformation_id}/data.{export_format}Check which methods are allowed
CloudSmlApi.DataApioptionsDataTransformationsOPTIONS /data/transformations/Check which methods are allowed
CloudSmlApi.DataApioptionsExportDataTransformationByIdOPTIONS /data/transformations/{data_transformation_id}.{export_format}Check which methods are allowed
CloudSmlApi.DataApioptionsMaterializedDataTransformationByIdOPTIONS /data/transformations/exported/{exported_data_transformation_id}/Check which methods are allowed
CloudSmlApi.DataApipatchDataSourceByIdPATCH /data/sources/{data_source_id}Modify data source details by ID
CloudSmlApi.DataApipatchDataTransformationByIdPATCH /data/transformations/{data_transformation_id}Modify data transformation details by ID
CloudSmlApi.DataApipatchMaterializedDataTransformationByIdPATCH /data/transformations/exported/{exported_data_transformation_id}/Patch MaterializedDataTransformation to change status and put proper SeaweedFS File ID
CloudSmlApi.Predictive_analyticsApideletePredictiveEnsembleByIdDELETE /predictive_analytics/ensembles/{predictive_ensemble_id}Delete a predictive ensemble by ID
CloudSmlApi.Predictive_analyticsApideletePredictiveModelByIdDELETE /predictive_analytics/models/{predictive_model_id}Delete a predictive model by ID
CloudSmlApi.Predictive_analyticsApifitPredictiveModelPOST /predictive_analytics/models/Build a new predictive model
CloudSmlApi.Predictive_analyticsApigetPredictiveEnsembleByIdGET /predictive_analytics/ensembles/{predictive_ensemble_id}Get predictive ensemble details by ID
CloudSmlApi.Predictive_analyticsApigetPredictiveEnsemblesGET /predictive_analytics/ensembles/List of predictive ensembles
CloudSmlApi.Predictive_analyticsApigetPredictiveModelByIdGET /predictive_analytics/models/{predictive_model_id}Get predictive model details by ID
CloudSmlApi.Predictive_analyticsApigetPredictiveModelExportByIdGET /predictive_analytics/models/{predictive_model_id}.{export_format}Export a model
CloudSmlApi.Predictive_analyticsApigetPredictiveModelOptimalPerformanceStatsGET /predictive_analytics/models/{predictive_model_id}/optimal_performance_statsGet Optimal Performance Stats for specific Predictive Model by its ID
CloudSmlApi.Predictive_analyticsApigetPredictiveModelPerformanceStatsGET /predictive_analytics/models/{predictive_model_id}/performance_statsGet Performance Stats for specific Predictive Model by its ID
CloudSmlApi.Predictive_analyticsApigetPredictiveModelsGET /predictive_analytics/models/List of predictive models
CloudSmlApi.Predictive_analyticsApioptionsExportedPredictiveModelByIdOPTIONS /predictive_analytics/models/exported_predictive_model/{exported_predictive_model_id}Check which methods are allowed
CloudSmlApi.Predictive_analyticsApioptionsPredictiveEnsembleByIdOPTIONS /predictive_analytics/ensembles/{predictive_ensemble_id}Check which methods are allowed
CloudSmlApi.Predictive_analyticsApioptionsPredictiveEnsemblesOPTIONS /predictive_analytics/ensembles/Check which methods are allowed
CloudSmlApi.Predictive_analyticsApioptionsPredictiveModelByIdOPTIONS /predictive_analytics/models/{predictive_model_id}Check which methods are allowed
CloudSmlApi.Predictive_analyticsApioptionsPredictiveModelExportByIdOPTIONS /predictive_analytics/models/{predictive_model_id}.{export_format}Check which methods are allowed
CloudSmlApi.Predictive_analyticsApioptionsPredictiveModelOptimalPerformanceStatsOPTIONS /predictive_analytics/models/{predictive_model_id}/optimal_performance_statsCheck which methods are allowed
CloudSmlApi.Predictive_analyticsApioptionsPredictiveModelPerformanceStatsOPTIONS /predictive_analytics/models/{predictive_model_id}/performance_statsCheck which methods are allowed
CloudSmlApi.Predictive_analyticsApioptionsPredictiveModelsOPTIONS /predictive_analytics/models/Check which methods are allowed
CloudSmlApi.Predictive_analyticsApipatchExportedPredictiveModelByIdPATCH /predictive_analytics/models/exported_predictive_model/{exported_predictive_model_id}Patch ExportedPredictiveModel to change status and put proper SeeweedFS File ID
CloudSmlApi.Predictive_analyticsApipatchPredictiveEnsembleByIdPATCH /predictive_analytics/ensembles/{predictive_ensemble_id}Modify predictive ensemble details by ID
CloudSmlApi.Predictive_analyticsApipatchPredictiveModelByIdPATCH /predictive_analytics/models/{predictive_model_id}Modify predictive model details by ID
CloudSmlApi.Predictive_analyticsApipostPredictiveEnsemblesPOST /predictive_analytics/ensembles/Create a new predictive ensemble
CloudSmlApi.ScoringsApideleteScoringByIdDELETE /scorings/{scoring_id}Delete a scoring by ID
CloudSmlApi.ScoringsApigetScoringByIdGET /scorings/{scoring_id}Get scoring details by ID
CloudSmlApi.ScoringsApigetScoringsGET /scorings/List of scorings
CloudSmlApi.ScoringsApioptionsScoringByIdOPTIONS /scorings/{scoring_id}Check which methods are allowed
CloudSmlApi.ScoringsApioptionsScoringsOPTIONS /scorings/Check which methods are allowed
CloudSmlApi.ScoringsApipatchScoringByIdPATCH /scorings/{scoring_id}Modify scoring details by ID
CloudSmlApi.ScoringsApiscoringModelPOST /scorings/Score a model
CloudSmlApi.UsersApicreateUserPOST /users/Create a new user
CloudSmlApi.UsersApigetUserByIdGET /users/{user_id}Get user details by ID
CloudSmlApi.UsersApigetUserMeGET /users/meGet current user details
CloudSmlApi.UsersApigetUserSignupFormGET /users/signup_formGet signup form keys
CloudSmlApi.UsersApigetUsersGET /users/List of users
CloudSmlApi.UsersApioptionsUserByIdOPTIONS /users/{user_id}Check which methods are allowed
CloudSmlApi.UsersApioptionsUserMeOPTIONS /users/meCheck which methods are allowed
CloudSmlApi.UsersApioptionsUserSignupFormOPTIONS /users/signup_formCheck which methods are allowed
CloudSmlApi.UsersApioptionsUsersOPTIONS /users/Check which methods are allowed
CloudSmlApi.UsersApipatchUserByIdPATCH /users/{user_id}Patch user details by ID
CloudSmlApi.WorkspacesApiaddWorkspaceMemberPOST /workspaces/{workspace_id}/members/Add a new member to a workspace
CloudSmlApi.WorkspacesApicreateWorkspacePOST /workspaces/Create a new workspace
CloudSmlApi.WorkspacesApideleteWorkspaceByIdDELETE /workspaces/{workspace_id}Delete a workspace by ID
CloudSmlApi.WorkspacesApideleteWorkspaceMemberByIdDELETE /workspaces/{workspace_id}/members/{user_id}Remove a member from a workspace
CloudSmlApi.WorkspacesApigetWorkspaceByIdGET /workspaces/{workspace_id}Get workspace details by ID
CloudSmlApi.WorkspacesApigetWorkspaceMembersGET /workspaces/{workspace_id}/members/Get workspace members by workspace ID
CloudSmlApi.WorkspacesApigetWorkspacesGET /workspaces/List of workspaces
CloudSmlApi.WorkspacesApioptionsWorkspaceByIdOPTIONS /workspaces/{workspace_id}Check which methods are allowed
CloudSmlApi.WorkspacesApioptionsWorkspaceMemberByIdOPTIONS /workspaces/{workspace_id}/members/{user_id}Check which methods are allowed
CloudSmlApi.WorkspacesApioptionsWorkspaceMembersOPTIONS /workspaces/{workspace_id}/members/Check which methods are allowed
CloudSmlApi.WorkspacesApioptionsWorkspacesOPTIONS /workspaces/Check which methods are allowed
CloudSmlApi.WorkspacesApipatchWorkspaceByIdPATCH /workspaces/{workspace_id}Patch workspace details by ID

Documentation for Models

Documentation for Authorization

oauth2_password

  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes:
    • auth:read: Provide access to auth details
    • auth:write: Provide write access to auth details
    • data_sources:read: Provide access to data sources
    • data_sources:write: Provide write access to data sources
    • data_transformations:read: Provide access to data transformations
    • data_transformations:write: Provide write access to data transformations
    • predictive_ensembles:read: Provide access to predictive ensembles
    • predictive_ensembles:write: Provide write access to predictive ensembles
    • predictive_models:read: Provide access to predictive models
    • predictive_models:write: Provide write access to predictive models
    • scorings:read: Provide access to scorings
    • scorings:write: Provide write access to scorings
    • users:read: Provide access to user details
    • users:write: Provide write access to user details
    • workspaces:read: Provide access to workspace details
    • workspaces:write: Provide write access to workspace details
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago