[Resolved] GET Requests, inputs and URLs

Hi all,

I'm trying to call my GET endpoint /user/{user_id} using the Fetch API.

If I include a body with the request in order to pass the user_id to use as an input in Xano, I get an error saying GET requests can't include a body:[image.png]So I've removed the body from my request, but now I'm not sure how to capture {user_id} from the URL in order to map it to my field_value.

Two questions:
1. Confused about not being able to use a body with GET requests. When adding an API endpoint in Xano, the auto-generated GET method includes an input -- doesn't this mean the request would require a body?
2. How do I grab the value from {user_id} in the URL in order to map it to my field_value?


Thanks!
Working with APIs
1 reply