Coder Social home page Coder Social logo

mohammadamer / azure-functions-openapi-extension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure/azure-functions-openapi-extension

0.0 0.0 0.0 13.79 MB

This extension provides an Azure Functions app with Open API capability for better discoverability to consuming parties

Home Page: https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.OpenApi/

License: MIT License

Shell 0.60% C# 98.62% PowerShell 0.66% Dockerfile 0.12%

azure-functions-openapi-extension's Introduction

Azure Functions OpenAPI Extension

Out-of-Proc Worker In-Proc Worker

Acknowledgement

Getting Started

  • **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

Swagger UI Error When Empty Project Referenced

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 [email protected] with any additional questions or comments.

azure-functions-openapi-extension's People

Contributors

ahmadtantowi avatar bianyifan avatar choipureum avatar cistusf avatar danielabbatt avatar derich367 avatar deserve82 avatar emrekara37 avatar flcdrg avatar gsteenpa avatar haileymoon avatar jackbatzner avatar jstoker avatar justinyoo avatar kafkaaaa avatar lee-ji-an avatar lee-wonjun avatar level120 avatar ljhyeon avatar microsoftopensource avatar nyang-code avatar sinantutan avatar soniacomp avatar spboyer avatar ssa3512 avatar thomasbleijendaal avatar tony-xia avatar tsolbjor avatar vincentbitter avatar william-froelich avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.