Questions tagged [taffy]

Taffy is a RESTful Web Service framework for ColdFusion

enter image description here

Taffy is an open-source framework for creating APIs in

28 questions
5
votes
1 answer

How to differentiate between an internal & external REST API request?

On the server, is there any way to differentiate between an internal & external REST API request? Why? The reason I want to distinguish the two origins, is because I may, based on the advice, given by respondents, want to return a different data…
Charles Robertson
  • 1,760
  • 16
  • 21
5
votes
1 answer

Response is giving // slashes at start - Taffy - ColdFusion

I have setup my first REST API and I am new to using the Taffy framework. I have a site which is working on ColdFusion 10, IIS and using ColdBox. I have setup a hello world example in a directory. I am getting // two slashes in the response. Here…
Abdul Rauf
  • 763
  • 2
  • 8
  • 28
4
votes
1 answer

v-card-media with base64 image

I am creating a captcha image in ColdFusion and returning it as a REST feed with Taffy. It is then shown in Vuetify ColdFusion / Taffy code component extends="taffy.core.resource" taffy_uri="/captcha" { function get() hint="Sends one…
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
3
votes
0 answers

Time formatting issue in coldfusion

I am using Taffy framework for creating api endpoints. In one of my endpoint I need to display time in particular format say hh:mm:ss, I used timeformat method in CFC file to get the desired result, but when I hit the endpoint I am getting January,…
3
votes
2 answers

Getting a 404 when trying to use the taffy RESTful API framework on ColdFusion 8/Windows Server 2003/IIS6

I have been tasked with creating an API for our ColdFusion 8 based CMS system. After doing some research I decided that a RESTful API would be the best bet for three reasons: Its down right simple to use Fairly easy to implement Excellent long term…
2
votes
1 answer

Get query params/string from ColdFusion request

I can't get query params inside ColdFusion component. I tried to use: cgi.QUERY_STRING arguments All empty I have a component:
Melixion
  • 457
  • 1
  • 5
  • 17
2
votes
1 answer

Config issue of Taffy in Lucee

I am new to Taffy API framework. Trying to run the examples with Lucee but I get this error invalid component definition, can't find component [resources.throwsException] But it works all fine with ColdFusion. May I miss something that it's very…
Oliver
  • 21
  • 2
2
votes
1 answer

a query string into a structure

I am using taffy and am passing an unknown query string to a function. I do not know the query string values passed in advance, so I am trying to use that in the function but it is not working. Please point me to right direction. Here is my code:…
JJK
  • 77
  • 4
2
votes
0 answers

CORS not working while passing data via POST form fields

I'm creating simple API using coldfusion taffy framework. I've enabled the CORS in my app settings even though I'm getting a "CORS preflight channel did not succeed" issue while calling the POST method. But I found something it's strange to me. When…
2
votes
1 answer

Can a rest component access the application scope?

As per the title - Can a rest component in ColdFusion, access the Application scope? My initial testing seems to indicate that it cannot, however it most certainly can in Railo/Lucee - so I'm wondering if perhaps I'm doing something wrong? Certainly…
Gary Stanton
  • 1,435
  • 12
  • 28
1
vote
0 answers

taffy using customserializer

i can find how the custom serializer is used in taffy, i have one CFC named as contact.cfc which is extending taffy.core.resource and the resource.cfc does not have getasjson method nor it is extending any component. i declared ii application…
Jim
  • 49
  • 4
1
vote
1 answer

taffy authentication using a key

using this code for taffy authentication function onTaffyRequest(verb, cfc, requestArguments, mimeExt, headers, methodMetadata, matchedURI) { local.status = {Status:'Forbidden'}; local.invalidReturnData =…
1
vote
0 answers

Authentication with taffy

This is Something I am trying my head around but I am not sure why I am not able to grasp this thing. I am reading articles and wiki of taffy but somehow I am getting it. Like this:…
JJK
  • 77
  • 4
1
vote
0 answers

Taffy API framework Patch verb not working in lucee

I've created a taffy API endpoint in patch verb I would run the explore to throw the below error Patch verb working stable in ACF but not working in lucee MY lucee version -> Lucee 4.5.4.017 final Any one let me know how to fix that…
Arunkumar
  • 1,705
  • 1
  • 17
  • 25
1
vote
3 answers

Socket.io some emmits doesn't trigger while others do

I've been trying to get familiarized with socket.io so use it in a real time app. I went through the basic example, a chat room, then I used ngrok to do a test with more than one client and it's all good. Now I'm looking to use TAFFY to save a log…
Luis L
  • 13
  • 5
1
2