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.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 19 Mar 2024 09:41:27 GMT
|