Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [%Api] >  [Mgmnt] >  [v2] >  [disp]
Private  Storage   

class %Api.Mgmnt.v2.disp extends %REST.disp

The API Management API manages the APIs which are defined using a RESTSpec. In addition limited supported for legacy REST applications based on direct subclassing of %CSP.REST is included. Dispatch class defined by RESTSpec in %Api.Mgmnt.v2.spec

This class was generated by %Api.Mgmnt.v2.spec.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
5 8


Summary

Methods
%ClassIsLatestVersion %ClassName %DispatchClassMethod %DispatchGetModified
%DispatchGetProperty %DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty
%DispatchSetProperty %Extends %GetParameter %IsA
%New %OriginalNamespace %PackageName %SetModified
AcceptsContentType ConvertParameter CreateApplication Decrypt
DeleteApplication DispatchRequest DrawCSS3STYLE DrawHEAD
DrawSTHEAD DrawSTTitle DrawSTYLE DrawTitle
DrawTitleSection Encrypt Error EscapeHTML
EscapeURL GetAllRESTApps GetAllWebRESTApps GetApplication
GetAuthChallenge GetRESTApps GetWebRESTApplication GetWebRESTApps
Http403 Http404 Http405 Http500
HyperEventCall HyperEventHead Include InsertHiddenField
InsertHiddenFields IsPrivate Link Login
OnErrorSetup OnHTTPHeader OnHandleCorsRequest OnHandleOptionsRequest
OnLoginPage OnPage OnPageError OnPostHTTP
OnPostHyperEvent OnPreHTTP OnPreHyperEvent OnSecurityTokenPage
Page QuoteJS ReportHttpStatusCode RewriteURL
SetResponseHeaderIfEmpty ShowError StartTimer StatusToJSON
StatusToProxyObject StopTimer SupportedVerbs ThrowError
UnescapeHTML UnescapeURL


Parameters

• parameter CONTENTTYPE = "application/json";
Default the Content-Type for this application.
• parameter CONVERTINPUTSTREAM = 1;
By default convert the input stream to Unicode
• parameter HandleCorsRequest = 1;
This parameter influences the CORS support. The default is an empty string meaning 'not specified'. If set to true (1) then CORS processing is ON. If set to false (0) then CORS processing is OFF. If left unset "" then the decision to process CORS is delegated to the setting on the URL map route.
• parameter IgnoreWrites = 1;
Ignore any writes done directly by the REST method.
• parameter SpecificationClass = "%Api.Mgmnt.v2.spec";
The class containing the RESTSpec which generated this class

Methods

• classmethod CreateApplication(pnamespace As %String, papplicationName As %String) as %Status
Create a REST applicaiton from the OpenAPI 2.0 definition.
• classmethod DeleteApplication(pnamespace As %String, papplicationName As %String) as %Status
Delete a REST application.
• classmethod GetAllRESTApps() as %Status
Get the list of all REST applications
• classmethod GetAllWebRESTApps() as %Status
Get the list of all legacy REST applications
• classmethod GetApplication(pnamespace As %String, papplicationName As %String) as %Status
Get OpenAPI 2.0 definition of this REST application
• classmethod GetRESTApps(pnamespace As %String) as %Status
Get the list of all REST applications in a namespace
• classmethod GetWebRESTApplication(pnamespace As %String, pwebApplication As %String) as %Status
Get OpenAPI 2.0 definition of this %CSP.REST based REST application.
• classmethod GetWebRESTApps(pnamespace As %String) as %Status
Get the list of all legacy REST applications in a namespace


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.