3.0.0 • Published 4 years ago
@datafire/extendsclass_json_storage v3.0.0
@datafire/extendsclass_json_storage
Client library for JSON storage
Installation and Usage
npm install --save @datafire/extendsclass_json_storage
let extendsclass_json_storage = require('@datafire/extendsclass_json_storage').create();
.then(data => {
console.log(data);
});
Description
JSON storage API
Actions
bin.post
Create a json bin
extendsclass_json_storage.bin.post(null, context)
Input
This action has no parameters
Output
- output CreateStatus
bin.id.delete
Delete a json bin
extendsclass_json_storage.bin.id.delete({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output DeleteStatus
bin.id.get
Return a json bin
extendsclass_json_storage.bin.id.get({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output
object
bin.id.patch
Partially update a json bin with JSON Merge Patch
extendsclass_json_storage.bin.id.patch({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output UpdateStatus
bin.id.put
Update a json bin
extendsclass_json_storage.bin.id.put({
"id": ""
}, context)
Input
- input
object
- id required
string
- id required
Output
- output UpdateStatus
Definitions
CreateStatus
- CreateStatus
object
- id
string
- status
integer
- uri
string
- id
DeleteStatus
- DeleteStatus
object
- status
integer
- status
Error
- Error
object
- message
string
- status
integer
- message
UpdateStatus
- UpdateStatus
object
- data
object
- status
integer
- data
3.0.0
4 years ago