Whatever message this page gives is out now! Go check it out!
API Name | The name of the API you will create. Enter a meaningful name. For this example, enter Demographics |
Context | Browser-friendly name that defines the context of your API. Enter the context as the same as your API. |
Version | The version of the API. An API can have multiple versions. Enter v1.0 as the version of the API. |
Endpoint | For this example, you can work with a service exposed by the Cdyne services provider. Use the endpoint, http://ws.cdyne.com/DemographixWS/DemographixQuery.asmx |
Visibility | Set it to public, private, or partner depending on how you want to expose the API to users. |
Description | Enter the API description. |
1 | GET method |
2 | Resource |
3 | Parameters of the resource. |
<cfcomponent rest="true" restpath="/hello">
<cffunction name="sayHello" access="remote" returnType="string" httpMethod="GET">
<cfset myStr="Hello. This is a REST app.">
<cfreturn myStr>
</cffunction>
</cfcomponent>