Modifying URLs on a Rest Server in Delphi -
i've written rest server in delphi xe (using wizard) , want change urls bit instead of having http://192.168.1.84:8080/datasnap/rest/tservermethods1/getlistings looks more http://192.168.1.84:8080/getlistings
is there nice easy of doing this?
the naming convention (delphi xe3):
http://my.site.com/datasnap/rest/uriclassname/urimethodname[/inputparameter]
you can change "datasnap" , "rest" part of url in tdshttpwebdispatcher component properties. can change class name , method name of url changing name of class , method. however, still have have 4 components url, example be:
http://my.site.com/api/v1/people/listing
see here:
http://docwiki.embarcadero.com/radstudio/xe3/en/rest#customizing_the_url_for_rest_requests
Comments
Post a Comment