Skip to content

Releases: xp-forge/rest-client

5.0.2: Logging fix

30 Mar 14:43
Compare
Choose a tag to compare
  • Fixed exchanging log categories - @thekid

5.0.1: Missing port fix

09 Mar 08:04
Compare
Choose a tag to compare

5.0.0: Compression

26 Feb 10:44
Compare
Choose a tag to compare

This release brings compression handling to this library. Algorithms supported by the setup are transmitted with the Accept-Encoding header. Handling for compressed response data is determined by looking at the Content-Encoding header. Heads up: If you've been manually doing this before, read the "BC break and refactoring" section in #22.

  • Fixed "Creation of dynamic property" warnings in PHP 8.2 - @thekid
  • Merged PR #22: Compression, implementing feature request #21. Adds a
    dependency on the new xp-forge/compression library.
    (@thekid)

4.0.0: Result API

03 Dec 15:04
Compare
Choose a tag to compare

This major release makes the result API, which has proven to be far more useful than the previous low-level one, the default. This makes a clean cut but also breaks backward compatibility, and all your code will need to be thoroughly checked before migrating!

  • Merged PR #20: Fold result into response. The value() and links()
    methods' behavior has changed, result() has been removed.
    (@thekid)

3.2.0: Testability

01 Dec 12:55
Compare
Choose a tag to compare
  • Merged PR #19: Testability, adding a webservices.rest.TestEndpoint
    class which can be used for testing purposes
    (@thekid)

3.1.0: Bearer tokens embedding

13 Nov 11:26
Compare
Choose a tag to compare
  • Merged PR #18: Add support for bearer tokens embedded directly in base
    URI, e.g. https://token@example.org/api/v1
    (@thekid)

3.0.0: Drop XP 9, add XP 11

21 Oct 18:34
Compare
Choose a tag to compare

This major release drops compatibility with XP 9-SERIES. XP 9.0.0 was released 2017-09-24, more than 4 years ago and has no support for PHP 8, released roughly a year ago at the time of writing.

  • Heads up: Minimum required XP version is 10, see xp-framework/rfc#341
    (@thekid)
  • Added compatibility with XP 11, xp-framework/logging version 11.0.0
    and xp-forge/json version 5.0.0
    (@thekid)

2.3.0: File uploads

11 Sep 12:10
Compare
Choose a tag to compare
  • Merged PR #17 - Implement file uploads. The new upload() method in the
    webservices.rest.RestResource class initiates a multipart/form-data
    request, to which both files and parameters can be added.
    (@thekid)

2.2.1: PHP 8.1 compatibility fix

16 Aug 19:37
Compare
Choose a tag to compare
  • Fixed PHP 8.1 compatibility by declaring getIterator() with correct
    return type. See issue #16.
    (@thekid)

2.2.0: Headers accessor

03 Jun 20:59
Compare
Choose a tag to compare
  • Added webservices.rest.Endpoint::headers() accessor - @thekid