tpsv grant priveledge, add curl scripts to test

This commit is contained in:
Paul Trowbridge 2018-05-29 15:37:57 -04:00
parent afb9136e30
commit 092b12a8ce
5 changed files with 5 additions and 0 deletions

View File

@ -25,6 +25,7 @@ CREATE ROLE api WITH
--grant schema USAGE
GRANT USAGE ON SCHEMA tps TO api;
GRANT USAGE ON SCHEMA tpsv TO api;
--grant current table privledges
GRANT SELECT, UPDATE, INSERT, DELETE ON ALL TABLES IN SCHEMA tps TO api;

View File

@ -0,0 +1 @@
curl -v -F upload=@./data.csv http://localhost:81/import?srce=dcard

View File

@ -0,0 +1 @@
curl -H "Content-Type: application/json" -X POST -d@./mapdef.json http://localhost:81/mapdef_set

View File

@ -0,0 +1 @@
curl -H "Content-Type: application/json" -X POST -d@./vals.json http://localhost:81/mapval_set

View File

@ -0,0 +1 @@
curl -H "Content-Type: application/json" -X POST -d@./srce.json http://localhost:81/srce_set