Create a gist now

Instantly share code, notes, and snippets.

@justinyoo /swagger.yaml Secret
Created Jun 12, 2017

What would you like to do?
Azure Functions with Swagger
swagger: '2.0'
info:
title: xxxx.azurewebsites.net
version: 1.0.0
host: xxxx.azurewebsites.net
basePath: /
schemes:
- https
- http
paths:
/api/products:
post:
operationId: /api/products/post
produces: []
consumes: []
parameters: []
description: >-
Replace with Operation Object
#http://swagger.io/specification/#operationObject
responses:
'200':
description: Success operation
security:
- apikeyQuery: []
'/api/products/{productId}':
get:
operationId: '/api/products/{productId}/get'
produces: []
consumes: []
parameters:
- name: productId
in: path
required: true
type: string
description: >-
Replace with Operation Object
#http://swagger.io/specification/#operationObject
responses:
'200':
description: Success operation
security:
- apikeyQuery: []
definitions: {}
securityDefinitions:
apikeyQuery:
type: apiKey
name: code
in: query
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment