laravel-restify

The fastest way to make a powerful JSON:API compatible Rest API with Laravel.

MIT License

Downloads
321.1K
Stars
600
Committers
20

Bot releases are hidden (Show)

laravel-restify - 6.6.0

Published by binaryk over 2 years ago

Motivation

Restify already provides powerful filters and get routes with relationships. However, sometimes you might want to get some extra data for your repositories.

Let's say you have a stripe user. This is how you retrieve the stripe user information through a get request:

Route::get('users/stripe-information', UserStripeController::class);

// UserStripeController.php

public function __invoke(Request $request)
{
  ...
}

The classic approach is good, however, it has a few limitations. Firstly, you have to manually take care of the route middleware, the testability for these endpoints should be done separately which is hard to maintain. And finally, the endpoint is disconnected from the repository, which makes it feel out of context so has a bad readability.

So, code readability, testability and maintainability become hard.

See more: https://restify.binarcode.com/api/getters

laravel-restify - 6.5.0

Published by binaryk over 2 years ago

Added

  • Allow define skipFieldFill in actions, so you can keep default behavior for actionable fields.
laravel-restify - 6.4.1

Published by binaryk almost 3 years ago

Fixed

  • RestResponse index method to accept Paginator interface.
laravel-restify - 6.4.0

Published by binaryk almost 3 years ago

Added

  • Laravel 9 support
laravel-restify - 6.3.0

Published by binaryk almost 3 years ago

Fixed

  • Fixed conflict with telescope. See this.

Breaking change

  • Removed the AddedRepositories event, see Upgrading guideline for more details.
laravel-restify - 6.2.1

Published by binaryk almost 3 years ago

Added

laravel-restify - 6.2.0

Published by binaryk almost 3 years ago

Added

  • Filtering using only query args for matchable
  • Actions are not logged if the model doesn't use HasActionLog trait.
laravel-restify - 5.12.0

Published by binaryk almost 3 years ago

Fixed

  • Configurable matchable filtering.
laravel-restify - 6.0.2

Published by binaryk almost 3 years ago

Fixed

Forgot

laravel-restify - 6.1.0

Published by binaryk almost 3 years ago

Fixed

  • HasMany type of relationships will filter unauthorized items.
laravel-restify - 6.0.0

Published by binaryk almost 3 years ago

Added

  • Laravel scout integration
  • Sorting by HasOne relationships
  • Actionable fields for Bulk store and update
  • JSON:API compliances for sorting and related
  • Added rules method for actions and deprecated payload
  • Maintenance and bug fixing

Breaking changes

  • The AuthService and AuthController was removed. Now you can use the Route::restifyAuth() macro to intantiate auth routes.
laravel-restify - 5.11.0

Published by binaryk almost 3 years ago

Added

  • Use actionable fields in bulk requests #433
laravel-restify - 5.10.1

Published by binaryk almost 3 years ago

Fixed

  • Reverting AuthController as it's a breaking change for a minor release.
laravel-restify - 5.10.0

Published by binaryk almost 3 years ago

Fixed

  • Reverting AuthController as it's a breaking change for a minor release.
laravel-restify - 5.5.9

Published by binaryk almost 3 years ago

Added

  • Docs
  • Support for include along with related to get relationships.
laravel-restify - 5.5.8

Published by binaryk almost 3 years ago

Fixed

  • Closed #425
laravel-restify - 5.5.7

Published by binaryk almost 3 years ago

Added

  • Repository action testing helper.
laravel-restify - 5.5.6

Published by binaryk almost 3 years ago

Added

  • ok() global helper
laravel-restify - 5.5.5

Published by binaryk about 3 years ago

Added

  • Free signature for the stored hook in the repository.
laravel-restify - 5.4.4

Published by binaryk about 3 years ago

Added

  • Free signature for the stored hook in the repository.
Package Rankings
Top 6.09% on Packagist.org
Related Projects