Does API Proxy provide support for HTTP HEAD and PATCH methods?

Hi

When we create API Proxy, we have options for http methods like POST,GET,PUT and DELETE.

Do we have support for HEAD and PATCH ?

Thanks

0 4 2,683
4 REPLIES 4

Dear @GAURAV ,

Yes, By default Apigee supports all HTTP methods. OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, PATCH.

On a separate note, if you would like to restrict any methods on your API Proxy, you can use allow.http.method.* property to restrict HTTP Methods.

Use above setting to disable any HTTP method by setting the value for the property name, for example, name="allow.http.method.POST" to false. For example,

<Propertyname="allow.http.method.PUT">false</Property>

If the incoming request's method is not allowed, then the HTTP status code 405, "Method Not Allowed" will be returned, along with an Allow header whose value is the list of all methods that are allowed. Find more information here.

Update :

It's just the restriction in the UI. See way below to specify other HTTP Methods. Choose any method while creating, then edit in the XML.

1623-screen-shot-2015-12-07-at-42150-pm.png

Hi @Anil Sagar

When I go to API Proxy Overview screen in Edge Management API, I don't see HEAD and PATCH options while adding Resource. I can see only GET,PUT,POST,DELETE and ALL

@GAURAV, yes, It's an UI Restriction, but you can always change in the XML. See updated answer.

Is there any initiative to automatically support HEAD method for all the GET endpoints?