Fork.vstr.Microsoft.Azure.WebJobs.Extensions.OpenApi.Core
1.5.2
dotnet add package Fork.vstr.Microsoft.Azure.WebJobs.Extensions.OpenApi.Core --version 1.5.2
NuGet\Install-Package Fork.vstr.Microsoft.Azure.WebJobs.Extensions.OpenApi.Core -Version 1.5.2
<PackageReference Include="Fork.vstr.Microsoft.Azure.WebJobs.Extensions.OpenApi.Core" Version="1.5.2" />
paket add Fork.vstr.Microsoft.Azure.WebJobs.Extensions.OpenApi.Core --version 1.5.2
#r "nuget: Fork.vstr.Microsoft.Azure.WebJobs.Extensions.OpenApi.Core, 1.5.2"
// Install Fork.vstr.Microsoft.Azure.WebJobs.Extensions.OpenApi.Core as a Cake Addin #addin nuget:?package=Fork.vstr.Microsoft.Azure.WebJobs.Extensions.OpenApi.Core&version=1.5.2 // Install Fork.vstr.Microsoft.Azure.WebJobs.Extensions.OpenApi.Core as a Cake Tool #tool nuget:?package=Fork.vstr.Microsoft.Azure.WebJobs.Extensions.OpenApi.Core&version=1.5.2
Azure Functions OpenAPI Extension
Out-of-Proc Worker | In-Proc Worker |
---|---|
Acknowledgement
- Swagger UI version used for this library is v3.44.0 under the Apache 2.0 license.
- This extension supports the OpenAPI spec version of v2.0 and v3.0.1.
Getting Started
Enable OpenAPI documents to your Azure Functions HTTP Trigger: This document shows how to enable OpenAPI extension on your Azure Functions applications and render Swagger UI, and OpenAPI v2 and v3 documents on-the-fly.
Securing Azure Functions Endpoints through OpenAPI Auth: This document shows many various scenarios to add authN features including the built-in features and OAuth2 auth flows.
Azure Functions v1 Support: This document shows how to support Azure Functions v1 runtime with this OpenAPI extension.Integrating OpenAPI-enabled Azure Functions to Azure API Management: This document shows how to integrate the Azure Functions application with Azure API Management, via this OpenAPI extension.
Generic CI/CD Pipeline Support: This document shows how to generate the OpenAPI document within a CI/CD pipeline, using either PowerShell or bash shell script.
GitHub Actions Support
If you are using GitHub Actions as your preferred CI/CD pipeline, you can run the GitHub Action into your workflow to automatically generate the OpenAPI document. Find more details at the Build OpenAPI action page.
GitHub Codespaces Support
If you want to run your Azure Functions app on GitHub Codespaces, you might want to accommodate local.settings.json
. The following PowerShell script may help you for the accommodation:
# Update local.settings.json
pwsh -c "Invoke-RestMethod https://aka.ms/azfunc-openapi/add-codespaces.ps1 | Invoke-Expression"
Sample Azure Function Apps with OpenAPI Document Enabled
Here are sample apps using the project references:
## Azure Functions V1 Support ##
This library supports Azure Functions V3 and onwards. If you still want to get your v1 and v2 runtime app supported, find the community contribution or the proxy feature.
Known Issues
Missing .dll Files
Due to the Azure Functions Runtime limitation, sometimes some of .dll files are removed while publishing the function app. In this case, try the following workaround with your function app .csproj
file.
<Project Sdk="Microsoft.NET.Sdk">
...
<PropertyGroup>
...
<_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput>
</PropertyGroup>
...
</Project>
Empty Swagger UI When Deployed through Azure Pipelines
- Workaround: #306
Swagger UI Error When Empty Project Referenced
- Workaround: #302
Issues?
While using this library, if you find any issue, please raise an issue on the Issue page.
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Azure.WebJobs.Extensions.Http (>= 3.2.0)
- Microsoft.Azure.WebJobs.Extensions.OpenApi.Configuration.AppSettings (>= 1.0.0)
- Microsoft.OpenApi (>= 1.2.3)
- Newtonsoft.Json (>= 13.0.1)
- System.IO.FileSystem.Primitives (>= 4.3.0)
- System.Runtime.Handles (>= 4.3.0)
- System.Runtime.InteropServices (>= 4.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.5.2 | 234 | 12/14/2024 |