Skip to content

Instantly share code, notes, and snippets.

@BerangerNt
Created October 1, 2021 19:54
Show Gist options
  • Save BerangerNt/f3157f34baffc78289c7c010c7bd4383 to your computer and use it in GitHub Desktop.
Save BerangerNt/f3157f34baffc78289c7c010c7bd4383 to your computer and use it in GitHub Desktop.
swagger: '2.0'
info:
title: smoothie-api
description: Send me Smoothies
version: 2.0.0
schemes:
- https
produces:
- application/json
paths:
/listSmoothies:
get:
summary: Get the best smoothies
consumes:
- application/json
operationId: listSmoothies
x-google-backend:
address: https://europe-west2-steam-outlet-209412.cloudfunctions.net/listSmoothies
responses:
'200':
description: Successful response
schema:
type: string
security:
- api_key: []
/orderSmoothie:
post:
summary: Order a wonderful smoothie
consumes:
- application/json
operationId: orderSmoothie
x-google-backend:
address: https://europe-west2-steam-outlet-209412.cloudfunctions.net/orderSmoothies
responses:
'200':
description: Successful response
schema:
type: string
security:
- api_key: []
securityDefinitions:
api_key:
type: "apiKey"
name: "key"
in: "query"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment