Skip to main content

%Atelier.REST

class %Atelier.REST extends %CSP.REST

This class implements a custom response format and serves as the basis for all Atelier REST APIs

Method Inventory

Parameters

parameter DOMAIN = %Utility;
%Atelier.REST classes are unlikely to actually define messages with $$$Text %Utility seems like a catch-all, and should have all languages defined, so the %session/%response language can be set properly.

Methods

classmethod Http500(pE As %Exception.AbstractException) as %Status
Use our special format Http500 handler
classmethod Page(skipheader As %Boolean = 1) as %Status
Sets the response's localization domain (something that %CSP.REST should do, in theory) and then invokes default super class behavior
classmethod RenderResponseBody(pStatus As %Status, pMsgPart As %DynamicArray, pResPart As %DynamicObject) as %Status
Render the three-part Response Body which contains an status, console, and a result part
classmethod ReportHttpStatusCode(pHttpStatus, pSC As %Status = $$$OK) as %Status
User our special format handler for other status codes
classmethod ServeDoc(pDocName As %String, pStatus As %Status, pMsgArray As %DynamicArray, ByRef pResArray As %String, pTimeStamp As %String = "", pUpToDate As %Boolean, pExtensionContent As %DynamicObject) as %Status
This private helper method server wraps the message and document and returns it to the caller
classmethod ServeXml(pDocName As %String, pStatus As %Status, pMsgArray As %DynamicArray, pStream As %Stream, pTimeStamp As %String = "") as %Status
This private helper method server wraps the message and document and returns it to the caller
classmethod SetClientServerHash(pHash As %String)
Set the clients version of the server hash

Inherited Members

Inherited Methods

Subclasses

FeedbackOpens in a new tab