storage API
Create
create a new project labeled as specified by projectName ( if not exists ).
await storageInterface.create("test");// logs {name:"test",schema:{}}
Parameters
- projectName
- string - name of the project
Return Value
A Promise that resolve to a JSON object structured as follows
- name
- string- name of the project created
- schema
- JSON object tilepiece directory representation as follows:
- directory1/directory
- {}
- directory1/file.txt
- directory1/file.txt
Description
This method is responsible for creating a tilepieces project.
After this method is called, the domain will respond with files present within the project path (with the exclusion of the 'tilepiece' application path).
The other methods use the path of the last created project as the root for their operations.