Skip to content

Instantly share code, notes, and snippets.

@georgmao
Created December 21, 2017 20:44
Show Gist options
  • Save georgmao/0ca9c3c7a731144b7b3f6e921892a30d to your computer and use it in GitHub Desktop.
Save georgmao/0ca9c3c7a731144b7b3f6e921892a30d to your computer and use it in GitHub Desktop.
---
swagger: "2.0"
info:
version: "2017-12-20T14:48:08Z"
title: "swaggerMergeDemo"
host: "jdy6k2gmn1.execute-api.us-west-2.amazonaws.com"
basePath: "/test"
schemes:
- "https"
paths:
/api/team1:
get:
consumes:
- "application/json"
produces:
- "application/json"
responses:
200:
description: "200 response"
schema:
$ref: "#/definitions/Empty"
x-amazon-apigateway-integration:
responses:
default:
statusCode: "200"
requestTemplates:
application/json: "{\"statusCode\": 200}"
passthroughBehavior: "when_no_match"
type: "mock"
/api/team2:
post:
consumes:
- "application/json"
produces:
- "application/json"
responses:
200:
description: "200 response"
schema:
$ref: "#/definitions/Empty"
x-amazon-apigateway-integration:
responses:
default:
statusCode: "200"
requestTemplates:
application/json: "{\"statusCode\": 200}"
passthroughBehavior: "when_no_match"
type: "mock"
definitions:
Empty:
type: "object"
title: "Empty Schema"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment