Azure / Azure/azure-functions-openapi-extension

How to define using decorators one endpoints multiple request methods - GET, POST, PATCH?

Open
#590 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
388
Forks
202
PR merge metrics
No merged PRs in 30d

Description

**Describe the issue**
I can not using function decorators document function app endpoint if it has multiple request methods. For example - GET, POST, PATCH. Only the first one is showing up. Is this even possible using decorators?

**To Reproduce**
![image](https://github.com/Azure/azure-functions-openapi-extension/assets/90688496/edbe4954-800a-4945-9d2f-637a68eb9eb4)

**Expected behavior**
![image](https://github.com/Azure/azure-functions-openapi-extension/assets/90688496/6c11e3ae-d30c-4c77-b3e3-84b91d9f1f9d)

**Environment (please complete the following information, if applicable):**
- OS: Windows
- Browser: edge
- Version: latest

Contributor guide

Open the contributing guide

Research direction

Begin by reproducing the decorator-based Azure Functions endpoint with GET, POST, and PATCH, then compare the generated OpenAPI output with the screenshots. Done means the documentation lists all three request methods for the single endpoint.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, openapi
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.