Smalltalk/X WebserverDocumentation of class 'HTTPSimpleJSONRestClient': | |
Class: HTTPSimpleJSONRestClientInheritance:Object | +--HTTPSimpleJSONRestClient
Description:Abstract superclass for JSON based Rest service clients. This passes arguments as JSON post-data. Callable methods can be automatically detected via the protocolInfo rest call, if the partner is an ST/X based rest service. See concrete subclasses on how the call interface works. [start Server with:] HTTPServer startServerOnPort:9876 [start a Demo Service with:] (HTTPSimpleJSONRestDemoService new) linkName:'/rest'; registerServiceOn:(HTTPServer serverOnPort:9876) [request:] |client| client := self newForURL:'localHost:9876/rest'. (client call:'protocolInfo') inspect. (client call:'string') inspect. [instance variables:] [class variables:] Class protocol:instance creationInstance protocol:accessing
|
|
ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Thu, 21 Nov 2024 12:49:57 GMT |