Parameter in api

how to make a query passing parameters in an api:

example:

api/list/product = return all list of products
(this is oKay)

but
api/list/product/1 the retunr is null { }

Hey @Valtenci

Take a look:


The interface is old but the method is still the same.

thanks my friend.

This may also help

Thank you Hiperbytes

Were you able to solve this? I look at the screenshot and don’t know why it doesn’t work

I’m testing it, I’ll let you know the result

because I’m trying to explain and this …

localhost:


it works perfectly

in my domain:

@Valtenci
Maybe this can help:

I’m trying to make a normal api call as shown in the image

This is not a problem with parameters, you did everything right in the screenshot. This is an entirely different problem, some error when NodeJS tries to connect to the database.

Can you open a bug report?

open a bug report?
in application ?

Never mind

Can you copy-paste the error message on your last screenshot to here?

In your cPanel where you see the NodeJS app, is there a button to “npm install”?

yes, I already did that, and the error persists