You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 17, 2021. It is now read-only.
Support PUT and PATCH requests in the same way as POST.
Context
In a RESTful API, sending a POST means creating a resource, which you rarely would want to do in a binding. Usually you would update a resource (i.e. change its state), which is represented by a PUT or PATCH request, with the HTTP body containing the data to be changed (e.g. JSON). So this would a common use case for a binding, but is currently not supported.
The text was updated successfully, but these errors were encountered:
Expected Behavior
http=">[<command>:PUT:<url>:<bodycontent>]"
should send aPUT
request with<bodycontent>
as the HTTP body.Current Behavior
Sending a HTTP body is constrained to
POST
requests only, hardcoded here: https://github.com/openhab/openhab1-addons/blob/master/bundles/binding/org.openhab.binding.http/src/main/java/org/openhab/binding/http/internal/HttpBinding.java#L279Possible Solution
Support
PUT
andPATCH
requests in the same way asPOST
.Context
In a RESTful API, sending a
POST
means creating a resource, which you rarely would want to do in a binding. Usually you would update a resource (i.e. change its state), which is represented by aPUT
orPATCH
request, with the HTTP body containing the data to be changed (e.g. JSON). So this would a common use case for a binding, but is currently not supported.The text was updated successfully, but these errors were encountered: