Skip to content

lscalese/iris-sample-security-rest-api

Repository files navigation

License: MIT

IRIS-Sample-Security-REST-Api

This is an example to expose IRIS security package with a REST API.

Prerequisites

Make sure you have git and Docker desktop installed.

Installation

Clone/git pull the repo into any local directory

git clone https://github.com/lscalese/iris-sample-security-rest-api.git

Open the terminal in this directory and call the command to build and run InterSystems IRIS in container:

docker-compose up -d

Open swagger interface

Open the following url in your browser http://localhost:32773/swagger-ui/index.html
and explore http://localhost:32773/config-api/security/ to open the specification.
Use _system\SYS to login.

Test a request from an IRIS client

Open a terminal on the iris-cli instance :

docker exec -it iris-security-rest-client iris session iris

Get the user or the web application list.

Do ##class(iris.dc.sample.ObjectScriptRestClient).ExampleGetUserList()
; or
Do ##class(iris.dc.sample.ObjectScriptRestClient).ExampleGetWebAppList()

About

Iris REST Api for security package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors