This is an example to expose IRIS security package with a REST API.
Make sure you have git and Docker desktop installed.
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 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.
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()