close
Skip to content

API Documentation #243

@thdotnet

Description

@thdotnet

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

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions