Using search with Draftbit
I managed to set up the search feature in Xano, but I am stuck with implementing it into Draftbit. Here is what I have on Xano:
search_query is inputted to give the search, but I am unsure what to do after this. In Draftbit, I cannot add the ability to input search_query. At least I do not see the ability for me to. This is what my endpoint looks like:
Where would I set up the ability to input a search query and receive the specific data I want? Is it within the 'Endpoint Path & Parameters' section? Because when I try to do this, I get an error:
How can I fix this?
Answers
-
I'd recommend using POST for search (make it a POST in Xano and POST method in Draftbit). This should enable you to define a request body where you would define your search_query parameter.
In terms of your current error, your search query variable is not part of your endpoint URL, which is why you're hitting the 404 error.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback