Integrating external API for "Get single record"

Dear Members,

I’m Integrating Extarnal API in Wappler. I am integrating “Fetch Single Record” .
My API is " http://localhost:4321/api/profile/:id ".

But in wappler API Action i’m not getting how can i call this API.
This is something i’m trying :

On Postman you’re trying to fetch profile ID 3, but on Wappler you’re trying to fetch profile ID {id}. Wappler needs a real, working URL to fetch the schema, you can change it later

If you tried to fetch ID {id} on Postman you would also get the same error

2 Likes

Yes @Apple you are correct,

How can i handle this in wappler.io then ?

Do you mean i have to pass real id (3) at { id } in URL for now?

Yes, where the 1st arrow is:

And then click where the 2nd arrow points

1 Like

Thank You @Apple for response ,

How can i change that Default id after all this , now what i’m trying is updating record by fetching that single record in model Dilogue using “SINGLE USER API Server Connect”

But Im got getting record in that Popup.

Hi, I’m afraid I lack the time to continue answering this topic, someone else will help you :slight_smile:

2 Likes

No Issues @Apple you already helped Thanks for that. :slight_smile:

1 Like

Have you added dynamic data from single user server action to the form inputs?

Hi @Teodor Thanks for response,

Actually for updation i have integrated “Fetch Single Record” in that i have given static id as 3.
Now im getting that record for any record updation in Dynamic Model .

How can i change that id to Dynamic.

This is already explained in our docs and videos.
You need to click on the input add a new dynamic attribute and select value. Then pick the dynamic value from the data picker.

I suggest you to start with our docs and youtube videos to get the basics, not directly jump in complex tasks.

1 Like