Azure / Azure/Azure-Functions

API Documentation

Open
#243 0 comments 0 reactions 1 assignee Claimed by @alexkarcher-msft View on GitHub
feature:openapi triaged
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

I'm trying to add Swagger to my Azure Function following the sample from the blog post (https://blogs.msdn.microsoft.com/appserviceteam/2017/03/30/announcing-functions-swagger-support/) , however I'm getting 401 as HttpStatusResponse.

I believe it's not including the secret into the request. Is there any additional step for adding that?

Here's my swagger documentation:

swagger: '2.0'
info:
title: th-new-function.azurewebsites.net
version: 1.0.0
host: th-new-function.azurewebsites.net
basePath: /
schemes:
- https
- http
paths:
/api/HttpTriggerCSharp1:
post:
operationId: /api/HttpTriggerCSharp1/post
produces: [application/json]
consumes: [application/json]
parameters:
- name: name
in: body
description: Your name
required: true
schema:
type: object
properties:
name:
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.