You must be
authorized to access SYSIBM.DSNSERVICE. You can use the following statement to grant
access:
GRANT SELECT ON TABLE SYSIBM.DSNSERVICE TO PUBLIC;
PUBLIC
is site-specific.
Procedure
To create a Db2 REST
service:
On the DB2 Administration Menu (ADB2)
panel, specify option 1, and press
Enter.
On the System Catalog (ADB21)
panel, specify option RS, and
press Enter.
If no REST services
exist, the Create Rest Service
(ADB21RSB) panel is displayed. Skip to step 4.
If REST services exist, the REST Services (ADB21RS)
panel is displayed with information about any
existing REST services:
Tip: If the name,
collection, or version of your rest service will have lowercase characters
or special characters, specify the CAPS OFF primary command on this panel
before preceding to the next step.
Specify the CRE or B line command, and
press
Enter.
On the Bind Rest Service (ADB21RSB)
panel or Create Rest Service
(ADB21RSB) panel, specify the appropriate BIND options and press
Enter:
Note: The title of panel ADB21RSB can be either Bind
Rest Service or Create Rest Service, depending on the line
command that you used to display this panel.
On the Edit Statement (ADB2PRED)
panel, enter the SQL statement that you want in the
service, and press End (PF3).
After you create the service,
issue the REF command on the REST Services (ADB21RS)
panel to refresh the list and see your new service.