Web API problem
Posted: Sun Jan 01, 2017 3:36 pm
I was trying out the web api as an option to use as a way to integrate some of our store data into a mobile app that we are working on. But I am having a problem when testing the calls that require a parameter.
What I am doing is accessing the api via /api/help then using the test button on that page.
When a test the api is called with api that does not require a parameter the call returns data as expected. But when I try to make a call with a parameter it does not work. The status get returned at 404/Not Found.
For example if i use api/Products/List it does return a list of the products. But when a tried api/Product/{id} or any other product api's that takes an id it does not work.
I checked the documentation also but did not see anything that helped. Want am I missing to get this to work.
Eldon
What I am doing is accessing the api via /api/help then using the test button on that page.
When a test the api is called with api that does not require a parameter the call returns data as expected. But when I try to make a call with a parameter it does not work. The status get returned at 404/Not Found.
For example if i use api/Products/List it does return a list of the products. But when a tried api/Product/{id} or any other product api's that takes an id it does not work.
I checked the documentation also but did not see anything that helped. Want am I missing to get this to work.
Eldon