# @janiscommerce/sls-api-save

> An integration handler for Serverless and JANIS Views API Save

Latest version **2.0.0** (published 2019-07-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install @janiscommerce/sls-api-save
pnpm add @janiscommerce/sls-api-save
yarn add @janiscommerce/sls-api-save
bun add @janiscommerce/sls-api-save
```

## 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 | 2.0.0 |
| Published | 2019-07-18 |
| First published | 2019-06-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Janis |
| Maintainers | janiscommerce |

## Links

- npm: https://www.npmjs.com/package/@janiscommerce/sls-api-save
- Repository: https://github.com/janis-commerce/sls-api-save
- Homepage: https://github.com/janis-commerce/sls-api-save#readme
- Issues: https://github.com/janis-commerce/sls-api-save/issues
- npm.io page: https://npm.io/package/@janiscommerce/sls-api-save

## Dependencies (2)

- [@janiscommerce/api-view](https://npm.io/package/@janiscommerce/api-view.md) ^1.3.0
- [@janiscommerce/sls-api-response](https://npm.io/package/@janiscommerce/sls-api-response.md) ^1.1.1

## Recent versions

- 2.0.0 (latest) — 2019-07-18
- 1.0.2 — 2019-07-01
- 1.0.1 — 2019-07-01
- 1.0.0 — 2019-06-26

## README

# Serverless API Save

[![Build Status](https://travis-ci.org/janis-commerce/sls-api-save.svg?branch=master)](https://travis-ci.org/janis-commerce/sls-api-save)
[![Coverage Status](https://coveralls.io/repos/github/janis-commerce/sls-api-save/badge.svg?branch=master)](https://coveralls.io/github/janis-commerce/sls-api-save?branch=master)

An integration handler for Serverless and JANIS Views API Save

# Installation

```
npm install @janiscommerce/sls-api-save
```

# Usage

- API Save Data
```js
'use strict';

const { SlsApiSaveData } = require('@janiscommerce/sls-api-save');

module.exports.handler = (...args) => SlsApiSaveData.handler(...args);
```


# Function minimal configuration

```yml
functions:
  ViewsSaveCreateApi:
    handler: path/to/your.handler
    events:
      - http:
          integration: lambda
          path: view/{entity}/save/data
          method: POST
          request:
            parameters:
              paths:
                entity: true

  ViewsSaveEditApi:
    handler: path/to/your.handler
    events:
      - http:
          integration: lambda
          path: view/{entity}/save/data/{entityId}
          method: PUT
          request:
            parameters:
              paths:
                entity: true
                entityId: true
```

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