ColdFusion MVC structures and RESTful service mismatch?

Most CF MVC frameworks use the front controller pattern. Typically, the Search Engine Safe (SES) plugin along with Rewrite URLs is used to create friendly URLs. However, when it comes to implementing RESTful services, using the MVC framework seems like a layer of complexity added on top of another level of complexity.

How to tame this beast? Any good and clean approach to supporting RESTful services with ColdFusion? Any MVC framework that can easily provide RESTful services?

thank

+3
source share
7 answers

. PowerNap, , , . - , index.cfm( url), - RESTful. PowerNap, FW/1.

, . ; , 1.0. GitHub.

8/23/2010: 1.0!:)

+1

ColdBox URL- RESTful. 3.0 HTTP- . : http://blog.coldbox.org/post.cfm/coldbox-rest-enabled-urls

HTTP- :

component{

    this.allowedMethods = {
        LIST = "GET",
        SAVE = "POST,PUT"
    };
}
+3

Powernap (http://powernap.riaforge.com) - RESTful. MVC-, , , .

+2

PowerNap , , , ( API ). RESTfulCF: -, MVC, ( ), overkill.

RESTfulCF () White Label Dating, , API, , .

+2

MVC Fowler PageController REST. http. GET, PUT, POST, DELETE.

. , MVC, , . . , .

+1

Quicksilver ! http://quicksilver.riaforge.org/

/**
* @url /hello/{text}
* @httpMethod GET
*/
public String function saySomething(required String text) {
return "Hello " & arguments.text;
}

URL:

index.cfm/hello/developer
0

- Taffy (https://github.com/atuttle/Taffy). CFC URI HTTP, (GET, PUT, DELETE ..).

<cfcomponent extends="taffy.core.resource" output="false"
             taffy_uri="/user/{userID}/stuff/{stuffID}/property/{propertyID}">

    <cffunction name="get" access="public" output="false">
            ...
    </cffunction>

    <cffunction name="post" access="public" output="false">
            ...
    </cffunction>

    <cffunction name="delete" access="public" output="false">
            ...
    </cffunction>
</cfcomponent>
0

Source: https://habr.com/ru/post/1748083/


All Articles