Stateless REST API calls

26 views
Skip to first unread message

Teemu Simolin

unread,
Apr 22, 2015, 2:41:20 AM4/22/15
to openlega...@googlegroups.com
Hi,

How to use the REST API in stateless manner so that each call is fully independent and does not require client to maintain session state between calls?

Best,

Teemu

Roi Mor

unread,
Apr 22, 2015, 4:22:01 AM4/22/15
to openlega...@googlegroups.com
Teemu,

This is not supported in REST API, only Restful services, which uses connection pooling.
Restful services are not fully functional yet, but provide a good generated code skeleton.
Currently has some compile issues with the generated code.

Teemu Simolin

unread,
Apr 22, 2015, 4:41:00 AM4/22/15
to openlega...@googlegroups.com
OK, thanks for the information. However, I just wonder if login and logoff calls could be added to a generated REST contoller?

Roi Mor

unread,
Apr 22, 2015, 6:28:36 AM4/22/15
to openlega...@googlegroups.com
You can customize the generated controller manually.
It's not considered efficient to skip login/logoff without session pooling, as each request will open a new session, and leave it open until Web session timeout.
Reply all
Reply to author
Forward
0 new messages