# azurestoragebinder

> 1. *A binder REST service for Azure Storage APIs.These Binder APIs can be called from both Mobile and Web applications using corresponding client libraries.* 2. *Dockerfile is included which would help containerize the service and also can be used seamles

Latest version **1.2.0** (published 2019-01-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install azurestoragebinder
pnpm add azurestoragebinder
yarn add azurestoragebinder
bun add azurestoragebinder
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2019-01-13 |
| First published | 2018-06-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.9.3 |
| Dependencies | 7 |
| Unpacked size | 110 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Author | Monojit Datta |
| Maintainers | monojitnpm |
| Keywords | Azure, Storage, Queue, Blob, table |

## Links

- npm: https://www.npmjs.com/package/azurestoragebinder
- npm.io page: https://npm.io/package/azurestoragebinder

## Dependencies (7)

- [azure](https://npm.io/package/azure.md) ^2.3.1-preview
- [dotenv](https://npm.io/package/dotenv.md) ^6.2.0
- [express](https://npm.io/package/express.md) ^4.16.4
- [mongodb](https://npm.io/package/mongodb.md) ^3.1.10
- [documentdb](https://npm.io/package/documentdb.md) ^1.15.0
- [body-parser](https://npm.io/package/body-parser.md) ^1.18.3
- [stream-buffers](https://npm.io/package/stream-buffers.md) ^3.0.2

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2019-01-13
- 1.1.3 — 2018-09-23
- 1.1.2 — 2018-07-30
- 1.1.1 — 2018-07-30
- 1.1.0 — 2018-07-30
- 1.0.8 — 2018-07-21
- 1.0.7 — 2018-07-20
- 1.0.6 — 2018-07-20
- 1.0.5 — 2018-07-20
- 1.0.4 — 2018-07-20
- 1.0.3 — 2018-07-20
- 1.0.2 — 2018-07-20
- 1.0.1 — 2018-06-28

## README

# AzureStorageBinder
1. *A binder REST service for Azure Storage APIs.These Binder APIs can be called from both Mobile and Web applications using corresponding client libraries.*
2. *Dockerfile is included which would help containerize the service and also can be used seamlessly with Azure Container Registry or Docker Cloud or running locally. This would help in local testing and then hosting in Azure as Web API (or any other hosting services)*
3. *No need to send Storage account details as part of the request (although that option is open); these secured information can be in Azure Web API layer and service can read from process.env dictionary*
4. *Server host address is kept at 0.0.0.0 - so that it can be accesses from containerized hosting solutions like Docker Swarm*

# API Endpoints:
  
  ## Default
  
   **URL** - https://<host_server_details> <br/>
   **GET request body -**
    ```
    {
    }
    ```
  
  ## Table
1.  **URL** - https://<host_server_details>/table/create <br/>
    **PUT request body -**
    ```
    {
      "tablename" : <TABLE_NAME>
    }
    ```
    
2.  **URL** - https://<host_server_details>/table/delete <br/>
    **DELETE request body -**
    ```
    {
      "tablename" : <TABLE_NAME>
    }
    ```

3.  **URL**  - https://<host_server_details>/table/**row**/insert <br/>
    **PUT request body -**
    ```
    {
      "tablename" : <TABLE_NAME>,
      "entity" :
      {
          "PartitionKey" : <PARTITION_KEY>,
          "RowKey" : <ROW_KEY>,
          ... (OTHER FIELDS as per requirement)
      }
    }
    ```
4.  **URL** - https://<host_server_details>/table/delete <br/>
    **DELETE request body -**
    ```
    {
      "tablename" : <TABLE_NAME>,
      "entity" :
      {
          "PartitionKey" : <PARTITION_KEY>,
          "RowKey" : <ROW_KEY>
      }
    }
    ```
5.  **URL** - https://<host_server_details>/table/**rows**/insert <br/>
    **PUT request body -**
    ```
    {
      "tablename" : <TABLE_NAME>,
      "entity" :
      [{
          "PartitionKey" : <PARTITION_KEY>,
          "RowKey" : <ROW_KEY>,
          ... (Other Fields as per requirement)
          },
          ... (Other Entities)
      ]
    }
    ```
6.  **URL** - https://<host_server_details>/table/fetch <br/>
    **GET query parameters -**
    ```
    tablename=<TABKLE_NAME>&condition=<CONDITION>

    ```
7.  **URL** - https://<host_server_details>/table/row/update <br/>
    **POST request body -**
    ```
    {
      "tablename" : <TABLE_NAME>,
      "entity" :
      {
          "PartitionKey" : <PARTITION_KEY>,
          "RowKey" : <ROW_KEY>
      }
    }
    ``` 
    **POST query parameters -**
    ```
    force=<boolean>&merge=<boolean>&where=<CONDITION>

    ```

8.  **URL** - https://<host_server_details>/table/retrieve <br/>
    **GET request body -**
    ```
    tablename=<TABLE_NAME>&partitionkey=<PARTITION_KEY>&rowkey=<ROW_KEY>

    ```

 ## Blob
1.  **URL** - https://<host_server_details>/blob/container/create <br/>
    **PUT request body -**
    ```
    {
      "containername" : <CONTAINER_NAME>
    }
    ```
    
2.  **URL** - https://<host_server_details>/blob/container/delete <br/>
    **DELETE request body -**
    ```
    {
      "containername" : <CONTAINER_NAME>
    }
    ```
3.  **URL** - https://<host_server_details>/blob/upload <br/>
    **POST request body -**
    ```
    {
      "containername" : <CONTAINER_NAME>,
      "blobname" : <BLOB_NAME>
    }
    ```
4.  **URL** - https://<host_server_details>/blob/download <br/>
    **POST request body -**
    ```
    {
      "containername" : <CONTAINER_NAME>,
      "blobname" : <BLOB_NAME>
    }
    ```
5.  **URL** - https://<host_server_details>/blob/delete <br/>
    **DELETE request body -**
    ```
    {
      "containername" : <CONTAINER_NAME>,
      "blobname" : <BLOB_NAME>
    }
    ```

## Queue
1.  **URL** - https://<host_server_details>/queue/create <br/>
    **PUT request body -**
    ```
    {
      "queuename" : <QUEUE_NAME>
    }
    ```
    
2.  **URL** - https://<host_server_details>/queue/delete <br/>
    **DELETE request body -**
    ```
    {
      "queuename" : <QUEUE_NAME>
      
    }
    ```
    
3.  **URL** - https://<host_server_details>/queue/message/add <br/>
    **PUT request body -**
    ```
    {
      "queuename" : <QUEUE_NAME>,
      "message" : <MESSAGE>
      
    }
    ```
    
4.  **URL** - https://<host_server_details>/queue/message/delete <br/>
    **DELETE request body -**
    ```
    {
      "queuename" : <QUEUE_NAME>,
      "messageid" : <MESSAGE_ID>,
      "popreceipt" : <POP_RECEIPT_NUMBER>
      
    }
    ```
5.  **URL** - https://<host_server_details>/queue/**message**/ <br/>
    **POST request body -**
    ```
    {
      "queuename" : <QUEUE_NAME>
      
    }
    ```

6.  **URL** - https://<host_server_details>/queue/**messages/all** <br/>
    **POST request body -**
    ```
    {
      "queuename" : <QUEUE_NAME>
      
    }
    ``` 
    
7.  **URL** - https://<host_server_details>/queue/message/update <br/>
    **POST request body -**
    ```
    {
      "queuename" : <QUEUE_NAME>,
      "popreceipt" : <POP_RECEIPT_NUMBER>,
      "updatemessage" :
      {
          "messageText" : <MESSAGE_TEXT_TEXT>
      }
    }
    ``` 
    
 8. **URL** - https://<host_server_details>/queue/dequeue <br/>
    **POST request body -**
    ```
    {
      "queuename" : <QUEUE_NAME>
    }
    ``` 
    
 9. **URL** - https://<host_server_details>/queue/dequeue/all <br/>
    **POST request body -**
    ```
    {
      "queuename" : <QUEUE_NAME>
    }
    ```

---
_Source: https://npm.io/package/azurestoragebinder · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
