-
-
Save justinyoo/f90a5d863204126e1e52a29e376c6ae5 to your computer and use it in GitHub Desktop.
Azure Functions with Swagger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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