1
API endpoints should return full data, not truncated due to defaults
Source: invoiceninja/invoiceninja#11422 · opened by @xolyu
In some cases, the data returned by API endpoints is truncated because default values are not necessarily output, but are also not consistently truncated. The result is a mixture of truncated and fully qualified data. Example: /api/v1/tasks This was noticed in the API endpoint tasks for the value time_log. Arrays with a length of 2 or 4 are returned for the entries. The fourth value (Boolean) is the “Billable” flag. The default in Invoice Ninja is true. For some entries, this is explicitly returned as true by the API, while for others, this value is missing from the result. An example result for time_log could look like: • The second entry is missing the true value, which is not incorrect from Invoice Ninja's point of view, as this corresponds to the default, but it is difficult for downstream processing. • In the first entry, the true value is returned, even though this corresponds to the default. Further information in Invoice Ninja's …
No pledges yet. Be the first to back this.
Comments
Similar requests
Override default due date / set no due date per invoice
0 votes · 0 comments
Send first invoice reminder email by days before the due date
0 votes · 0 comments
Set Due Date on Draft Save
2 votes · 0 comments
Feature Request: Expenses due date
0 votes · 0 comments
API: missing endpoints
0 votes · 0 comments
No comments yet.