@janiscommerce/sls-api-browse
v2.0.0
Published
An integration handler for Serverless and JANIS Views API Browse
Downloads
12
Readme
sls-api-browse
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