The SAS Micro Analytic
Service REST API provides an interface for web client applications
to compile and execute micro analytic modules as steps that provide
near real-time analytic capabilities. The REST API supports DS2 modules,
including SAS Enterprise Miner models, SAS Business Rules Manager
rule flows, and user-written packages. User-written DS2 packages
can also publish Python modules and execute Python functions.
The API provides the
following POST methods:
Create module
publishes module code
in memory with a request body containing the DS2 source code as input.
Validate steps
validates the request
body of input values required by the DS2 source code and returns validation
results.
Execute step
validates and executes
the micro analytic step with a request body of input values required
by the DS2 source code.
The API provides the
following PUT method:
Update module
publishes updated analytic
code in memory with a request body containing the DS2 source code
as input.
The API provides the
following DELETE method:
Delete module
removes analytic code
from memory.
The API provides the
following GET methods:
Query an individual module
returns detailed information
about a module
Query steps by module
returns a list of steps
available by module.
Query step signature
returns detailed information
about the inputs required by the step and the outputs produced by
the step.
Retrieve module details
returns information
such as the module's name, current revision, and a list of compiled
steps.
The implementation supports
only JSON resource representations.