Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created June 12, 2017 06:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/f90a5d863204126e1e52a29e376c6ae5 to your computer and use it in GitHub Desktop.
Save justinyoo/f90a5d863204126e1e52a29e376c6ae5 to your computer and use it in GitHub Desktop.
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