REST API connection issue

What are you trying to do? fetch data from api

What have you tried so far? setup the integration and tried to fetch
Relevant links:

I use postman to fetch my demo api which has no security and authentications, successfully, however when I set the API call in Plasmic it throw error.

The url of invocation call is:

http://aaa.bbb.ccc.ddd:8080/api/v1/platform/list-store?user_id=2

How to setup in Plasmic? When I put “http://aaa.bbb.ccc.ddd:8080/api/v1/platform/list-store” into url it shows a slash appended in Path:

http://aaa.bbb.ccc.ddd:8080/api/v1/platform/list-store/

this is incorrect, how to fix this?

In plasmic it thrown error:

How Plasmic works out the url with a parameter embedded?

http://host:port/api/v1/platform/list-store?user_id=2

In your integrations, set the base url as http://aaa.bbb.ccc.ddd:8080/api/v1/platform and then append “list-stores” endpoint inside of your app.

This lets you use the same integration for multiple endpoints (so you only have to define it once).

Thanks, it works!

1 Like