CREATE OR REPLACE TABLE RESTAPI.API_ENDPOINTS FOR SYSTEM NAME API_E00001 ( 
	APPVER VARCHAR(10) CCSID 37 NOT NULL , 
	APPNAME VARCHAR(128) CCSID 37 NOT NULL , 
	APPFUNC VARCHAR(128) CCSID 37 NOT NULL , 
	PATH_TEMPLATE FOR COLUMN PATH_00001 VARCHAR(512) CCSID 37 NOT NULL , 
	HTTP_METHOD FOR COLUMN HTTP_00001 VARCHAR(8) ALLOCATE(4) CCSID 37 NOT NULL	DEFAULT 'POST' , 
	CONSUMES VARCHAR(64) ALLOCATE(3) CCSID 37 NOT NULL DEFAULT '*/*' , 
	PRODUCES VARCHAR(64) ALLOCATE(16) CCSID 37 NOT NULL DEFAULT 'application/json'	, 
	SUCCESS_CODE FOR COLUMN SUCCE00001 VARCHAR(3) ALLOCATE(3) CCSID 37 NOT NULL	DEFAULT '200' , 
	"TAG" VARCHAR(64) ALLOCATE(9) CCSID 37 DEFAULT 'SailPoint' , 
	"SUMMARY" VARCHAR(256) CCSID 37 DEFAULT NULL , 
	DESCRIPTION FOR COLUMN DESCR00001 CLOB(32768) CCSID 37 DEFAULT NULL , 
	ENABLED CHAR(1) CCSID 37 NOT NULL DEFAULT 'Y' , 
	CONSTRAINT RESTAPI.Q_RESTAPI_API_E00001_APPVER_00001 PRIMARY KEY( APPVER ,	APPNAME , APPFUNC ) )   
	  
	RCDFMT API_E00001 ; 

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

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

