curl -X GET ninja.test/api/v1/clients?email=<value> -H "X-Ninja-Token: TOKEN"
curl -X GET ninja.test/api/v1/clients?id_number=<value> -H "X-Ninja-Token: TOKEN"
curl -X GET ninja.test/api/v1/invoices?invoice_number=<value> -H "X-Ninja-Token: TOKEN"
Can be turned into these:
use InvoiceNinja\Models\Client as NinjaClient;
use InvoiceNinja\Models\Invoice as NinjaInvoice;
NinjaClient::findByCustomQuery(["email" => "<value>"]);
NinjaClient::findByCustomQuery(["id_number" => "<value>"]);
NinjaInvoice::findByCustomQuery(["invoice_number" => "<value>"]);
So API requests like these (from the docs):
Can be turned into these:
This PR closes #29.