# 24-rest_st

> This sample demonstrates the use of the Web Services REST AP in a single-threaded application.

### How to Run

> 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.exe

> But 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 the `api/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

> Related Topics(See page Python Samples for instruction on running Python samples.)