Azure/azure-functions-java-library

PATCH is missing from HttpMethods

szirbucz opened this issue · 7 comments

I would like to create a HTTP trigger for a PATCH request, but I sadly recognized that there is no option for it.

Is there a specific reason for that? I have the same issue here. Not able to use PATCH with an Azure function

We are also running into this issue.

This seems like an oversight. Can this be added on short term?

Add a workaround for this: after build your jar file find the function.json file and change the method to PATCH, then no matter what method type you defined in your functions it will always be treated as a PATCH method.

example:

{
  "scriptFile" : "../fabrikam-functions-1.0-SNAPSHOT.jar",
  "entryPoint" : "com.fabrikam.Function.run",
  "bindings" : [ {
    "type" : "httpTrigger",
    "direction" : "in",
    "name" : "req",
    "methods" : [ "PATCH" ],
    "authLevel" : "ANONYMOUS"
  }, {
    "type" : "http",
    "direction" : "out",
    "name" : "$return"
  } ]
}

Can you create a new release with the PATCH included?

Hi @leonfau , thanks for reaching out. The new release will be ready in next month. We also include some new features, right now it's under end to end and regression testing process. Thanks for your understanding.

This is resolved in current release.