Talk:DataSnap REST

From RAD Studio
Jump to: navigation, search

"The mapping pattern can be overridden. The user can override the mapping for each type based on class name and method name parameters." - How? Documentation missing. Been searching the internet for this and it is pretty much a wild goose chase. --Andersa 05:58, 2 October 2012 (PDT)

Please see this discussion thread on the forums. I have found some possible ways to get more control over the url, for instance using class name aliases. The problem is that naming the url after the class will cause the url to always contain something like "TMyClass". This reveals implementation details, which is generally considered bad form. Also, I think the above comment in the documentation is meant to refer more to the mapping of HTTP GET/POST/PUT/DELETE to method names in the class, than it is meant to refer to general customization of the url. --Andersa (talk) 00:09, 17 October 2012 (PDT)

Response

Your question is well taken. One of our database writers will add this information and perhaps an example.

Many thanks for your contribution to the documentation -

Kris Houser Lead Writer, RAD Studio

RS-32669