Activating and initializing REST capability
Before application programmers can create REST services, you need to activate and initialize the REST capability.
To initialize the REST capability and set up the REST server metadata, issue the following commands in the order shown:
docker exec containername /opt/ibm/dbrest/scripts/db2rest-stop.sh docker exec containername /opt/ibm/dbrest/scripts/db2rest-setup.sh hostname dbname port isSSLConnection schema username password docker exec containername /opt/ibm/dbrest/scripts/db2rest-start.sh sslKeystorePath sslKeystashPath
Alternatively, you can call the
setup_metadataREST API as described in Defining a REST SQL service.
Note: Once the REST server has been started, you can view the API documentation by accessing