|
Smalltalk/X WebserverDocumentation of class 'HTTPSimpleJSONRestService': |
|
|
Class: HTTPSimpleJSONRestServiceInheritance:Object | +--HTTPService | +--HTTPRestService | +--HTTPSimpleJSONRestService
Description:
Abstract superclass for JSON based Rest services.
This answers with a method's return value.
Callable methods are automatically detected by their 'RestCallEntry:' annotation.
See concrete subclasses on how call entries are defined (via the annotation).
Also provides a common 'protocolInfo' entry, which allows querying the supported entries.
[start Server with:]
HTTPServer startServerOnPort:9876
[request:]
(HTTPServer runningServerOnPort:9876) debugErrors:true.
|data|
data := HTTPInterface getFile:'localHost:9876/rest/protocolInfo'.
data := JSONReader fromJSON:data.
Transcript showCR:data
[instance variables:]
[class variables:]
Related information:Instance protocol:call entries
Private classes:
RestCallAnnotation
Demonstration:
|
|
|
ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 17 Dec 2025 10:03:23 GMT
|