eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTTPDemoRestService':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: HTTPDemoRestService


Inheritance:

   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

Description:


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:]

copyright

COPYRIGHT (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.

Instance protocol:

request handling
o  process: aRequest
handles requests of the form:
<baseUrl>/class name/selector
and returns the source code of that method as a JSON encoded object

o  processGET: aRequest
handles requests of the form:
<baseUrl>/class name/selector
and returns the source code of that method as a JSON encoded object



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Thu, 21 Nov 2024 13:26:26 GMT