Tag: http
REST easy with kbmMW #21 – Delphi client stubs
In previous blog post, I mentioned that the new stub generator framework had the features needed to also generate Delphi client stubs, to make it…
340 total views, 2 views today
REST easy with kbmMW #20 – OpenAPI and Swagger UI
The upcoming kbmMW update which were supposed to be a minor bug-fix update, will however also contain a new major feature. A client stub generator…
697 total views, 5 views today
REST easy with kbmMW #19 – HTTP – Headers and cookies
kbmMW contains some nice features to get easy access to a headers and cookies. For example via attributes:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
[kbmMW_Service('name:SMARTDEMO')] [kbmMW_Rest('path:/myserver')] TMyService = class(TkbmMWCustomHTTPSmartService) public [kbmMW_Rest('method:get, path: "echoheader", responseMimeType:"text/plain"')] function EchoHeader([kbmMW_Arg(mwatHeader,'Accept')] const AHeaderValue:string):string; [kbmMW_Rest('method:get, path: "echocookie", responseMimeType:"text/plain"')] function EchoCookie([kbmMW_Arg(mwatCookie,'MyCookie')] const ACookieValue:string):string; end; ... function TkbmMWCustomService2.EchoHeader(const AHeaderValue:string):string; begin Result:=AHeaderValue; end; function TkbmMWCustomService2.EchoCookie(const ACookieValue:string):string; begin Result:=ACookieValue; end; |
In the above example, accessing the…
429 total views, 4 views today
REST easy with kbmMW #15 – Handling HTTP POST
Intro Ive been asked questions about how to handle POST via kbmMW’s smart service based REST. This blog post explains the typical POST variations, and…
92 total views, no views today
Recent Comments