Simple OAUTH2 data GET
I would like to use this provider as it supports oauth2 natively. However, I am finding that the format my API is returning the data is not compatible with what the provider expects. For example, I don't want to look up a specific key or filter in any way, I simply would like to get the entire JSON response back and jsondecode it so I can use it in my terraform.
Is this possible?
data "restapi_object" "myapi" {
path = "/api/foo"
query_string = "id=1234"
search_key = ""
search_value = ""
}
Error: The results of a GET to /api/foo did not return an array. It is a map[string]interface {}...
(I get the above without an array in the results. I still have issues even returning an array as it wants to match a key on subsequent plan/apply)
My use-case is way simpler than what this thing was truly made for, but I can't seem to accomplish it.
Anyone have a recommendation? Thanks!