Skip to content

Releases: zepgram/module-rest

Release 2.0.2

06 May 10:56
Compare
Choose a tag to compare

Release v1.1.5

06 May 10:51
Compare
Choose a tag to compare

Release 2.0.1

03 May 17:48
8212c4b
Compare
Choose a tag to compare

Adding support for application/x-www-form-urlencoded

Release 1.1.4

03 May 17:53
Compare
Choose a tag to compare

Adding support for application/x-www-form-urlencoded

Release 2.0.0

19 Feb 11:43
3ea4ad6
Compare
Choose a tag to compare

What's Changed

  • [v2.0.0] new implementation with pattern ease of use by @zepgram in #3

Full Changelog: v1.1.3...v2.0.0

Pattern implementation

The module was a bit complexe to implement, so it has been simplified to provide more flexibility:

  • ApiFactory has been removed
  • ApiProvider can be directly injected to send a request
  • ApiPool has replaced ApiFactory to fetch an ApiProvider.

Benefits

I've been working with this module for a while now, and one of the weakness was the ability to find the RequestAdapter while running a request. You had to search in your di.xml for a reference on my_awesome_service by yourself.
To simplify, instead of this:

$this->apiFactory->get('my_awesome_service', $data)->sendRequest();

Now we have this:

$this->apiPool->execute(MyAwesomeRequestAdapter::class, $data);

By doing this the developer and also the code reader are now able to easily find MyAwesomeRequestAdapter class, which is basicly the service contract used by the ApiProvider.

Aftermath

Now ApiProvider and RequestAdapter have a relation 1:1

Previously, you could use the same RequestAdapter for multiple ApiProvider (1:M), this is not the case anymore.

Breaking change

⚠️ This release has breaking change: other releases will not be maintained anymore.

If you want to install v2.0.0 you must adapt your code.

Release 1.1.3

17 Nov 18:04
Compare
Choose a tag to compare

[v1.1.3] fix default group naming (which is general): the option to force logging for debug purposes was not available.

Release 1.0.5

17 Nov 18:05
Compare
Choose a tag to compare

[v1.0.5] fix default group naming (which is general): the option to force logging for debug purposes was not available.

v1.1.2

20 Sep 08:47
Compare
Choose a tag to compare

[v1.1.2] allow section to be displayed on website and store views

v1.0.4

20 Sep 08:33
Compare
Choose a tag to compare

[v1.0.4] allow section to be displayed on website and store views

Version 1.0.3

03 Oct 14:52
Compare
Choose a tag to compare

Allow installation of Guzzle 7.0