Search API requires same parameter key with different search terms
Hi,
How do I make an external API call using Xano where the parameter key is duplicated but with different values. For example, in Postman this call works:
myapi/requests?_limit=200&request_type=maintenance&request_type=non_maintenance
request_type is used to specify filters and is repeated as many times as necessary. When I use the Set function in my API call from Xano, Xano is only sending the last request_type, it's ignoring other instances.
How do I send all of them? Below is what I'm doing currently, but in the result, Xano only sends one.
Answers
-
Hi @dchmiele - You'll definitely want to first reference the API documentation of the service you're using. There can be different ways to do this so it's important that it's formatted in the manner that the API service you're using is expecting.
-
Hi @Michael Udinski the above is per the API spec (Strapi). As mentioned the call is working as expected in Postman. How do I get Xano to send all instances of the repeated parameter?
-
Hi @dchmiele. Can you try setting these parameters directly in the request URL instead of in the params section?
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