Skip to content

Releases: open-southeners/laravel-apiable

3.11.3

22 Sep 11:36
e2fb464
Compare
Choose a tag to compare

Fixed

  • Force formatting always coming through even thought is not forced by config

3.11.2

19 Sep 18:01
6e8a890
Compare
Choose a tag to compare

Changed

  • Config file now with response.formatting with type and force sub-items as options

Fixed

  • Force formatting for Inertia based apps (now can use Apiable::forceResponseFormatting())

3.11.1

19 Sep 13:52
69efad0
Compare
Choose a tag to compare

Fixed

  • Non existing class ForceAppendAttribute when reading controller attributes

3.11.0

19 Sep 13:49
ae6582b
Compare
Choose a tag to compare

Added

  • Default sorts using JsonApiResponse::applyDefaultSort method or OpenSoutheners\LaravelApiable\Attributes\ApplyDefaultSort attribute
  • Default filters using JsonApiResponse::applyDefaultFilter method or OpenSoutheners\LaravelApiable\Attributes\ApplyDefaultFilter attribute
  • Default formatting bypass using JsonApiResponse::forceFormatting method

Changed

  • Request::wantsJsonApi() only looks at Accept header, not looking for Content-Type one anymore
  • Now all requests can send a different Accept header if they want a diffent response formatting. For e.g. sending Accept: application/json will get raw JSON response. Default being configured in the config/apiable.php make sure to publish or update it

3.10.0

15 Sep 10:10
c43526c
Compare
Choose a tag to compare

Added

  • Sorts now accepts relationships (for e.g. /posts?sort=tags.created_at)

3.9.2

18 Aug 14:57
53cf0e2
Compare
Choose a tag to compare

Fixed

  • PHP deprecation warning on string vars interpolation

3.9.1

15 Aug 11:30
d7a5399
Compare
Choose a tag to compare

Fixed

  • JsonApiResponse using viewable builder (query scopes to filter by view permission) didn't send any user as first parameter

3.9.0

08 Aug 11:21
c30ef09
Compare
Choose a tag to compare

Added

  • JsonApiResponse::paginateUsing(fn ($query) => $query->simplePaginate()) method to customise pagination used in JSON API responses.

3.8.0

07 Aug 17:12
8e0b213
Compare
Choose a tag to compare

Changed

3.7.1

07 Aug 12:19
98351e4
Compare
Choose a tag to compare

Fixed

  • Missing import to make work pivot attributes functionality