2.0.0 • Published 5 years ago

@janiscommerce/sls-api-browse v2.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

sls-api-browse

Build Status Coverage Status

An integration handler for Serverless and JANIS Views API Browse

Installation

npm install @janiscommerce/sls-api-browse

Usage

  • API Browse Data
'use strict';

const { SlsApiBrowseData } = require('@janiscommerce/sls-api-browse');

module.exports.handler = (...args) => SlsApiBrowseData.handler(...args);
  • API Browse Filters
'use strict';

const { SlsApiBrowseFilters } = require('@janiscommerce/sls-api-browse');

module.exports = SlsApiBrowseFilters.handler;

Function minimal configuration

functions:
  handler: path/to/your.handler
  events:
    - http:
        integration: lambda
        path: view/{entity}/browse/data
        method: GET
        request:
          parameters:
            paths:
              entity: true