Question Sylvie Greverend · Jul 2, 2024 getFile from rest api and swagger I use a swagger file and ##class(%REST.API).CreateApplication to create the rest api. There is an interesting post: https://community.intersystems.com/post/download-file-rest-api-operation, but it is code, not a swagger configuration. disp.cls returns always a header content : application/json that of course fails as I am not always returning a json I can not figure out what to put in swagger. Some examples I tried: #JSON #REST API #InterSystems IRIS 0 2 0 148
Question Sylvie Greverend · Jun 20, 2024 rest api authentication How do you authenticate with a rest api? The rest api implemention allows us to add in the header Authentication: 'Basic ' + btoa(user + ':' + password) but it is not really secure as a user can inspect and with the right decoding tool see a user password #Security #InterSystems IRIS 1 4 1 267
Question Sylvie Greverend · May 30, 2024 Authentication api Is there an api for 'Is this user log-in?' and 'log-in this user with this id and password'? Thank you #Authentication #HealthShare 0 2 0 154
Question Sylvie Greverend · May 7, 2024 angular application with healthshare authentication I have an angular UI communicating with a iris rest api. Now I need to authenticate (to federated) before accessing the UI, and for a better solution as the users are using the healthshare clinical viewer 2023, find a way to use the clinical viewer authentication / user to go to the UI. The angular way would be to do an angular guard and have a function 'am I authenticate to federated', but I never found a function like this and how to get my username. #Angular #Health Connect #HealthShare #InterSystems IRIS #InterSystems IRIS for Health 0 0 0 90
Question Sylvie Greverend · Apr 6, 2024 How to see in sql explorer not the id of a property but a meaningful field of this object property It is probably somewhere in the doc. So hard to search. Hope InterSystems going to AI on their community/support data. How to see a meaningful value in management portal - sql explorer. For instanceClass MySetting Extends %Persistent{ Property Name As %String; Class MyObj Extends %Persistent{ Property Setting As MySetting; #Management Portal #SQL #InterSystems IRIS 0 1 0 119
Question Sylvie Greverend · Mar 29, 2024 CORS problem from my local to Iris server with a REST API I built my rest api with ^%REST and update with CreateApplication.Postman works fine and I suppose production server will work fine as UI and rest api will be on the same domain, but for now in dev, I need to have access from my local to the Iris rest api. I have a CORS error. I do not know how to configure my swagger file to have either Parameter HandleCorsRequest=1 or <route Cors=true in the generated displ,cls. #REST API #InterSystems IRIS 0 3 0 255
Question Sylvie Greverend · Mar 14, 2024 HealthShare css style and navigation application extension In HealthShare, we can add any new application that will show up in the left menu of the viewer. I am trying to add new navigation entries that will look like 'patient search' popup. - Is Intersystems sharing its HealthShare style? They are using material tags, but it looks very different that the default material themes. I probably can pick up the style, but perhaps there is an official way.- Is there a way to do a popup like patient search? So far I see, a new option is associated to an url not some javascript code? Thank you for your help. #Frontend #HealthShare 1 0 0 102
Question Sylvie Greverend · Mar 14, 2024 401 unauthorized when using Postman to transform openapi2 json to restapi classes. I am trying to use postman to start the restapi classes from a json openapi2.0.0 file. POST: https://myserver.com/api/mgmnt/v2/requestAPI. The body contains the openapi2.0.0. The application api/mgmnt has in security settings: password. JWT is not selected. I set postman authentication to basis authentication and gave username and password. I also set in headers IRISUsername and IRISPassword. I have 401 Unauthorized. Is the only way to go through is to build an oauth token? or do I miss something? #Authentication #REST API #InterSystems IRIS 1 2 0 165