234 attempt to fix js error Uncaught SyntaxError: Unexpected identifier 'hidden'
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
component extends="taffy.core.api" {
|
||||
|
||||
this.name = "TaffyE2ETestAPI_" & hash(getCurrentTemplatePath());
|
||||
this.sessionManagement = false;
|
||||
|
||||
variables.testApiPath = getDirectoryFromPath(getCurrentTemplatePath());
|
||||
variables.rootPath = getDirectoryFromPath(left(variables.testApiPath, len(variables.testApiPath) - 1));
|
||||
variables.rootPath = getDirectoryFromPath(left(variables.rootPath, len(variables.rootPath) - 1));
|
||||
|
||||
this.mappings["/taffy"] = variables.rootPath;
|
||||
this.mappings["/resources"] = variables.testApiPath & "resources";
|
||||
|
||||
variables.framework = {
|
||||
disableDashboard: true,
|
||||
disabledDashboardRedirect: "",
|
||||
returnExceptionsAsJson: true
|
||||
};
|
||||
|
||||
function onApplicationStart() {
|
||||
return super.onApplicationStart();
|
||||
}
|
||||
|
||||
function onRequestStart(targetPath) {
|
||||
return super.onRequestStart(targetPath);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<!--- This file intentionally left empty. It is required by Taffy to serve as the entry point. --->
|
||||
@@ -0,0 +1,17 @@
|
||||
component extends="taffy.core.resource" taffy:uri="/echo/{id}" output="false" {
|
||||
|
||||
function get(required string id) output="false" {
|
||||
return rep({ method: "GET", id: arguments.id });
|
||||
}
|
||||
|
||||
function put(required string id, string name = "") output="false" {
|
||||
return rep({ method: "PUT", id: arguments.id, name: arguments.name });
|
||||
}
|
||||
|
||||
function delete(required string id) output="false" {
|
||||
return rep({ method: "DELETE", id: arguments.id })
|
||||
.withStatus(200)
|
||||
.withHeaders({ "X-Deleted-Id": arguments.id });
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
component extends="taffy.core.resource" taffy:uri="/echo/{parentId}/child/{childId}" output="false" {
|
||||
|
||||
function get(required string parentId, required string childId) output="false" {
|
||||
return rep({ method: "GET", parentId: arguments.parentId, childId: arguments.childId });
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
component extends="taffy.core.resource" taffy:uri="/echo" output="false" {
|
||||
|
||||
function get() output="false" {
|
||||
return rep({ method: "GET", message: "echo" });
|
||||
}
|
||||
|
||||
function post(string name = "" taffy_minlength="1" taffy_maxlength="255", string value = "" taffy_maxlength="500") output="false" {
|
||||
return rep({ method: "POST", name: arguments.name, value: arguments.value })
|
||||
.withStatus(201);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user