Working With Xano and Bravo API issue
Options
![Paul Gill](https://us.v-cdn.net/6037124/user_avatars/2167952.jpg)
Paul Gill
Member ✭
I've got a list endpoint working in Xano and in Bravo: but I'm having trouble with a details endpoint.
I can get them both working - but only with different endpoint urls!
Which is confusing. Xano wants to give me an endpoint url of /{id} which returns a 'not a valid integer' error, but the api will return exactly what I want in Bravo if I add $ - so /${id} works on the api endpoint in Bravo. But it means I get a 404 FailedRequestException error in my app.
Any clues or hints in the right direction would be very welcome. 🙂
I can get them both working - but only with different endpoint urls!
Which is confusing. Xano wants to give me an endpoint url of /{id} which returns a 'not a valid integer' error, but the api will return exactly what I want in Bravo if I add $ - so /${id} works on the api endpoint in Bravo. But it means I get a 404 FailedRequestException error in my app.
Any clues or hints in the right direction would be very welcome. 🙂
Comments
-
Xano uses standard naming conventions for REST APIs, which is why you see the normal /{variable_name} on our endpoints... In Bravo Studio, think of this as it's own environment where there might be different rules that apply... According to their documentation the ${variable_name} is how Bravo recognizes a dynamic variable... please reference their documentation for more info: https://docs.bravostudio.app/connnec-api/request-url-variables#bravo-variables
-
I thought that might be the case, so I need to tackle it a different way I guess...
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