Skip to content

Releases: xp-forge/rest-client

2.1.0: High-level APIs

30 May 21:14
Compare
Choose a tag to compare
  • Merged PR #15: Deprecate high-level functions on low-level response
    (@thekid)
  • Added webservices.rest.Result::status() method to access HTTP status
    (@thekid)
  • Added webservices.rest.Result::link() method to access links with a
    given rel attribute, see for example how GitHub implements pagination:
    https://docs.github.com/en/rest/overview/resources-in-the-rest-api#pagination
    (@thekid)
  • Merged PR #14: Fluent result interface. This pull request adds a new
    RestResponse::result() method which returns Result instances with
    high-level access to responses including handling of unexpected status
    codes along typical REST usage patterns.
    (@thekid)

2.0.2: PHP 8.1 compatibility

30 May 09:23
Compare
Choose a tag to compare

2.0.1: Content-less response fixes

27 Dec 22:16
Compare
Choose a tag to compare
  • Fixed issue #12: Errors for responses without content type - @thekid

2.0.0: Drop PHP 5 support

10 Apr 14:53
Compare
Choose a tag to compare

This major release drops PHP 5 support. PHP 5 has been EOL since the end 2018, see https://www.php.net/eol.php. Dropping support for it enables us to make use a variety of PHP 7 features.

  • Implemented xp-framework/rfc#334: Drop PHP 5.6:
    . Heads up: Minimum required PHP version now is PHP 7.0.0
    . Rewrote code base, grouping use statements
    . Converted newinstance to anonymous classes
    . Rewrote isset(X) ? X : default to X ?? default
    (@thekid)

1.0.3: Library compatibility

10 Apr 11:18
Compare
Choose a tag to compare
  • Made compatible with xp-forge/uri version 2.0.0 - @thekid

1.0.2: Annotation syntax

10 Apr 10:25
Compare
Choose a tag to compare
  • Implemented RFC #335: Remove deprecated key/value pair annotation syntax
    (@thekid)

1.0.1: XP10 compatibility

01 Dec 17:06
Compare
Choose a tag to compare
  • Made compatible with XP 10 - @thekid

1.0.0: Headers

26 Jan 13:55
Compare
Choose a tag to compare

The first release to be used in production. The API has now stabilized.

  • Added RestResponse::links() method to access the Link header
    (@thekid)
  • Added method to supply headers to be sent with every request using
    Endpoint::with().
    (@thekid)

0.8.0: NDJson

22 Jan 14:51
Compare
Choose a tag to compare

0.7.3: Exceptions wrapping fix

25 Dec 22:25
Compare
Choose a tag to compare
  • Fixed wrapping of exceptions from execute() in RestExceptions.
    (@thekid)