Skip to content

Releases: arucard21/SimplyRESTful-Framework

Improved Collection resource

17 Sep 06:55
Compare
Choose a tag to compare

This release introduces version 2 of the HALCollection resource. This contains the following improvements:

  • Uses offset-based paging for more flexible control over paging
  • Allows filtering the fields of the returned resources.
  • Allows a query to be provided that can be used to specify exactly which resource the collection should contain.
  • Allows a sort order to be provided that can be used to specify exactly which fields the collection should be sorted on.

This version can be retrieved as both HAL+JSON as well as plain JSON. The latter uses a custom media type, application/x.simplyrestful-halcollection-v2+json and is returned by default.

Version 1 of the HALCollection resource is still provided but it is now deprecated.

Additionally, the persist-springdata library is now also deprecated. This library was intended for resources that did not require mapping to a database-specific entity. However, it turned out that, aside from the simplest resources, some kind of mapping is almost always required. Most notably, the UUID to URI mapping for identifiers seems to always require custom mapping since some additional information is required to convert a UUID from the database to its corresponding URI.

Enable Bean Validation

17 Sep 06:39
Compare
Choose a tag to compare

Enable Bean Validation on the POJOs that are used to deserialize the request body. This allows Bean Validation annotations in these POJOs to be enforced in the API.

Bugfix/Improvement

17 Sep 06:34
Compare
Choose a tag to compare

Change the database identifier from UUID to Long. This fixes a bug with updating the resource but also improves performance.

More client flexibility

17 Sep 06:32
Compare
Choose a tag to compare

Allow custom query parameters and HTTP headers to be included in SimplyRESTfulClient. These may be required to access the API (e.g. an API token in an Authorization header). The resource URI discovery is also fixed by changing it to only be done just before any request. This ensures that any query parameters and HTTP headers required to access the API are also available.

More flexible client

17 Sep 06:29
Compare
Choose a tag to compare

Provide more flexibility in SimplyRESTfulClient, with an injectable factory and allowing a custom ObjectMapper.

Small Improvements

17 Sep 06:26
Compare
Choose a tag to compare

Provides small improvements and updated documentation

Update to Java 11 and client implemented

01 Feb 11:14
Compare
Choose a tag to compare

Aside from some fixes, with this release the framework is updated to Java 11. Additionally, the client implementation is now complete and can be used to access SimplyRESTful APIs.

Remove unnecessary BaseWebResource

04 Dec 09:58
Compare
Choose a tag to compare

The BaseWebResource turns out to be unnecessary in practice as you can simply override anything in the DefaultWebResource class. So the BaseWebResource is now removed.

Improve persistence with Spring Data

04 Dec 09:55
Compare
Choose a tag to compare

Improve persistence by correctly specifying the inheritance strategy on SpringDataHALResource (used specifically with Spring Data).

Improve method name

04 Dec 09:53
Compare
Choose a tag to compare

The listing method in the WebResource classes is now renamed to list which conforms better to the CRUDL naming convention used here.