1.0.1 • Published 5 years ago
@janiscommerce/sls-api-schema v1.0.1
Serverless API Schema
An integration handler for Serverless and JANIS Views API Schema
Installation
npm install @janiscommerce/sls-api-schema
Usage
'use strict';
const { SlsApiSchema } = require('@janiscommerce/sls-api-schema');
module.exports.handler = (...args) => SlsApiSchema.handler(...args);
Function minimal configuration
functions:
handler: path/to/your.handler
events:
- http:
integration: lambda
path: view/{entity}/{action}/schema
method: GET
package:
include:
- path/to/view-schemas/**
request:
parameters:
paths:
entity: true
action: true