This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "jptarquino.postgresql", | |
"uuid": "da398f66-953d-4be6-adcd-e4344b5ccdec", | |
"name": "postgresql", | |
"publisher": "jptarquino", | |
"version": "0.0.2" | |
}, | |
{ | |
"id": "zignd.html-css-class-completion", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as AWS from "aws-sdk"; | |
AWS.config.region = "us-east-1"; | |
export const getExport = async (restApiId: string) => { | |
const apiGateway = new AWS.APIGateway(); | |
const parameters = { | |
exportType: "oas30", | |
restApiId, | |
stageName: "v1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express from "express"; | |
import * as handlers from "./express-handler"; | |
import { connector } from "swagger-routes-express"; | |
import { apis, apiKeys } from "./constants"; | |
import { getExport } from "./api-gateway"; | |
import { setOperationIds } from "./utils"; | |
import { ApiDefinition } from "./types"; | |
const makeApp = (): express.Express => { | |
const app = express(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Request, Response } from "express"; | |
import { Lambdas, LambdaMap } from "./types"; | |
/** | |
* Converts an uri with colon-based parameters to brackets-based parameters | |
* - i.e (:username to {username}) | |
* @param path The url to map | |
*/ | |
const mapPathToApiGateway = (path: string) => path.replace(/:(.+?)\b/g, "{$1}"); |