3.0.0 • Published 4 years ago

@datafire/extendsclass_json_storage v3.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

@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

bin.id.delete

Delete a json bin

extendsclass_json_storage.bin.id.delete({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

bin.id.get

Return a json bin

extendsclass_json_storage.bin.id.get({
  "id": ""
}, context)

Input

  • input object
    • id required string

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

Output

bin.id.put

Update a json bin

extendsclass_json_storage.bin.id.put({
  "id": ""
}, context)

Input

  • input object
    • id required string

Output

Definitions

CreateStatus

  • CreateStatus object
    • id string
    • status integer
    • uri string

DeleteStatus

  • DeleteStatus object
    • status integer

Error

  • Error object
    • message string
    • status integer

UpdateStatus

  • UpdateStatus object
    • data object
    • status integer