Skip to content

RESTful APIs

Once Showcase project is deployed successfully, Clouderizer exposes REST endpoints for it. These REST endpoints can be called by any external application to score their data using this model.

REST endpoint URL is available in the bottom left screen of a running project

Figure 1 - REST Enpoint URL

Following are the handlers available at this REST endpoint

/predict

This is the api which allows any external application to submit input and get back scored output. Showcase console offers sample code for invoking this handler in Node.js, Python, Java and C#. Figure 2 - REST Sample Code

Method Type

POST

Input Payload

Model input need to be submitted as a form payload with field name csv. Value of this field should be a comman separated values of all model inputs (order of inputs should be exactly same as order defined in Model project page)

Output Payload

Following is the convention for output for various data types

Integer, Whole and Text

Output is an array of all output variables defined in Model project page under Output.

{"":,..., "responseTime":"

Enums

Enum outputs are returned in json format with following schema

{"label":, "classprobabilities":[, ,...], "responseTime":"

Errors

/feedback

This is the api using which an external application or end user can give feedback about the model performance.

Method Type

POST

Input Payload

Output Payload

Errors

/tsfeedback

This is a special api handler which allows external system to report back ground truth feedback for time series models. Coming Soon

Endpoint Security

REST api endpoints can be protected using Basic Auth. Configuration allowing admins to setup the authentication is under works and shall be released soon. In case you want an early access, please write to info@clouderizer.com