The SAS Micro Analytic
Service REST API provides an interface for web client applications
to compile and execute micro analytic modules into steps that provide
near real-time analytic capabilities.
The REST API supports the execution of DS2 source and provides the
ability to run SAS Enterprise Miner score code (converted from a SAS
DATA step to DS2) and user-written functions.
The API provides the
following POST methods:
Create module
publishes analytic
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 an individual step by module
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.
Note: The REST API does not support
method overloading.