A very simple API example for GemStone/S.
First, you should install gsApplicationTools.
Then, from the tODE shell:
project entry --baseline=MyApi --repo=github://mumez/GemStoneSample-MyApi:main/repository /sys/local/server/projects
Register 'zinc' GemServer.
ZnNewGemServer register: 'zinc' on: #(9089 9088).
Now, you can set MyApi
as a delegate.
(GemServer gemServerNamed: 'zinc') delegate: MyApi new.
(GemServer gemServerNamed: 'zinc') restartGems.
- List messages
http://<yourHost>:9089/messages?topicId=<topicId>
- Add a message to a topic
http://<yourHost>:9089/addMessage?topicId=testTopic&message=hello
From the tODE shell:
browse class MyApi
Enjoy!