This sample demonstrates the use of the Web Services REST AP in a single-threaded application.
See instructions here on how to build this and other samples on your development platform. Once built, the sample can be run from the
\target\bin
directory:24_rest_st.exeBut it is more instructive to run it in your development environment debugger, stepping through the code.
The
24_rest_st
application loads sample data into a local in-memory database then: creates a REST server instance, adds and initializes theapi/db
service, and runs a loop accepting client requests. The application waits 5 seconds for requests and terminates if no request is received.To view the REST response run the Python client from
\samples\native\core\24-rest
directory:python restclient.py(See page Python Samples for instruction on running Python samples.)