Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize Swagger page with Azure Functions v. 3 #44

Open
erossini opened this issue May 11, 2020 · 2 comments
Open

Customize Swagger page with Azure Functions v. 3 #44

erossini opened this issue May 11, 2020 · 2 comments

Comments

@erossini
Copy link

Great job! I'm using your extension with Azure Functions v. 3 and I don't face any issue.

image

I want to customize the Swagger page, for example the title. I read a post where it explains how to add some configuration but it doesn't work for me.

Basically, I added some json in the host.json

{
  "version": "2.0",
  "extensions": {
    ...
 
    "Swashbuckle": {
      "Documents": [
        {
          "Title": "YOUR_TITLE",
          "Version": "v1",
          "Description": "YOUR_DESCRIPTION"
        }
      ]
    }
  }
}

What is the right think to do? Thank you!

@erossini
Copy link
Author

PS: I redeployed the Azure Functions on Azure and now I have an error

{
  "schemaValidationMessages": [
    {
      "level": "error",
      "message": "Can't read from file https://azuks-myfnz-q001.azurewebsites.net/api/swagger/json?code="
    }
  ]
}

I haven't changed the Startup file. When I published, I deleted existing files

@vitalybibikov
Copy link

vitalybibikov commented May 22, 2020

Hi @erossini
guess it is supported only here at the moment. (v3 functions )
As this repo is abandoned

https://github.com/vitalybibikov/azure-functions-extensions-swashbuckle

You will find all the docs there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants