Skip to content

Instantly share code, notes, and snippets.

@vladholubiev
Created December 28, 2019 00:17
Show Gist options
  • Select an option

  • Save vladholubiev/77881dce9f2f0d2a668b505fb13072c9 to your computer and use it in GitHub Desktop.

Select an option

Save vladholubiev/77881dce9f2f0d2a668b505fb13072c9 to your computer and use it in GitHub Desktop.
openapi: "3.0.1"
info:
title: "demo-test-verification"
version: "2019-12-27T23:52:02Z"
servers:
- url: "https://xxx.execute-api.us-east-1.amazonaws.com/{basePath}"
variables:
basePath:
default: "/prod"
paths:
/:
get:
responses:
200:
description: "200 response"
content:
text/plain:
schema:
$ref: "#/components/schemas/Text"
x-amazon-apigateway-integration:
responses:
default:
statusCode: "200"
responseTemplates:
text/plain: "hello world\n"
passthroughBehavior: "when_no_match"
requestTemplates:
application/json: "{\"statusCode\": 200}"
type: "mock"
components:
schemas:
Text:
title: "Empty Text Schema"
type: "object"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment