Skip to content

Releases: Mastercard/terraform-provider-restapi

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

v1.2.2

12 Sep 20:58
Compare
Choose a tag to compare

== 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_object or create_returns_object on 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

23 Aug 16:43
Compare
Choose a tag to compare

Fixes

  • The new object_id attribute in 2.1.0 wasn't being used correctly in the provider initialization. Thanks, @rberlind!