@janiscommerce/sls-api-schema

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @janiscommerce/sls-api-schema

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

3.42 kB

Total Files

6

Last publish

Collaborators

  • janiscommerce