Skip to content

Files

Latest commit

 

History

History

API-UI-Examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

API UI Examples

This directory contains an example application in both Node and Python that will query the SentinelOne APIs and return the results in an HTML web application. The goal is to provide a jump start to using the SentinelOne APIs to create your own lightweight console or data access tool. Both examples use the same static HTML, CSS and javascript files for the front end, the only difference is the language of the server implementation.

These examples assume you have either Node or Python installed on your local machine.

Python Instructions

  1. Download all files in this directory
  2. Install the required libraries pip3 install Flask Flask-Session requests jsonify
  3. Start the server python3 server.py
  4. Open a browser to http://localhost:3000
  5. Login and click the buttons to call the APIs

Node Instructions

  1. Download all files in this directory
  2. Initialize the directory npm init -y
  3. Install the required modules npm install express express-session axios body-parser
  4. Start the server node server.js
  5. Open a browser to http://localhost:3000
  6. Login and click the buttons to call the APIs

Here's what you should see:
Login:
Login

APIs:
APIs