@alphatango/openapi
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

AT Squad OpenAPI Wrapper

A wrapper around Open API with logging and error handling.

Using this library

Install the library.

yarn add @alphatango/openapi
import { OpenApiWrapper } from '@alphatango/openapi';

const { api, getUserPrincipal, getRequestId, getUserToken } = new OpenApiWrapper(requestLogger);

api.get('/livecheck', () => {
  statusCode: 200;
});
api.any('/{proxy+}', () => {
  statusCode: 404;
});

export const lambdaHandler = api.handler;

Contribution

We value your input as part of direct feedback to us, by filing issues, or by directly contributing improvements:

  1. Fork this repository
  2. Create a branch
  3. Contribute
  4. Pull request

/@alphatango/openapi/

    Package Sidebar

    Install

    npm i @alphatango/openapi

    Weekly Downloads

    0

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    10.1 kB

    Total Files

    13

    Last publish

    Collaborators

    • dboerlage
    • wparad
    • thoean
    • alphatango-deploy
    • akincel