006
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@
|
||||
|
||||
//variables.framework.docs={};
|
||||
variables.framework.docs.APIName="Deck API";
|
||||
variables.framework.docs.APIVersion="0.005";
|
||||
variables.framework.docs.APIVersion="0.006";
|
||||
|
||||
variables.framework.globalHeaders = structNew();
|
||||
variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location";
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<cfcomponent extends="taffy.core.resource" taffy:uri="/error">
|
||||
|
||||
<cffunction name="get" hint="Имитация ошибки HTTP">
|
||||
<cfargument name="statusCode" type="string" hint="type:integer" default="200"/>
|
||||
<cfargument name="statusText" type="string" hint="type:string" default=""/>
|
||||
|
||||
<cfreturn representationOf(arguments.statusText).withStatus(arguments.statusCode)/>
|
||||
</cffunction>
|
||||
|
||||
</cfcomponent>
|
||||
@@ -18,6 +18,14 @@
|
||||
<cfset "out.iamServiceUrl"=request.locateIamService()/>
|
||||
|
||||
<cfset "out.serviceLocationDurationMs"=getTickCount() - request.startTickCount/>
|
||||
|
||||
<cftry>
|
||||
<cfset var sAuth=listGetAt(request.ORCHESTRATOR_AUTH,2," ")/>
|
||||
<cfset "out.svcAccount"=listGetAt(toString(ToBinary(sAuth)),1,":")/>
|
||||
<cfcatch type="any"></cfcatch>
|
||||
</cftry>
|
||||
|
||||
<cfset "out.environmentVariables"=structKeyArray(createObject("java", "java.lang.System").getEnv()).sort("textnocase")/>
|
||||
|
||||
<cfquery name=local.qSpec>
|
||||
select
|
||||
|
||||
Reference in New Issue
Block a user