Hi Community!,
I've published a new versión of IrisApiTester, I included some new features:
Application Programming Interface (API) is a set of subroutine definitions, protocols, and tools for building application software. In general terms, it is a set of clearly defined methods of communication between various software components.
Hi Community!,
I've published a new versión of IrisApiTester, I included some new features:
Still working on my first External REST API call, and I am struggling to find the exact answer I am looking for... I get a JSON response from my API call but I am not quite sure how to dynamically get the JSON response into the Ens.Response Object with its lists of Arrays that I have defined.
set tSC = ..Adapter.SendFormDataArray(.tHTTPResposne,"POST",tHTTPRequest,,,tURL)
set pResponse = ##class(User.REST.Epic.Msg.GetPatientLocationResponse).%New()
set dynObject = {}.%FromJSON(tHTTPResposne.Data)
set iter = dynObject.%GetIterator()
while iter.%GetNext(.key,.value){
I am trying to connect the external application. Authenticating via Two SSL,
I have the Client Cert, Private key and the Root Certificate
The connection is successful from local (both via terminal and as well via Postman)
But when trying from IRIS application by configuring the certificates in the SSL configuration, i am not able to successfully verify the SSl connections
When test from the ssl configuration with the endpoint and port its gives the error Error #988: SSL connection failed. SSL/TLS error in SSL_read(), SSL_ERROR_SYSCALL: I/O error (54)
In my previous articles, I described my Command Line Extension to NativeAPI.
Of course, this is also available for any other NativeAPI package.
So I created this example in Python as a demo.
I have a problem. Occasionally, I am getting locked out of IRIS because of password failures. However, the failures aren't necessarily related to my password. We are using VSCode, and I have installed one or two proposed APIs for use with the software (because that's just how I am; I want to learn the new stuff).
Today, I had that problem again. The step that caused the problem was most likely when I was trying to switch the branch I was using and updating within VSCode. Let's say I was switching from branch "1A" to branch "2B". When I did this, IRIS caught two password errors:
I am working on my first REST operation to send a API Request to an internal server within our Network. I have finally got past the point of being able to connect using a SSL/TLS Configuration, but I am getting a ERROR <Ens>ErrHTTPStatus: Received non-OK status 403 from remote HTTP server: 'HTTP/1.1 403 Forbidden'.
When manually coding REST services and using GET /api/mgmnt/v1/:namespace/spec/:application/ to return an OpenAPI spec, how do you specify supported properties (OpenAPI Properties in Use | Creating REST Services | InterSystems IRIS Data Platform 2021.1) like responses, definitions, and information in paths like summary and description?
Trying my first REST call operation to our internal EMR (Epic) server, and I am receiving "ERROR #6097: Error '<READ>Read+28^%Net.HttpRequest.1' while using TCP/IP device '9999'" when I attempt to test my operation. When I look up the General Error Messages for 6097 I am seeing...Error '%1' while using TCP/IP device $zu(189,1)='%2'. What does this mean?
I am trying to connect to the server over port 443 which is HTTPS but I am not using an SSL Configuration. Could that be the issue?
Is there a way to debug HTTP like their is with the ISCSOAP log?
I had attempted to create a REST Operation before but did not have success. As I am going through the Tutorials and Documentation everything references REST services, but I have a case where I want to create a REST Operation that makes Epic API calls against Interconnect. I have done SOAP operations before and we currently have one in our Production Namespace, but from what I understand SOAP has the wsdl which defines al the structures and etc, where REST does not.
I am playing around with trying to make an Epic REST API call from an operation, and from what I understood because the request has to be sent as POST, I need to send the request as JSON. However when I try taking the request and running %ToJSON against it for the payload to be created I am getting an error...
ERROR <Ens>ErrException: <METHOD NOT SUPPORTED>zgetPatientLocationByVisit+6^User.SCOTT.REST.APIOperation.1 *%ToJSON,osuwmc.Epic.Access.Request.GetPatientLocationByVisit2JsonRequest -- logged as '-' number - @' set tPayload = tRequest.%ToJSON()'
Hello Community!!
I just upload my lastest application "IRIS Api Tester" to the Open Exchange.
It's a docker project with InterSystems IRIS + Newman that will allow you to test your Postman Collections in a quick and easy way..
It's ready to work out of the box, you just have to clone the repo: https://github.com/daniel-aguilar-garcia/irisapitester
Run the docker-compose file:
Open this url in your browser:
http://localhost:52773/csp/user/index.html
Add some test to your Postman collection:
Hello Community!
I'm going to try to explain how to create test for Postman collections for use it with my app IRIS Api Tester.
Yet, What is Newman?:
Newman is a command-line tool that allows you to run Postman collections in an automated and scalable way. By creating tests in Newman, you can ensure the reliability and correctness of your API endpoints. In this article, we will explore how to create tests for Newman in Postman, along with practical examples to help you get started.
Once you have created your Postman Collection:
You're ready to start writing your test scripts:
In this article, I will share the theme we presented at the Global Summit 2023, in the Tech Exchange room. Me and @Rochael Ribeiro
In this opportunity, we talk about the following topics:
As we are talking about fast modern APIs development (Rest / json) we will use two Intersystems Open Exchange tools:
API performed API Automation on IRIS Dataplatform?
Using the Config.Configuration class and SYS.Database class methods, you can create and register a namespace database from the terminal.
Below is a series of execution examples that create database file /CacheDB/AAA/cache.dat and register database AAA and namespace AAA in the configuration file (cache.cpf).
* Execute in the %SYS namespace. *
* Make sure that this script runs as the user that is used for all IRIS processes to ensure that the directory has appropriate ownership and permissions *
Hello Team,
please can someone help me in the below.
I'm trying to call a Rest API below specification working in postman, and receiving perfectly the response:
POST /PharmacyServices/api/Pharmacy/Upload?Key=aaaa&Username=bbb&Password=ccc HTTP/1.1
Host: abc:38440
Content-Length: 240
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="File"; filename="///xxxx/POC/CSV/20230607.csv"
Content-Type: text/csv
(data)
------WebKitFormBoundary7MA4YWxkTrZu0gW--
Here's what i'm trying to do in IRIS:
On this GitHub you can find all the information on how to use a HuggingFace machine learning / AI model on the IRIS Framework using python.
Usage of Machine Learning models in IRIS using Python; For text-to-text, text-to-image or image-to-image models.
Here, models as example :
Hi,
I am trying to get the API Manager up and running.
I have enabled the application and IAM user and changed password.
when we run the iam_setup.sh I get the following.
Getting IAM license using your inputs...
Internal server error when testing inputs
I have check on Iris management portal , but could see no errors.
Cross-Skilling from IRIS objectScript to Python it becomes clear there are some fascinating differences in syntax.
One of these areas was how Python returns Tuples from a method with automatic unpacking.
Effectively this presents as a method that returns multiple values. What an awesome invention :)
out1, out2 = some_function(in1, in2)
ObjectScript has an alternative approach with ByRef and Output parameters.
Do ##class(some_class).SomeMethod(.inAndOut1, in2, .out2)
Where:
The leading dot (".") in front of the variable name passes ByRef and for Output.
Released with no formal announcement in IRIS preview release 2019.4 is the /api/monitor service exposing IRIS metrics in Prometheus format. Big news for anyone wanting to use IRIS metrics as part of their monitoring and alerting solution. The API is a component of the new IRIS System Alerting and Monitoring (SAM) solution that will be released in an upcoming version of IRIS.
Hi
Is there any build in solution to convert HTML to PDF? if yes please how
Thank you
Hello Everyone!
Following the example below i can download file only txt format, in other format(pdf,xls,rar) i have errors(can't open file),
So, how i will change code for download file in other format?
Thanks!
Hi! recently I have to apply api-key validation to a web app with a lot of endpoints and I'm going to tell you how I did it in a centralized way.
I'm going to explain you how we can apply in a generic way (or not) api-key validation to all the endpoints of our web app.
For this feature I take as a template the class Base.cls of this repository iris-rest-api-template
I modified a bit this class to be able to check api-key security. The idea is that in your features you copy this class in your projects and you extend it for your own implementations.
Dear Friends
I create a soap web api but return 403 forbidden, please check image below.
Your help is highly appreciated.
I'm trying to get started with IRIS for Health but every time I got to a step that asks me to install a .whl-package I cant continue. I'm getting an error that the file does not exist.
Here is the complete error message:
PS C:\Users\x\GIT\quickstarts-multimodel-python> pip install nativeAPI_wheel\irisnative-1.0.0-cp39-cp39m-win_amd64.whl WARNING: Requirement 'nativeAPI_wheel\\irisnative-1.0.0-cp39-cp39m-win_amd64.whl' looks like a filename, but the file does not exist ERROR: irisnative-1.0.0-cp39-cp39m-win_amd64.whl is not a supported wheel on this platform.
Am I doing something wrong?
Is anybody using the EPRSave() Edge Gateway method/API?
It is documented in:
https://docs.intersystems.com/hs20222/csp/docbook/DocBook.UI.Page.cls?K…
Enrico
The following steps show you how to display a sample list of metrics available from the /api/monitor service.
In the last post, I gave an overview of the service that exposes IRIS metrics in Prometheus format. The post shows how to set up and run IRIS preview release 2019.4 in a container and then list the metrics.
This post assumes you have Docker installed. If not, go and do that now for your platform :)
preface
Since the contact with IRIS, it has been used most in hospitals as an ESB integration engine, as a link in the hospital's integration platform+data center. However, you can also develop some restful pis to be used as the backend of front end and back end separation projects
List of articles
Introduction
List of articles
I. Development of technologies and tools
II. Development Path and Relevant Codes
1. database
2. Preparatory work
3. Steps associated with developing an interface
4. Presentation of achievements
Summary
This article will show the CRUD operations related to IRIS in a simple page:
VR ICU® is a participant of InterSystems FHIR startup incubator — Caelestinus. The article will tell you about our VR solution for HealthCare build with InterSystems FHIR Server.
We are a technology startup Virtual Lab that develops solutions using advanced VR/AR technologies. VR ICU® is a training platform for medical staff in ICU, which was created during the Covid era for the needs of hospitals.
Benefits of cooperation with InterSystems
Our VR ICU® solution responds to practice needs and is developed in collaboration with hospitals.