Skip to content

Adding a regular queryString calling capability for all endpoints #116

@marbetschar

Description

@marbetschar

I feel like all Taffy endpoints should be callable with a regular query string such as the following:

https://api.taffy.com/v1/index.cfm?endpoint=/my/search&method=get&term=mySearch

The reason why is, due to the Java application server specification only one wildcard per SEO url-pattern can be used. That said, we have to add any kind of SEO which points not exactly to the webroot to the Tomcat server configuration (web.xml):

<url-pattern>/v1/index.cfm/*</url-pattern>
<url-pattern>/v2/index.cfm/*</url-pattern>
<url-pattern>/index.cfm/*</url-pattern>

In cases where Taffy is used as a standalone API these things may be setup manually. But we have some cases where Taffy just serves the need of some business logic which should be available externally (for example as part of a mura plugin). In these cases we don't have any environment control at all.

In ColdFusion 10 this works just fine, since Adobe has made modifications to Tomcats default behaviour to support backwards compatibility to JRun. On Railo Taffy doesn't run at all in this cases - due to Tomcat can't find any mapping present for the mura plugin URL :(

http://www.murasite.com/plugins/myplugin/api/index.cfm/my/search

Additionally if this capability gets added to Taffy, endpoints got triggerable from devices which may not support all HTTP verbs such as the following:

https://api.taffy.com/v1/my/search?method=put&term=mySearch

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions