magodo / terraform-provider-restful

Terraform provider to manage RESTful resources
https://registry.terraform.io/providers/magodo/restful
Mozilla Public License 2.0
15 stars 5 forks source link

Allow for PATCH method in restful_resource #85

Closed theadzik closed 6 months ago

theadzik commented 6 months ago

Would it be possible to allow restful_resource to create resources with PATCH method?

Sometimes APIs have weird logic behind them and restricting use of PATCH method in the object stops us from using this provider.

An example would be: https://learn.microsoft.com/en-us/rest/api/azure/devops/serviceendpoint/endpoints/share-service-endpoint?view=azure-devops-rest-7.1.

We can create a new "Shared Service Endpoint" on top of an existing one, then remove the underlying Service Connection and the shared one will remain as a "separate" resource.