CREATE OR REPLACE TABLE RESTAPI.ENDPOINTS ( 
	APPVER VARCHAR(10) CCSID 37 NOT NULL , 
	APPNAME VARCHAR(128) CCSID 37 NOT NULL , 
	APPFUNC VARCHAR(128) CCSID 37 NOT NULL , 
	HTTP_METHOD FOR COLUMN HTTP_00001 VARCHAR(10) ALLOCATE(4) CCSID 37 NOT NULL	DEFAULT 'POST' , 
	PATH_TEMPLATE FOR COLUMN PATH_00001 VARCHAR(512) CCSID 37 NOT NULL , 
	SUCCESS_CODE FOR COLUMN SUCCE00001 INTEGER NOT NULL DEFAULT 200 , 
	CONSUMES VARCHAR(128) ALLOCATE(3) CCSID 37 NOT NULL DEFAULT '*/*' , 
	PRODUCES VARCHAR(128) ALLOCATE(16) CCSID 37 NOT NULL DEFAULT	'application/json' , 
	CONSTRAINT RESTAPI.Q_RESTAPI_ENDPOINTS_APPVER_00001 PRIMARY KEY( APPVER ,	APPNAME , APPFUNC ) )   
	  
	RCDFMT ENDPOINTS  ; 

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

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

