directus-sdk-javascript
Advanced tools
Comparing version 3.0.0-1 to 3.0.0-2
{ | ||
"name": "directus-sdk-javascript", | ||
"version": "3.0.0-1", | ||
"version": "3.0.0-2", | ||
"description": "WIP - Directus SDK for JavaScript (Node and Browser)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -91,6 +91,10 @@ const axios = require('axios'); | ||
_getInterface(uiName) { | ||
return this._get(`interfaces/${uiName}.js`); | ||
} | ||
// Items | ||
// --------------------------------------------------------------------------- | ||
getItems(table = requiredParam('table'), params = {}) { | ||
return this._get(`items/${table}/`, params); | ||
return this._get(`items/${table}`, params); | ||
} | ||
@@ -105,4 +109,8 @@ | ||
getTables(params = {}) { | ||
return this._post('tables', params); | ||
return this._get('tables', params); | ||
} | ||
getTable(table = requiredParam('table'), params = {}) { | ||
return this._get(`tables/${table}`, params); | ||
} | ||
} | ||
@@ -109,0 +117,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39678
99