Ramesh, did you ever resolve this question?
- Log in to post comments
Ramesh, did you ever resolve this question?
You are getting an"invalid JSON" error because the JSON you're POSTing is itself the OpenAPI 2.0 JSON Schema File. It defines how the standard works in JSON.
Instead, you'll need to post an OpenAPI document, abiding by those standards, defining your RESTful service.
More info here: https://swagger.io/specification/
Ikara, No problem!
I have already contacted documentation about this. I agree; the current language is ambiguous.
Bukhtiar, I have forwarded your question to OnlineTraining@InterSystems.com. You can expect a response shortly to the email address on file for your Learning account.
OnlineTraining@InterSystems.com is the fastest way to get answers about enrollments or anything related to Learning.InterSystems.com
Sergei's picture shows a menu located in the InterSystems View. The ISC logo for that view appears on the left of VS Code once you have a ObjectScript connection. You can configure Export settings, to an extent, as {objectscript.export: {}} in workspace or user settings.
See the README on the repository: https://github.com/intersystems-community/vscode-objectscript
And a few more learning materials: https://learning.intersystems.com/course/view.php?name=VSCodeRG
Here's the correct link for the server-side applications learning path: https://learning.intersystems.com/course/view.php?name=IRIS%20Server%20Side
And I also recommend this course on RESTful services: https://learning.intersystems.com/course/view.php?name=REST%20Services
As Ben promised, here is the Learning Services link for Tim's presentation: https://learning.intersystems.com/course/view.php?id=1928
And here is the InterSystems Developers YouTube link for Tim's presentation: https://www.youtube.com/watch?v=elVQEU9MitE
In VS Code, you can create a debugger launch configuration for your API endpoint. Set the "request" attribute to "attach" and the "processID" attribute to the job ID of the production component that services your API. Set breakpoints and run this configuration. Then when a request arrives, you can debug the service and endpoints while viewing the REST request contents.
Here is a reference video; example starts at 4:00.
Good point. In the example I gave, the request is forwarded to a business process which has a job ID.
Self-determination theory is a decent research-backed framework for discussing motivation. It would say that sharing your own interest is to help newcomers but ultimately it's up to them whether they internalize that interest.
more writing on it:
https://selfdeterminationtheory.org/wp-content/uploads/2017/03/2017_Dec…
https://www.sciencedirect.com/science/article/abs/pii/S0747563210000130
The InterSystems learning team thanks you for your honest review. I agree; overall, the training is a good introduction, but the fifth and final step is more difficult.
I forwarded your request to onlinetraining@intersystems.com, which deals with the learning site and learning labs. And I cc'd the email address in your profile.
Was this event recorded?
How did it go?
I installed telnet in an IRIS container using:
docker exec -u root -it <container-name> apt-get install telnet
Then tested it using:
docker exec -u root -it <container-name> telnet <target-ip> <target-port>
This requires your container to be networked with the target. So a full example:
docker network create networkECP
docker network connect networkECP iris-data-server
docker network connect networkECP iris-app-1
docker network inspect networkECP
docker exec -u root -it iris-app-1 ping iris-data-server
docker exec -u root -it iris-app-1 apt-get update && apt-get install telnet
docker exec -u root -it iris-app-1 telnet iris-data-server 1972You can create X.509 Credential Sets in an intersystems IRIS namespace, then access the credential set in a production.
Several pre-built adaptors like the HTTP Inbound Adapter use this approach.
Here is documentation on creating InterSystems IRIS Credential Sets
According to IRIS docs, "to include custom header parameters [in a JOSE array], ... first define them as key/value pairs in a dynamic object... [then] add it to a node of the JOSE array using the custom subscript."
https://docs.intersystems.com/iris20231/csp/docbook/DocBook.UI.Page.cls…
While you are running the IAM setup script, provide the script with a public static IP addres for the host that IRIS (or IRIS container) runs on, and provide the IRIS web server port.
Then after you install IAM, while you are creating a service and sending requests, the IP address should be the address of the host that IAM is running on, and you use an IAM port for incomiong traffic, (e.g. 8000).
Here is documentation about IAM ports for version 3.4.
And this video about installing IAM has more information:
Thank you for the review of this online learning program! As a course developer for InterSystems, I am glad you found it engaging.
I am looking into the issues you described in your "More Comments" sections, and I will let you know when they are resolved.
UPDATE: Both broken VMs have been repaired. In the VM for the exercise Building a Server-Side Application with InterSystems IRIS, the IRIS user's password had expired. In the VM for the assessment, a change in the VS Code configuration had made the file read-only. It is edit-able again now. I am also updating the quizzes, to improve the accuracy of the questions and answers. I will not post those updates here, to avoid giving away the answers to future users. Thank you again for your comments! In the future you can email onlinetraining@intersystems.com if you find broken VMs or inaccurate quizzes.
The intersystems-iris-native module for node.js can be found within the Intersystems installation directory. Specifically, it is in: isc-install-dir\dev\nodejs\intersystems-iris-native\
Basically, you can copy the module from the InterSystems installation directory into your node_modules directory for your project, or install it globally.
Source: https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cl…
Failing that, you can also locate the node.js driver and other drivers from: https://github.com/intersystems-community/iris-driver-distribution
Install Docker Engine on Ubuntu: https://docs.docker.com/engine/install/ubuntu/
I've found Docker's documentation to be the most reliable. There are also instructions for Debian, RHEL, Fedora, etc.
The .NET IRIS dll files and nupkg files are located in the installation directory, in the dev folder. For containers, that would be /usr/irissys/dev/dotnet/bin.
Source: https://docs.intersystems.com/components/csp/docbook/DocBook.UI.Page.cl…
To the first question about Python packages:
The pandas package doesn't come pre-installed. You are correct that the Python shell is functional in a basic IRIS instance, but some packages need to be installed (latest docs for installing python packages in containers). Other packages like math and iris are pre-installed.
To the second question:
I'm not sure what you're looking for here.
It looks like you have the VS Code explorer configured for server-side editing of the USER and US-S namespaces on your instance. You can create and add class files here, to be compiled within those namespaces. Those would be your user-defined files, including Python classes and scripts. They'll have access to the python libraries in IRIS. Here's some more documentation on running Python.