2.1.0 • Published 3 years ago

@alphatango/openapi v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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
2.1.0

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago