<commit_before><!-----------------------------------------------------------------------
********************************************************************************
Copyright Since 2005 ColdBox Framework by <NAME> and Ortus Solutions, Corp
www.coldbox.org | www.luismajano.com | www.ortussolutions.com
********************************************************************************

Author     :	<NAME>
Description :
	Relax Resources Definition.  For documentation on how to build this CFC
	look at our documenation here: http://wiki.coldbox.org/wiki/Projects:Relax.cfm
----------------------------------------------------------------------->
<cfcomponent output="false">
<cfscript>
	
	// I save the location of this CFC path to use resources located here
	variables.dirPath = getDirectoryFromPath( getMetadata(this).path ); 
	
	function configure(){
		
		/************************************** SERVICE DEFINITION *********************************************/
		
		// This is where we define our RESTful service, this is usually
		// our first place before even building it, we spec it out.
		this.relax = {
			// Service Title
			title = "My RESTFul Service",
			// Service Description
			description = "A very cool RESTFul Service",
			// Service entry point, can be a single string or name value pairs to denote tiers
			//entryPoint = "http://www.myapi.com",
			entryPoint = {
				dev  = "http://dev.myapi.com",
				production = "http://www.myapi.com"
			},
			// Does it have extension detection via ColdBox
			extensionDetection = true,
			// Valid format extensions
			validExtensions = "xml,json,jsont,wddx,html",
			// Does it throw exceptions when invalid extensions are detected
			throwOnInvalidExtension = false		
		};
		
		/************************************** GLOBAL PARAMS +  HEADERS *********************************************/

		// Global API Headers
		globalHeader(name="apikey",description="The apikey needed for request authentication.",required=true);
		
		// Global API Parameters
		globalParameter(name="paramKey",description="The parameter key needed for request authentication.",required=true);<commit_msg>new resource definition DSL via programmatic approach.<commit_after><!-----------------------------------------------------------------------
********************************************************************************
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp
www.coldbox.org | www.luismajano.com | www.ortussolutions.com
********************************************************************************

Author     :	<NAME>
Description :
	Relax Resources Definition.  For documentation on how to build this CFC
	look at our documenation here: http://wiki.coldbox.org/wiki/Projects:Relax.cfm
----------------------------------------------------------------------->
<cfcomponent output="false">
<cfscript>
	
	// I save the location of this CFC path to use resources located here
	variables.dirPath = getDirectoryFromPath( getMetadata(this).path ); 
	
	function configure(){
		
		/************************************** SERVICE DEFINITION *********************************************/
		
		// This is where we define our RESTful service, this is usually
		// our first place before even building it, we spec it out.
		this.relax = {
			// Service Title
			title = "My RESTFul Service",
			// Service Description
			description = "A very cool RESTFul Service",
			// Service entry point, can be a single string or name value pairs to denote tiers
			//entryPoint = "http://www.myapi.com",
			entryPoint = {
				dev  = "http://dev.myapi.com",
				production = "http://www.myapi.com"
			},
			// Does it have extension detection via ColdBox
			extensionDetection = true,
			// Valid format extensions
			validExtensions = "xml,json,jsont,wddx,html",
			// Does it throw exceptions when invalid extensions are detected
			throwOnInvalidExtension = false		
		};
		
		/************************************** GLOBAL PARAMS +  HEADERS *********************************************/

		// Global API Headers
		globalHeader(name="apikey",description="The apikey needed for request authentication.",required=true);
		
		// Global API Parameters
		globalParam(name="paramKey",description="The parameter key needed for request authentication.",required=true);
{'fraction_non_alphanumeric': 0.29108956602031394, 'fraction_numerical': 0.0018467220683287165, 'mean_word_length': 3.2355816226783967, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2543335', 'n_tokens_mistral': 1141, 'n_tokens_neox': 971, 'n_words': 334}