-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API auto complete end points #3150
Comments
Allow API consumers to decide the limit? Such as |
(notes to self)
Also needs some time spent on consistent returns. Always return "title", "id".. something else? Formatted title? raw data? |
How would auto complete work in this context? web sockets or plain HTTP GET? |
I'm thinking plain GET but I know very little about web sockets. Would that be a better idea? |
i'm not sure about resource usage. For GET, a poorly configured client would be sending quite a bit of network data back to backend. Imagine searching for each char updates, "Fancy Restaurant @ White House" contains 30 characters, a badly configured client would send 30 requests to the backend for suggestions. |
Yeah that's true. |
New autocomplete endpoints will be available in the new release. They will, consistently, return array in the following format that you can use in any auto-complete thing. All internal Firefly III autocomplete fields will now also use these endpoints. [
{
"id": 5,
"name": "Object",
}
] This applies to ALL endpoints, regardless of the object. Some endpoints have extra fields.
The API docs will be updated when the new release is out. |
Will be fixed in the next release, closing now. |
For reference: #3748 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
See title. Limited scope, limited search, so quick response.
The text was updated successfully, but these errors were encountered: