Replies: 2 comments 2 replies
-
Hi @mahasadhu , It should be super-easy to create a custom operation starting from ListOperation's One thing I didn't understand from your post, sorry, was how you'll be using this response (what you need this operation for). Is it to consume the API on the front-end of the application? If so, my plan was similar but in a slightly different direction, in using the JSON-API standard. That would have the benefit of providing a clear, documented and non-language standard of communication (the URL itself). The problem is - there's not much related to Backpack in creating these JSON-API routes. It's not Backpack-specific, it's just Laravel-specific, and AFAIK they can already be created pretty easily using something like https://github.com/cloudcreativity/laravel-json-api . Of course, we could make it easier, by creating a Backpack operation for it. Let me know if I misunderstood your plan on how to use the API itself. I'll move this to Discussions so that it's easier to gather feedback and make plans, before we implement the specific feature. Cheers! |
Beta Was this translation helpful? Give feedback.
-
Hi. Due to not activity on many years i will close this discussion, if there is needed feel free to reopen or create a new one. Cheers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Feature Request
What's the feature you think Backpack should have?
First of all I'm not sure whether this is not possible or already implemented, sorry if it is.
Can we somehow mimic the datatable's request to the
/search
method ?But instead of returning json with datatable-compatible format, we simply get the bare json based on the
$this->crud->getEntries()
?Or even better, we could try to find a way to create a method / route which can be used as a callback, that gets the same entries as the one currently shown in the datatable.
That callback could receive either query or the eloquent collection.
This functionality could be useful to customize how we want to show the filtered data, for example for custom export layout.
Have you already implemented a prototype solution, for your own project?
No I have not, but I think we can start by modularizing the
search()
method in ListOperation.phpDo you see this as a core feature or an add-on?
Not sure
Beta Was this translation helpful? Give feedback.
All reactions