Skip to content

Commit

Permalink
💄 readme almost ready
Browse files Browse the repository at this point in the history
  • Loading branch information
GautierDele committed Jul 30, 2023
1 parent b943b98 commit ec851e6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
27 changes: 18 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
<p align="center"><img src="https://raw.githubusercontent.com/Lomkit/art/master/laravel-rest-api/cover.png" alt="Social Card of Laravel Permission"></p>

# Laravel Rest Api

This project is under construction. It has been made to cover nowadays problem with constructing API.
This project aims to be as powerfull as GraphQL with the full integration of Laravel (Policies / Eloquent / etc)
Laravel Rest Api is an elegant way to expose your app through an API, it takes full advantage of the Laravel ecosystem such as Policies, Controllers, Eloquent, ...

## Documentation, Installation, and Usage Instructions

See the [documentation](https://laravel-rest-api.lomkit.com) for detailed installation and usage instructions.

## What It Does

You'll find multiple endpoints exposed when using this package such as mutating, searching, showing, deleting, ...

Here is a quick look at what you can do using API search method:
```
Expand Down Expand Up @@ -53,19 +61,20 @@ Here is a quick look at what you can do using API search method:
}
```

Estimate time for Beta delivery: July 2023
## Changelog

TODO

## Contributing

TODO

## Roadmap

- Unit testing - 50%
- Documentation
- Morph support for relationing
- Morph support
- Through relation support
- Custom directives (Filters / sorting)
- Actions / Metrics
- Automatic Gates
- Aggregating (V2)
- Stubs - Missing Responsable (+ Request ?)
- Create entries (Including distant ones)
- Update entries (Including distant ones)
- Automatic documentation with extending possible
4 changes: 0 additions & 4 deletions src/Concerns/PerformsRestOperations.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ public function mutate(MutateRequest $request) {
return $operations;
}


//@TODO: stubs for responsables / rules

//@TODO: change destroy/restore/forceDelete to allow multiple models
public function destroy(DestroyRequest $request) {
$resource = static::newResource();

Expand Down
2 changes: 2 additions & 0 deletions src/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ abstract class Controller extends \Illuminate\Routing\Controller
use PerformsRestOperations,
Authorizable;

// @TODO Make an installation command that provides base controller, resource, etc

/**
* The resource the entry corresponds to.
*
Expand Down
2 changes: 0 additions & 2 deletions src/Query/Traits/PerformMutation.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ trait PerformMutation
];

public function mutate(array $parameters = []) {
// @TODO: Attentions aux permissions aussi sur le search

$operations = [
'created' => [],
'updated' => []
Expand Down

0 comments on commit ec851e6

Please sign in to comment.