Skip to content
A simple framework for building applications with SAS REST APIs, supported with SAS Viya
JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
data null payload in iconfig, fix sentiment example, add uploadstore example May 3, 2018
examples save prior to upgrade Jul 11, 2019
lib fix lodash issue cve-2019-10744 Jul 11, 2019
prtUtil initial commit with clean history Mar 15, 2018
.babelrc upgraded babel and webpack Nov 23, 2018
LICENSE initial commit with clean history Mar 15, 2018 initial commit with clean history Mar 15, 2018
app.env https support added and logoff fixed Apr 1, 2019 update changelog May 30, 2019
doc.html null payload in iconfig, fix sentiment example, add uploadstore example May 3, 2018 more changes Mar 6, 2019
package-lock.json 1.5.4 Jul 11, 2019
package.json 1.5.4 Jul 11, 2019
sasTables handle modelManager use case Mar 7, 2019

restAF - Making development of Viya Apps a snap

restAF is a small library to do the following:

  • Provide an easy-to-use API to accomplish the following:
    • UI framework agnostics
    • Manage connections to a Viya Server
    • Manage and execute links returned by the REST calls using a simple API
    • Provides a UMD library for use with browser-based apps
    • Can also be used in nodejs applications


Install from the npm registry

npm install restaf

Install from repo

npm install


Use the following url's to get UMD version.

##To build the library locally

Clone the repository and do the npm install

git clone
npm install

To build all the versions do the following

cd restaf
npm run build

This will build the nodejs library in the lib directory and the UMD libraries in dist directory

##Documentation Please see the in this repository.

Trying it out

  1. Make a copy of restaf.env file to some directory (for the purpose of this document we will assume you named is myenv.env)
  2. Edit myenv.env as instructed in the file.
  3. Run the demos in the examples directory as follows:
node examples\<examplename> <path to myenv>
node examples/logon ../myenv.env

Other examples using restAF

restaf-uidemos repository

restaf-uidemos Clone the restaf-uidemos repository to see how to use restAF in web applications.

restaf-apiexplorer repository

restaf-apiexplorer Clone the restaf-apiexplorer repository and explore the SAS APIs interactively. This is a good example of how to build complex applications with relative ease using restAF.

You can’t perform that action at this time.