1.0.1 • Published 5 years ago

@janiscommerce/sls-api-schema v1.0.1

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

Serverless API Schema

Build Status Coverage Status

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