Skip to content

Releases: Mastercard/terraform-provider-restapi

v1.4.0

18 Sep 17:39

Choose a tag to compare

New

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

v1.3.0

14 Sep 21:12

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

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

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!

v1.2.0

16 Aug 18:42

Choose a tag to compare

New

  • Expand the abilities of *_path to including or NOT including the id - See README.md for more info.
  • Allow manually setting the ID of a restapi_object in case the data wouldn't have it. See object_id in 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

15 Aug 19:18

Choose a tag to compare

New

  • Add ability to override paths per operation (create|read|update|destroy) in the restapi resource. See README.md for more info.

v1.0.0

09 Aug 20:49

Choose a tag to compare

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.

v0.2.0

03 Aug 21:18

Choose a tag to compare

No changes to existing functionality, but a new datasource is available. Take a look at README.md for more information

v0.1.0

27 Apr 16:25

Choose a tag to compare

Initial release of a terraform provider to manage a generic RESTful API. Head over to the README for more information.