|
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:]
Related information:Class protocol:instance creationInstance protocol:accessing calling
|
|
|
ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 17 Dec 2025 06:26:55 GMT
|