Skip to content

Instantly share code, notes, and snippets.

@didil
Last active September 25, 2020 13:26
Show Gist options
  • Save didil/f35072b247c3ba493bd82daf80b2fbd7 to your computer and use it in GitHub Desktop.
Save didil/f35072b247c3ba493bd82daf80b2fbd7 to your computer and use it in GitHub Desktop.
Gateway OpenAPI spec
swagger: '2.0'
info:
title: gateway-demo
description: API Gateway demo with 2 cloud run backends
version: 1.0.0
schemes:
- https
produces:
- application/json
paths:
/users:
get:
summary: Users svc
operationId: list-users
x-google-backend:
address: https://users-svc-qqx6qmklha-ew.a.run.app/all
responses:
'200':
description: OK
/locations:
get:
summary: Locations svc
operationId: list-locations
x-google-backend:
address: https://locations-svc-qqx6qmklha-ew.a.run.app/all
responses:
'200':
description: OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment