I'm curious about how embedded Python is handled by %CSP classes, particularly in the case of defining REST endpoints on IRIS.
Here is a simple dispatch class for the endpoint /api/pythonapp on my local IRIS instance (2022.3):
Class Python.App.Dispatch Extends%CSP.REST
{
XData UrlMap [ XMLNamespace = "https://www.intersystems.com/urlmap" ]
{
<Routes>
<Route Url="/test" Method="GET" Call="Hello" />
</Routes>
}
ClassMethod Hello() As%Status [ Language = python ]
{
import iris
print('Hello World!.png)

(1).jpg)
.png)
This tutorial is a follow on to Working with %Query .png)
.png)
.jpg)



