Skip to content

Instantly share code, notes, and snippets.

View acclaim-tech's full-sized avatar

Vladimir acclaim-tech

  • Vancouver BC
View GitHub Profile
@acclaim-tech
acclaim-tech / package.json
Created November 7, 2017 18:10
simple serverless plugin to notify Slack channel about deployment
{
"name": "serverless-aci-slack-plugin",
"version": "1.0.0",
"description": "A plugin to notify slack channel when deployment is complete",
"author": "VB",
"license": "MIT",
"dependencies": {
"superagent": "^3.6.3",
"superagent-proxy": "^1.0.2",
"superagent-retry": "^0.6.0"
@acclaim-tech
acclaim-tech / handler.js
Created November 4, 2017 05:56
Expose swagger json from API Gateway lambda
module.exports.getDocs = function(event, context, callback) {
let options = {
swaggerDefinition: {
info: { // API informations (required)
title: 'API Gateway project', // Title (required)
version: '1.0.0', // Version (required)
description: 'Set of API endpoints exposed via API Gateway', // Description (optional)
},
host: 'localhost', // Host (optional)
basePath: '/', // Base path (optional),