Skip to content

Instantly share code, notes, and snippets.

View muracms's full-sized avatar

Mura muracms

View GitHub Profile
{
"data": {
"key": "value"
}
}
https://yourDomain.com/{context}/index.cfm/_api/json/v1/
POST https://yourdomain.com/{context}/index.cfm/_api/json/v1/{siteid}/login/?username={username}&password={password}
filestore=fileDir
filedir=/YourMappedDrive
assetdir=/YourMappedDrive
assetpath=http://www.yourPublicDomain.com
usefilemode=false
defaultfilemode=777
$.getBean('entityName');
application.serviceFactory('entityName');
<cfscript>
// to add content to the head section of a generated HTML page
$.addToHTMLHeadQueue(
'/path/to/yourFile.cfm'
);
// to add content prior to the closing body tag of a generated HTML page
$.addToHTMLFootQueue(
'/path/to/yourFile.cfm'
);
<Host name="localhost"
appBase="webapps"
unpackWARs="true"
autoDeploy="true"
xmlValidation="false"
xmlNamespaceAware="false">
</Host>
fileDir=/complete/path/to/files
assetDir=/complete/path/to/files
assetPath=http://media.yourdomain.com
createRequiredDirectories=false
{
"Id": "SampleMuraCMSPolicy",
"Statement": [
{
"Sid": "ReadOnlyPermToAnonymousUser",
"Action": "s3:GetObject",
"Effect": "Allow",
"Resource": "arn:aws:s3:::YourBucketName/*",
"Principal": {
"AWS": [
<servlet-mapping>
<servlet-name>GlobalCFMLServlet</servlet-name>
<url-pattern>/index.cfm/*</url-pattern>
<url-pattern>/default/index.cfm/*</url-pattern>
</servlet-mapping>