Skip to content

Commit

Permalink
Merge pull request #114 from tobiaslohr/doc-update-for-data-uploads
Browse files Browse the repository at this point in the history
Updated docs to reflect capabilities of data:upload
  • Loading branch information
tobiaslohr authored Mar 25, 2020
2 parents 2a38f4d + 38e8ac3 commit b929bef
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 2 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,30 @@ Use the following snippet as your client's permission set, replace `my_client_id
"operations": [
"read_write"
]
},
{
"path": "/static",
"operations": [
"read_write"
]
},
{
"path": "/catalogs/<your-catalog-id>",
"operations": [
"read_write"
]
},
{
"path": "/libraries/<your-library-id>",
"operations": [
"read_write"
]
},
{
"path": "/dynamic/<your-site-id>",
"operations": [
"read_write"
]
}
]
}
Expand Down
4 changes: 3 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ program
console.log(' The file may include a path to the actual location where the file resides locally.');
console.log(' The provided --target <target> is relative to /webdav/Sites/, e.g. "impex/src/upload".');
console.log();
console.log(' Currently supported top level --target is "impex".');
console.log(' Supported top level --target are "impex", "static", "catalogs", "libraries" and "dynamic".');
console.log(' In order to use "catalogs", "libraries" and "dynamic" you have to set API permissions for');
console.log(' a specific catalog, library or dynamic folder in WebDAV Client Permissions.');
console.log();
console.log(' Examples:');
console.log();
Expand Down
3 changes: 2 additions & 1 deletion lib/sandbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ const SANDBOX_OCAPI_SETTINGS = [{ client_id: "CLIENTID",
const SANDBOX_WEBDAV_PERMISSIONS = [{ client_id: "CLIENTID",
permissions: [
{ path: "/impex", operations: ["read_write"] },
{ path: "/cartridges", operations: ["read_write"] }
{ path: "/cartridges", operations: ["read_write"] },
{ path: "/static", operations: ["read_write"] }
]
}];

Expand Down

0 comments on commit b929bef

Please sign in to comment.