[Glass] REST first steps

BrunoBB smalltalk at adinet.com.uy
Thu May 1 17:44:50 PDT 2014


Hi,
(i'm using JADE client)

Yes, i think i have loaded incorrect version packages.

GemStone version: 3.1.04
Seaside (ConfigurationOfSeaside30): 
 (from http://seaside.gemstone.com/ss/Seaside30)
   + Seaside-Core-gemstone: dkh.769 
   + Seaside-GemStone300-Core: DaleHenrichs.4 
   + Seaside-Gemstone-Core: dkh.63 
 (from http://www.squeaksource.com/Seaside30Addons)
   + Seaside-GemStone-REST-Core: topa.2 

Any other info that you may need ?

WAOrbeonServiceHandler (subclass of WARestfulHandler):
createRoutes
	^ WAPragmaBasedRouteBuilder createRoutesFor: self class
list
	<get>
	self requestContext respond: [ :response |
         response contentType: 'text/plain'.
         response
            nextPutAll: 'TEST';
            nextPutAll: String crlf ]

WAOrbeonPragmaServiceHandler (subclass of WAPragmaBasedRestfulHandler):
list
	<get>
	self requestContext respond: [ :response |
         response contentType: 'text/plain'.
         response
            nextPutAll: 'TEST';
            nextPutAll: String crlf ]

Regards,
Bruno



--
View this message in context: http://forum.world.st/REST-first-steps-tp4757521p4757536.html
Sent from the GLASS mailing list archive at Nabble.com.


More information about the Glass mailing list