I have one API endpoint in Xano that is used for many searches on my site. The endpoint has 10 inputs for filters.
Are there any best practices for multiple searches to the same endpoint, but with different filters, by the same end user simultaneously? For example, if someone opens different portions of my application, I don’t want the searches to “cross-contaminate.”
For example, one search might be for an old blue pickup truck, four wheel drive. Another search might be for a new red sedan, front wheel drive. These would be on the same page, one below the other, each showing a small number of records.
Is this the right setup:
- Set up Xano endpoint in WeWeb. Link the endpoint filters to a “master” JSON object in WeWeb.
- Create an object for each search area.
- Any time before an API call is sent, the “master” is updated by the object from that individual search area.
This seems it would work, but how does one do it if someone has multiple search tabs open? I’m wondering if there are best practices.
Thanks for your help.