Sample files should be located in the repositories database-folder and have the file-extension .sql
There is no need to name the file-extension in ?samples=<samplefile>. This is optional. The backend will split the parameters content and extract the filename without its extension and map it to right path and extension to avoid code injections.
Initiate Database
CREATE TABLES:
http://[::]:3000/init
CREATE TABLES, INSERT SAMPLES:http://[::]:3000/init?samples=<samplefile>
Reset Database
DROP, CREATE TABLES:
http://[::]:3000/reset
DROP, CREATE TABLES, INSERT SAMPLES:http://[::]:3000/reset?samples=<samplefile>
Sample files: Terms of use
database
-folder and have the file-extension.sql
?samples=<samplefile>
. This is optional. The backend will split the parameters content and extract the filename without its extension and map it to right path and extension to avoid code injections.