Releases: Mastercard/terraform-provider-restapi
Releases · Mastercard/terraform-provider-restapi
v1.4.0
v1.3.0
New
- Add ability to set id_attribute per-resource and per-datasource as an override to provider config. Thanks @rberlind for the idea!
- Make id_attribute aware of how to find a value multiple levels deep in the results rather than as a top-level value only. Example: with the data
{ "attrs": { "id": 1234 }, "config": { "foo": "abc", "bar": "xyz"} }, you can now get the id of1234by settingid_attributetoattrs/id. Thanks @rberlind for the idea! - Added some handy internal functions to make working with complex data types safer and easier.
Fixes
- Do not fail with mysterious Go panics if type assertions fail during datasource lookup
v1.2.2
== Fixes
- Do not fail in the datasource if the API returns a non-string for the ID attribute (thanks for the report, @mlosapio)
- Fix datasource import regression introduced during the splitout of (get|put|post|delete)_path
- In rare cases, a failed internal creation for a critical resource during provider init may propagate as a success
== New
- Do not require
write_returns_objectorcreate_returns_objecton the provider if you're just using the datasource - Added terraform-specific test cases to exercise the code and avoid future regressions
v1.2.1
v1.2.0
New
- Expand the abilities of
*_pathto including or NOT including the id - See README.md for more info. - Allow manually setting the ID of a
restapi_objectin case the data wouldn't have it. Seeobject_idin README.md
Fixed
- Fakeserver was accidentally returning 404 for POST if ID was specified
- The new separation of get/put/post/delete paths had PUT and POST backwards
v1.1.0
v1.0.0
Breaking change - Move from authorization_header which is a single string value to headers which is a hash of strings in the provider configuration. See README for a bit more info.
A new fake API server will be released with each version of this provider to allow you to test locally and get a feel for it.
An examples directory has been created to get you off to the right start with using the provider. Feel free to contribute your own!
Release binaries should now be named more in line with what Terraform expects. Take a look at the README for installation instructions.