CREATE OR REPLACE TABLE RESTAPI.API_CONFIG ( 
	APPVER VARCHAR(2) ALLOCATE(2) CCSID 37 DEFAULT NULL , 
	APPNAME VARCHAR(20) ALLOCATE(20) CCSID 37 DEFAULT NULL , 
	APPFUNC VARCHAR(128) ALLOCATE(100) CCSID 37 DEFAULT NULL , 
	FUNCMETHOD VARCHAR(10) ALLOCATE(10) CCSID 37 DEFAULT NULL , 
	FUNCDESCR VARCHAR(128) ALLOCATE(100) CCSID 37 DEFAULT NULL , 
	FUNCTAGS VARCHAR(5280) ALLOCATE(100) CCSID 37 DEFAULT NULL , 
	FUNCPARAMS VARCHAR(5280) ALLOCATE(100) CCSID 37 DEFAULT NULL , 
	FUNCERRORS VARCHAR(5280) ALLOCATE(100) CCSID 37 DEFAULT NULL , 
	SQLSTMT VARCHAR(3200) ALLOCATE(100) CCSID 37 DEFAULT NULL , 
	RESTCONSUMES FOR COLUMN RESTC00001 VARCHAR(100) ALLOCATE(16) CCSID 37 DEFAULT	'application/json' , 
	RESTPRODUCES FOR COLUMN RESTP00001 VARCHAR(100) ALLOCATE(16) CCSID 37 DEFAULT	'application/json' , 
	RESTURI VARCHAR(256) CCSID 37 DEFAULT NULL , 
	QUERYTYPE VARCHAR(20) ALLOCATE(14) CCSID 37 DEFAULT 'media-resource' , 
	HTTPSTATUSSUCCESS FOR COLUMN HTTPS00001 VARCHAR(10) ALLOCATE(3) CCSID 37	DEFAULT '200' , 
	HTTPSTATUSFAILURE FOR COLUMN HTTPS00002 VARCHAR(10) ALLOCATE(3) CCSID 37	DEFAULT '500' , 
	INPUTWRAPPER FOR COLUMN INPUT00001 VARCHAR(128) CCSID 37 DEFAULT NULL , 
	OUTPUTWRAPPER FOR COLUMN OUTPU00001 VARCHAR(128) CCSID 37 DEFAULT NULL , 
	WRAPINPUT VARCHAR(5) ALLOCATE(5) CCSID 37 DEFAULT 'false' , 
	WRAPOUTPUT VARCHAR(5) ALLOCATE(4) CCSID 37 DEFAULT 'true' , 
	TRIMMODE VARCHAR(10) ALLOCATE(9) CCSID 37 DEFAULT '*TRAILING' )   
	  
	RCDFMT API_CONFIG ; 

GRANT ALTER , DELETE , INDEX , INSERT , REFERENCES , SELECT , UPDATE   
ON RESTAPI.API_CONFIG TO AMAPICS WITH GRANT OPTION ; 

GRANT DELETE , INSERT , SELECT , UPDATE   
ON RESTAPI.API_CONFIG TO PUBLIC ; 

