Skip to content

Releases: Mastercard/terraform-provider-restapi

v1.9.2

05 Jul 20:46
Compare
Choose a tag to compare

Fixed

  • Investigating issue #34, an odd golang idiom was found that caused errors to get swallowed when refreshing state. This can cause the state file to get wiped out! The bug has been squashed. Thanks, @mlosapio and @robstonham-pa!
  • Removed some junk code for handling redirects. This was never in use because golang handles them for us!

v1.9.1

05 Jul 18:53
1c42d15
Compare
Choose a tag to compare

Fixed

  • In v1.9.0, adding support for setting the HTTP method per CRUD operation introduced a bug. If update_method was not set, create_method was accidentally set to PUT. This was fixed by @kody-abe. Thanks!

v1.9.0

17 May 14:56
Compare
Choose a tag to compare

New

  • Added support for configuring the HTTP method for CRUD operations per #21. See README.md for more info. Thanks to @ggsood for the request and @2-face for testing.

Fixed

  • The build/test scripts were missing a required env variable (GOPATH) for govendor.

v1.8.0

12 Apr 20:15
Compare
Choose a tag to compare

New

  • Data sent to the API can be marked as sensitive by setting the API_DATA_IS_SENSITIVE=true environment variable thanks to @ipleten!
  • Dependencies are now vendored with govendor and scripting updated to support it
  • Per the previous note, we're now vendoring the latest Terraform (TF .12) to support the latest provider protocol. Thanks to @on4tux for the pointer in #30!

Fixed

  • Contributors are great! The README gives some helpful pointers for getting started

v1.7.0

25 Mar 20:04
Compare
Choose a tag to compare

New

  • Added cookie jar support thanks to @TMaYaD!
  • Added support for dealing with xssi prefixes thanks to @TMaYaD!
  • Added support for the force_new parameter (see README.md) thanks to @TMaYaD!
  • Added some test cases and CI scaffolding thanks to @burbon!

Fixed

  • The test cases were fixed thanks to a patch from @burbon!
  • We are go fmt, finally thanks to a patch from @TMaYaD!

Noteworthy

  • The parameters for api_client have been modified from a long list to a typed structure of params.

v1.6.0

26 Nov 16:37
64b0769
Compare
Choose a tag to compare

New

Fix

  • Improved debug logging for the datasource

v1.5.1

26 Oct 17:48
Compare
Choose a tag to compare

Fix

  • Fix support for using a nested id_attribute in the datasource. Thanks, @rberlind!

v1.5.0

04 Oct 15:40
Compare
Choose a tag to compare

New

  • Add support for sending a query string during datasource searches
  • Add support for nested k/v pairs to datasource search_key (similar to results_key and friends). Thanks @rberlind!
  • Improve logging of errors to have more useful information

v1.4.0

18 Sep 17:39
Compare
Choose a tag to compare

New

  • Add support for sending a query string during datasource searches.

v1.3.0

14 Sep 21:12
Compare
Choose a tag to compare

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 of 1234 by setting id_attribute to attrs/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