mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Filled out base Book API endpoints, added example responses
This commit is contained in:
@ -8,6 +8,8 @@ use Illuminate\Http\JsonResponse;
|
||||
class ApiController extends Controller
|
||||
{
|
||||
|
||||
protected $rules = [];
|
||||
|
||||
/**
|
||||
* Provide a paginated listing JSON response in a standard format
|
||||
* taking into account any pagination parameters passed by the user.
|
||||
@ -17,4 +19,12 @@ class ApiController extends Controller
|
||||
$listing = new ListingResponseBuilder($query, request(), $fields);
|
||||
return $listing->toResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the validation rules for this controller.
|
||||
*/
|
||||
public function getValdationRules(): array
|
||||
{
|
||||
return $this->rules;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user