|
Class: HTTPDemoRestService
Object
|
+--HTTPService
|
+--HTTPRestService
|
+--HTTPDemoRestService
- Package:
- stx:goodies/webServer
- Category:
- Net-Communication-Rest
- Version:
- rev:
1.5
date: 2021/01/20 15:30:18
- user: cg
- file: HTTPDemoRestService.st directory: goodies/webServer
- module: stx stc-classLibrary: webServer
A very simple Rest service, which answers with a method's source code.
[start Server with:]
HTTPServer startServerOnPort:8080
[request:]
HTTPInterface getFile:'localHost:8080/source/Object/class'
HTTPInterface getFile:'localHost:8080/source/Object class/documentation'
[instance variables:]
[class variables:]
copyrightCOPYRIGHT (c) 2015 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
request handling
-
process: aRequest
-
handles requests of the form:
<baseUrl>/class name/selector
and returns the source code of that method as a JSON encoded object
-
processGET: aRequest
-
handles requests of the form:
<baseUrl>/class name/selector
and returns the source code of that method as a JSON encoded object
|