go to post Eduard Lebedyuk · Sep 1, 2023 Add a header field to your request in the form of Authorization: Basic <credentials>, where credentials is the Base64 encoding of username and password joined by a single colon :.
go to post Eduard Lebedyuk · Aug 29, 2023 Alternative approach: create a user which has access only to schemas you need.
go to post Eduard Lebedyuk · Aug 28, 2023 What can be recommended? Fixing memory leaks if you see your running jvm process consuming more and more memory.
go to post Eduard Lebedyuk · Aug 22, 2023 Use CheckAddressExist: w ##class(%SYSTEM.INetInfo).CheckAddressExist(ip)
go to post Eduard Lebedyuk · Aug 22, 2023 There are ways to enable VIP in AWS for IRIS without an additional NLB.
go to post Eduard Lebedyuk · Aug 21, 2023 To check all parts of the request you can use this utility method which outputs all objects as a response. Just add this to any part of your code: set %response.ContentType = "html" do ##class(%CSP.Utils).DisplayAllObjects() return $$$OK
go to post Eduard Lebedyuk · Aug 21, 2023 Tried to reproduce on RHEL9, but I got the test value, same as @Jeffrey Drumm. Are you actually not getting the TEST env var? Or some other env var? IRIS process overwrites some env vars on start
go to post Eduard Lebedyuk · Aug 21, 2023 I guess you do need to use SessionEvent. OnLogin method specifically. Or you can log every request using OnPreDispatch method in your REST broker.
go to post Eduard Lebedyuk · Aug 14, 2023 You need your own datatype, which implements method generators for Set, GetStored etc. After that use your own datatype in your main class. Example.
go to post Eduard Lebedyuk · Aug 14, 2023 In your REST Web Application settings, leave only pass (and remove group by id, if any): After that check that UnknownUser does not have %ALL. Finally try to access your REST url using Postman (or similar tool) and you should be able to see Login methind being executed.
go to post Eduard Lebedyuk · Aug 11, 2023 Are InterSystems Reports available on Ensemble, or only on Iris? (ie could we use InterSystems reports from the start?) Only on IRIS. Any other options for HL7 -> PDF generation? Convert HL7 to FHIR and use The FHIR SQL Builder to make dataset available as a set of SQL Tables. Consume from InterSystems Reports.
go to post Eduard Lebedyuk · Aug 11, 2023 You don't need to create a /login route since Login method is being called implicitly if auth is required.To add logging, it's enough to redefine the Login method in your broker like this (##super docs): ClassMethod Login(skipheader As %Boolean = 1) As %Status [ ProcedureBlock = 0 ] { // do app-level logging quit ##super(skipheader) }
go to post Eduard Lebedyuk · Aug 11, 2023 Only if it's a collection property: Class Utils.DynArrayProp Extends %Persistent { Property A; Property B As list Of %Integer; /// do ##class(Utils.DynArrayProp).Test() ClassMethod Test() { Do ..%KillExtent() Set json = "{""A"":123,""B"":[1,2,3]}" Set dynamicObject = {}.%FromJSON(json) Set object = ##class(%ZEN.Auxiliary.altJSONProvider).%UnpackObjectToCOSObject(dynamicObject, $classname()) Set sc = object.%Save() ZW sc,object,^Utils.DynArrayPropD } }
go to post Eduard Lebedyuk · Aug 6, 2023 InitialExpression would be preferable to %OnNew for predefined values. %OnNew is for cases where you have user input.
go to post Eduard Lebedyuk · Aug 5, 2023 It is setting headers, yes. But in your previous sample code you were using ..Adapter.Post method which does not take tHTTPRequest.
go to post Eduard Lebedyuk · Aug 5, 2023 Sync BO with Deferred Response. BO defers, Second BS resumes.